Subsystem Command Reference 6
N9310A User’s Guide 153
viOpen This function establishes a communication
channel with the device specified. A session
identifier that can be used with other VTL
functions is returned. This call must be made
for each device you will be using.
viOpenDefaultRM(&sesn)
viOpen(sesn, rsrcName, accessMode,
timeout, &vi)
viWrite This function synchronously sends the data
pointed to by buf to the device specified by
vi. Only one synchronous write operation
van occur at any one time.
viWrite(vi, buf, count, &retCount)
viRead This function synchronously reads raw data
from the session specified by the vi
parameter and stores the result in location
where buf is pointing. Only one synchronous
read operation can occur at any one time.
viRead(vi, buf, count, &retCount)
viClose This function must be used to close each
session. When you close a device session, all
data structures that had been allocated for
the session will be set free. If you close the
default resource manager session, all
sessions opened using that resource manager
session will be closed.
viClose(vi);
viClose(defaultRM)