viOpenDefaultRM(3)
HP-UX
NAME
viOpenDefaultRM − Returns a session to the Default Resourcs Manager
SYNOPSIS
viOpenDefaultRM(ViPSession sesn);
Description
This function returns a session to the Default Resource Manager resource. This function must be called before any VTL functions can be invoked. The first call to this function initializes the VTL 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.
NOTE All devices that will be communicated with need to be connected and in working condition prior to the first VTL function call (viOpenDefaultRM). The system is configured only on the first viOpenDefaultRM per process. Therefore, if viOpenDefaultRM is called without devices connected and then called again when devices are connected, the devices will not be recognized. You must close ALL Resource Manager sessions and reopen with all devices connected and in working condition.
Parameters
sesn An output parameter. Unique logical identifier to a Default Resource Manager session.
Return Values
This is the functional return status. It returns either a completion code or an error code as follows.
VI_SUCCESS Session to the Default Resource Manager resource created successfully.
VI_ERROR_SYSTEM_ERROR The VTL system failed to initialize.
VI_ERROR_ALLOC Insufficient system resources to create a session to the Default Resource Manager resource.
See Also
viOpen, viFindRsrc, viClose
AUTHOR
viOpenDefaultRM was developed by HP
Hewlett-Packard Comapny — September 29, 1999