Skip to content

DriverSession::GetVisaResourceManager

Returns the VISA resource manager that was used to create the VISA I/O session associated with the driver session.

ViSession GetVisaResourceManager() const;
ViSession GetVisaResourceManager(ViSession Vi);

Vi

[in] ViSession handle for the driver session.

Returns the ViSession handle to the VISA resource manager that was used to create the 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 GetVisaResourceManager function.

ViStatus _VI_FUNC acme4321_ConfigureSweep(ViSession Vi, ViReal64 StartFrequency, ViReal64 StopFrequency)
{
auto resourceManager = GetVisaResourceManager(Vi);
// ...
}