Adac init device – Measurement Computing ADAC-LVi User Manual
Page 176

Chapter 2 Device Function Library
ADAC LabVIEW VI
170
ADAC Init Device
This VI initializes the actual hardware device to the current Logical Device Subsystem
Database (LDSD) settings. This function must be called before attempting to call the
AL_StartDevice VI call, failure to do so will result in an error. Once started, all ADAC-
LVi calls that affect the functional state of the hardware device are still allowed, but the
new setting is only reflected in LDSD, and NOT in the actual hardware device itself.
ADAC-LVi VI's that control the running state are reflected in both the LDSD and actual
hardware device itself. To update the actual state of the hardware device with any
changes made to the LDSD, AL_InitDevice function must be called once again. This
allows changes to be made to the functionality of the LDSD while the hardware device is
still running. Multiple configurations for the same hardware device subsystem can also be
allocated with AL_AllocateDevice, but only one can be initialized and started at any
given time.
Note:
If the device is currently running, an error flag setting
determines whether to stop and then release, or to return a
non-critical error and keep the device running. See the
advanced VI function AL_SetErrorOnReleaseRunning for
more information.
Device Handle (0) Device Handle is a numeric value that is used to identify the device
subsystem. The default Device Handle is 0.
error in (no error) Error in describes error conditions occurring before this VI executes.
This cluster defaults to no error.
Device Handle out Device Handle out contains the value of Device Handle in.
error out Error out contains error information. If the error in cluster indicated an error,
the error out cluster contains the same information. Otherwise, error out describes the
error status of this VI.