Al_seterronreleaserunning – Measurement Computing ADLIB WIN User Manual
Page 147

Chapter 42 Error Handling Functions
29-3
29.3 AL_SetErrOnReleaseRunning
Prototype
C\C++
ERRNUM
AL_SetErrOnReleaseRunning
(LHLD
lhld, long lState);
Visual Basic for Windows
Function
AL_SetErrOnReleaseRunning(ByVal
lhld As Long,
ByVal lState As Long) As Long
LHLD lhld
handle of the LDSD
long lState
specifies the release on running state
The AL_SetErrOnReleaseRunning function sets the hardware release on running authorization of the
LDSD. Essentially this function affects whether the AL_ReleaseDevice function is allowed to release a
hardware device while the device itself is in a running state.
Parameter Description
lhld
Identifies the instance of the logical device subsystem.
lState
Specifies the release on running authorization state of the LDSD. The available settings
are defined in the ADLIB include file as follows:
•
“DISALLOW_RELEASE“
The device will first be stopped and then released.
•
“ALLOW_RELEASE“
Release of the device will not be allowed when the
device is running and will return an error.
Returns:
On success ERRNUM is set to 1, otherwise ERRNUM contains the last error code that occurred during the
call.
Supported Logical Device Subsystems:
All Boards