Session to Refnum

Owning Palette: TestStand

Converts a viSession handle from an environment other than LabVIEW into a LabVIEW IVI or VISA refnum. For the Refnum parameter of the Refnum to Session VI and the Session to Refnum VI, pass only a VISA or IVI refnum created using the LabVIEW VISA Open function or the IVI New Session function. Passing an invalid refnum or a refnum constant can lead to undefined behavior and is not supported.

Details

Class Type specifies the IVI or VISA class of the underlying viSession handle you wire to the Session parameter. The function uses this parameter for type information only.
Session specifies a viSession handle from an environment other than LabVIEW.
error in (no error) describes error conditions that occur before this node runs. This input provides standard error in functionality.
Refnum returns the LabVIEW IVI or VISA refnum for the underlying viSession handle Session .
error out contains error information. This output provides standard error out functionality.

Details

In a TestStand sequence, you can use a VI to create a LabVIEW IVI or VISA refnum, use the Refnum to Session function to convert the refnum to a viSession handle, and store the viSession handle in a TestStand variable. You can use the viSession handle in VIs that subsequent steps in a sequence call. You must use the Session to Refnum function to convert the viSession handle back to a LabVIEW IVI or VISA refnum. Close the session when you no longer need the refnum.

You cannot use a viSession or a LabVIEW IVI or VISA refnum in a process other than the process in which you created it.