long vscphlp_newSession( void );



Return Value

A session handle or zero if a session could not be created.


Opens a new communication session. This is the first method that should be called before TCP/IP communication can be established.

Initialize the library using c.

handle1 = vscphlp_newSession();
if (0 != handle1 ) {
    printf( "Handle for channel 1 OK %d\n", handle1 );
else {
    printf("\aError: Failed to get handle for channel 1\n");

Open a new session using Python.

h1 = pyvscphlp_newSession()
if (0 == h1 ):
    raise ValueError('Unable to open vscphelp library session')

Common sample here

$ My first method

See also


Very Simple Control Protocol
Fri Jan 11 2019 17:30:44 GMT+0000 (UTC)
This document is licensed under Creative Commons BY 4.0 and can be freely copied, redistributed, remixed, transformed, built upon as long as you give credits to the author((s).

results matching ""

    No results matching ""