Initialize Your Session
For any application you write, open a session to establish communication with the instrument by using one of the following two functions:
LabVIEW VIs | C Functions |
---|---|
niHSDIO Init Acquisition Session | niHSDIO_InitAcquisitionSession |
niHSDIO Init Generation Session | niHSDIO_InitGenerationSession |
Use these functions for both dynamic and static data operations. Use the ViSession handle or instrument handle returned by these functions to identify the NI device in all subsequent NI-HSDIO function calls.
Tip Do not confuse these two functions with niHSDIO Initiate or niHSDIO_Initiate, which are used to start a dynamic data operation. |
In addition to establishing a session with the device, these two functions also send initialization commands to set the device to the state necessary for the operation of the instrument driver. These two functions can also perform a number of additional tasks, such as verifying that the instrument driver is valid for the device and resetting the device to a known state.