05-22-2008 01:22 PM
05-22-2008 01:59 PM - edited 05-22-2008 02:00 PM
Hi Geroge,
what you try in your example is not possible, because you will get the values of all channels ai0-ai7 in both loops. Why don´t you read in only one loop and depending on the control values of your boolean inputs you can decide which channel goes to which graph.
Why don´t you continue here?
Mike
05-22-2008 02:47 PM
05-22-2008 03:31 PM
05-22-2008 03:41 PM
05-22-2008 04:13 PM
You can't have a second read. That's the whole point. If you want to sample channel 1 every 1 second and channel two every 2 seconds, you can do a read every second and discard every other sample of channel 2.
I'm not sure about the relative read function. I've never used it but you will still be limited to having a single DAQmx Read of all channels. As noted in a different thread that you started on the same subject, it's how the DAQ board is designed and how DAQmx is written.