Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

PXI-6229 Digital channel

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.

0 Kudos
Message 1 of 2
(3,095 Views)

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

 

0 Kudos
Message 2 of 2
(3,051 Views)