Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmxAddGlobalChansToTask to allow scanning channel twice

Hi,

 

I was wondering if this would be the correct syntax to allow sampling a channel twice in a scan list:

for (row = 1; row < numrows; row++)
{
   strRow = getstring(row);
   DAQmxCreateAIVoltageChan(task, phychan, strRow, .......);
}

DAQmxAddGlobalChansToTask(task, "1");   // adding row=1 channel to end of scan list

 

Note that we only need to add one virtual 'row'  to task.

 

Thank you.

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

Hi jharris66,

 

It looks like you are on the right track. Try referencing this KnowledgeBase Article http://digital.ni.com/public.nsf/websearch/EDF8932AC018CC8A86256E20006D768F?OpenDocument

 

 

Thomas N.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,527 Views)