Chapter 10 Easy I/O for DAQ Library
© National Instruments Corporation 10-53 LabWindows/CVI Standard Libraries
SetEasyIOMultitaskingMode
void SetEasyIOMultitaskingMode (int multitaskingMode);
Purpose
By default, if you call the non-timed Easy I/O for DAQ functions repetitively, these functions do
not reconfigure the hardware unless you change the parameters to the functions. Thus, the
performance of these functions is improved by only reconfiguring the hardware when necessary.
However, if you run multiple data acquisition programs simultaneously, any non-timed Easy I/O
for DAQ functions will not know when the hardware has been reconfigured by another
application accessing the same DAQ device, and the functions will run incorrectly.
To get around this problem, you can force these functions to always reconfigure the hardware by
setting the multitasking mode to MULTITASKING_AWARE.
You should set the multitasking mode to MULTITASK_AWARE if your program calls the non-
timed Easy I/O for DAQ functions and you expect another data acquisition program to be
accessing the same board while your program is running. In this mode, the Easy I/O for DAQ
functions always reconfigure the hardware on each invocation, which means they will not be
adversely affected by other applications but they will not be optimized for speed.
You should set the multitasking mode to MULTITASK_UNAWARE if you know there will not be
another program accessing the same DAQ device while your program is running.
Parameters
Input multitaskingMode integer When activated, DAQ devices are reconfigured
to default settings every time an Easy I/O for
DAQ function invokes such devices.
Return Value
None.
WriteToDigitalLine
short error = WriteToDigitalLine (short device, char portNumber[], short line,
short portWidth, long configure,
unsigned long lineState);
Purpose
Sets the output logic state of a digital line on a digital port.