06-28-2010 10:42 AM
Hi,
I'm trying to write a Labview piece to collect different voltage measurements and write them to a report.
In the attatched VI the DAQ assistant is set to continuous and one sample, it's reading 2 analog input channels.
Does the VI read one voltage value every second for 10 seconds and then transfer that array to the report when the for loop is complete? or am i barking completely up the wrong tree!
06-28-2010 10:52 AM
You can't tell much by looking at a picture of a DAQ assistant - it's all in the settings.
Assuming all the gs are correct, it "looks" like it reads 10 times, at 1 seconds slices, then stops, puts data into a report.
06-28-2010 02:10 PM
If that's what you want to do, why not set it to Finite Samples, set the number of samples to read at 10 and the rate at 1Hz? Let us know if you're trying to do something else.
06-29-2010 05:26 AM
Hi guys,
Thanks for the replies.
I'm actually trying to take one voltage data point per channel every minute for an hour and record those data points to a graph of voltage vs. time.
Christian
06-29-2010 06:46 AM
Hi guys,
I've expanded my code (and included a copy this time!).
Basically i've got 3 voltages going into analog inputs in my DAQ and one digital input as well.
Two of the analog inputs need a single voltage recorded every minute for a hour. (at the minute i think the code samples one voltage every half second for 5 seconds, but i can easily change the timings of the loop)
Does the array indexing i'm using seperate the voltages read from each channel - ie does the top index array (index 0) read the voltage from aI0?
By enabling indexing i think i'm passing the single voltage (from each channel) read every loop iteration into the report graph, am i?
Any help would be most appreciated
Thanks,
Christian