Greg_NTI
2006-08-09 13:40:13 UTC
Hello,
life was so easy with traditional DAQ...
I'm trying to control single lines of DIO cards with DAQmx und CVI 8.0.1 , - the equivalent in traditional DAQ would be "DIG_Out_Line"
What I do:
- I create a task
- I add one channel for each digital line
DAQmxCreateTask (tsk_MAIN_OUTPUT_A, &tMainOutputA);DAQmxCreateDOChan (tMainOutputA, "Dev1/port0/line0", "Line0",DAQmx_Val_ChanPerLine);
..
..
DAQmxCreateDOChan (tMainOutputA, "Dev1/port0/line7", "Line7",DAQmx_Val_ChanPerLine);
When I look into the "WriteFunction" collection, I find all kind of functions that write to tasks, but none which writes to channels...
The examples which comes with CVI only writes to a port, - 8 bit at a time, - which is what I want to avoid...
What am I missing?
Thanks a lot!Greg
life was so easy with traditional DAQ...
I'm trying to control single lines of DIO cards with DAQmx und CVI 8.0.1 , - the equivalent in traditional DAQ would be "DIG_Out_Line"
What I do:
- I create a task
- I add one channel for each digital line
DAQmxCreateTask (tsk_MAIN_OUTPUT_A, &tMainOutputA);DAQmxCreateDOChan (tMainOutputA, "Dev1/port0/line0", "Line0",DAQmx_Val_ChanPerLine);
..
..
DAQmxCreateDOChan (tMainOutputA, "Dev1/port0/line7", "Line7",DAQmx_Val_ChanPerLine);
When I look into the "WriteFunction" collection, I find all kind of functions that write to tasks, but none which writes to channels...
The examples which comes with CVI only writes to a port, - 8 bit at a time, - which is what I want to avoid...
What am I missing?
Thanks a lot!Greg