Click or drag to resize

DriverSession::GetVisaSession

Returns the VISA I/O session associated with the driver session.

ViSession GetVisaSession() const;

ViSession GetVisaSession(ViSession Vi);
Parameters
Vi

[in] ViSession handle for the driver session.

Return Value

Returns the ViSession handle associated with the underlying VISA I/O session.

Remarks

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.

Example

The following example demonstrates use of the GetVisaSession function.

C++
ViStatus _VI_FUNC acme4321_ConfigureSweep(ViSession Vi, ViReal64 StartFrequency, ViReal64 StopFrequency)
{
    auto ioSession = GetVisaSession(Vi);

    // ...
}

Download a complete CHM version of this documentation here.