02-10-2009 07:34 AM
Hi,
I am trying to understand the usage of following API in NI eg at \National Instruments\cvi81\samples\DAQmx\Digital\Read Values\Read Dig Chan.c egs:
DAQmxErrChk (DAQmxCreateDIChan(taskHandle,chan,"",DAQmx_Val_ChanForAllLines));
and National Instruments\cvi81\samples\DAQmx\Digital\Generate Values\Write Dig Chan.c
DAQmxErrChk (DAQmxCreateDOChan(taskHandle,chan,"",DAQmx_Val_ChanForAllLines));
what does DAQmx_Val_ChanForAllLines stand for?
I am trying to write in the lines: "Dev1\port0\line0,Dev1\port1\line0" and read from the lines:"Dev1\port1\line2,Dev1\port0\line1" respectively connected.
The behavior is the same irrespective of giving DAQmx_Val_ChanForAllLines or DAQmx_Val_ChanPerLine. So what is the difference between the values of this parameter?
Thanks,
Priya.
03-13-2009 08:23 AM
Out of the help:
line grouping specifies how to group digital lines into one or more virtual channels. If you specify one or more entire ports with the lines input, you must set this input to one
channel for all lines.
DAQmx_Val_ChanForAllLines = one Channel for all lines
DAQmx_Val_ChanPerLine = one Channel per line
Christian