accessMode IN ViAccessMode Specifies the modes by which the resource is to be accessed. The value is used to acquire an VI_EXCLUSIVE_LOCK exclusive lock immediately upon opening a session; if a lock cannot be acquired, the session is closed and an error is returned. The value is used to configure VI_LOAD_CONFIG attributes to values specified by some external configuration utility; if this value is not used, the session uses the default values provided by this specification. Multiple access modes can be used simultaneously by specifying a "bit-wise OR" of the above values. timeout IN ViUInt32 If the parameter requests a lock, accessMode then this parameter specifies the absolute time period (in milliseconds) that the resource waits to get unlocked before this operation returns an error. vi OUT ViSession Unique logical identifier reference to a session. Return Values Type This is the operational return status. It returns either a ViStatus completion code or an error code as follows. Completion Codes Description VI_SUCCESS Session opened successfully. VI_SUCCESS_DEV_NPRESENT Session opened successfully, but the device at the specified address is not responding. VI_WARN_CONFIG_NLOADED The specified configuration either does not exist or could not be loaded; using VISA-specified defaults. Error Codes Description VI_ERROR_INV_SESSION The given session or object reference is invalid (both VI_ERROR_INV_OBJECT are the same value). VI_ERROR_NSUP_OPER The given does not support this operation. For sesn VISA, this operation is supported only by the Default Resource Manager session. VI_ERROR_INV_RSRC_NAME Invalid resource reference specified. Parsing error. VI_ERROR_INV_ACC_MODE Invalid access mode. VI_ERROR_RSRC_NFOUND Insufficient location information or resource not present in the system. VI_ERROR_ALLOC Insufficient system resources to open a session. VI_ERROR_RSRC_BUSY The resource is valid, but VISA cannot currently access it.
accessMode IN ViAccessMode Specifies the modes by which the resource is to be accessed. The value VI_EXCLUSIVE_LOCK is used to acquire an exclusive lock immediately upon opening a session; if a lock cannot be acquired, the session is closed and an error is returned. The value VI_LOAD_CONFIG is used to configure attributes to values specified by some external configuration utility; if this value is not used, the session uses the default values provided by this specification. Multiple access modes can be used simultaneously by specifying a "bit-wise OR" of the above values. timeout IN ViUInt32 If the accessMode parameter requests a lock, then this parameter specifies the absolute time period (in milliseconds) that the resource waits to get unlocked before this operation returns an error. vi OUT ViSession Unique logical identifier reference to a session. Return Values Type ViStatus This is the operational return status. It returns either a completion code or an error code as follows. Completion Codes Description VI_SUCCESS Session opened successfully. VI_SUCCESS_DEV_NPRESENT Session opened successfully, but the device at the specified address is not responding. VI_WARN_CONFIG_NLOADED The specified configuration either does not exist or could not be loaded; using VISA-specified defaults. Error Codes Description VI_ERROR_INV_SESSION VI_ERROR_INV_OBJECT The given session or object reference is invalid (both are the same value). VI_ERROR_NSUP_OPER The given sesn does not support this operation. For VISA, this operation is supported only by the Default Resource Manager session. VI_ERROR_INV_RSRC_NAME Invalid resource reference specified. Parsing error. VI_ERROR_INV_ACC_MODE Invalid access mode. VI_ERROR_RSRC_NFOUND Insufficient location information or resource not present in the system. VI_ERROR_ALLOC Insufficient system resources to open a session. VI_ERROR_RSRC_BUSY The resource is valid, but VISA cannot currently access it.
vpp43_2016-02-26.docx