<< viOpen VISA Integration Toolbox viRead >>

VISA Integration Toolbox >> VISA Integration Toolbox > viOpenDefaultRM

viOpenDefaultRM

This function returns a session to the Default Resource Manager resource.

Calling Sequence

[status, sesn] = viOpenDefaultRM()

Arguments

status

contains the return code of the operation.

sesn

unique logical identifier to a Default Resource Manager session.

Description

The viOpenDefaultRM() function must be called before any VISA operations can be invoked. The first call to this function initializes the VISA system, including the Default Resource Manager resource, and also returns a session to that resource. Subsequent calls to this function return unique sessions to the same Default Resource Manager resource. When a Resource Manager session is passed to viClose(), not only is that session closed, but also all find lists and device sessions (which that Resource Manager session was used to create) are closed.

Examples

[status, defaultRM] = viOpenDefaultRM();

viClose(defaultRM);

Report an issue
<< viOpen VISA Integration Toolbox viRead >>