Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5339

DAQmxAddGlobalChansToTask to allow scanning channel twice

$
0
0

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.


Viewing all articles
Browse latest Browse all 5339

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>