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

PlotStripChart with continuous sampling DAQmx and multiple channels

$
0
0

I have modified the DAQmx sample code sychAI-AO.cws slightly to offer more output wavforms. I can read simultaneously on one channel no problem. Then when I try two channels I read in an array of N (N>>2, a lot of PlotStripChart examples have N=2 with 2 traces so it updates one point at a time... I don't want that.)  samples. 0 to N/2-1 is what AO1 (output channel 1) writes out, and N/2 to N-1 is what AO2 writes out. Now if I set the number of traces to 2 and try to plot them on a stripchart I get the entire array 0 to N-1 on both traces. 

 

How do I plot an array of say 10000 samples on 2 traces with the array grouped by channel?

 

Thank you


Viewing all articles
Browse latest Browse all 5371

Latest Images

Trending Articles

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