Click or drag to resize

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);
Parameters
Vi

[in] ViSession handle for the driver session.

Return Value

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

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

    // ...
}

Download a complete CHM version of this documentation here.