05-20-2008 08:36 AM
05-20-2008 09:10 AM
I'm sorry but nothing about your program makes much sense. You cannot use the event structure that way since you don't have it inside a while loop. Do not use run continuous mode!
Pick one architecture - either the lower level DAQmx functions or the DAQ Assistant. I don't think you really need to use the timed loop structure but if you do, the button to stop it must be inside the loop. Instead of a single sample, seOtherwise, the loop will not be able to detect the change of the Boolean. The same is true if you use a normal while loop.
If you use the lower level DAQmx functions, you need to put the DAQmx Read inside a loop. Otherwise you will only get a single reading. I don't understand at all what you are trying to do with the XY Graph. You said you wanted the data plotted versus time. If you were to simply wire the output of the DQmx Read to a normal graph, you would plot the two signals versus time.
Have you looked at the shipping examples? There are a couple that will acquire, plot, and log continuously (i.e. Cont Acq&Graph voltage - Write Data to File). Start with those and modify as needed.
05-21-2008 02:44 PM
05-08-2010 08:34 AM
Thanks for posting this with the example. I am a beginner with Labview and I am trying to pull two voltage signals out of a cyclicvoltammety instrument and I couldn't figure out how to separate the outputs for two different graphs. This is exactly what I needed. I need to study more about arrays and clusters and when data types need to be converted.
Thanks
08-12-2010 02:47 AM
Hi Bueller,
Thank you for your example. I'm doing similar stuff to record 3 channels voltage output from an instrument. Then log a time series data in every second, but only record the 30 second average data.
My question is how I can do data averaging process with your example, and how to record the data with the clock of computer such as 10:30:00, 10:30:30,...etc instead of Time (s) 0, 30, 60, 90...etc.
Thanks a lot