![]() | DriverSession::GetVisaSession |
Returns the VISA I/O session associated with the driver session.
ViSession GetVisaSession() const; ViSession GetVisaSession(ViSession Vi);
[in] ViSession handle for the driver session.
Returns the ViSession handle associated with the underlying VISA I/O session.
This function is only defined when the driver is configured to use VISA as its underlying I/O mechanism on the I/O Property Page.
The following example demonstrates use of the GetVisaSession function.
ViStatus _VI_FUNC acme4321_ConfigureSweep(ViSession Vi, ViReal64 StartFrequency, ViReal64 StopFrequency) { auto ioSession = GetVisaSession(Vi); // ... }