LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Does this do what i think it does?

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!

 

 

----------------------------------------------------------------------------------------------------------------------------
"If anyone needs me, I'll be in the Angry Dome!"


0 Kudos
Message 1 of 5
(3,064 Views)

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.

Richard






0 Kudos
Message 2 of 5
(3,047 Views)

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.

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 3 of 5
(3,000 Views)

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

----------------------------------------------------------------------------------------------------------------------------
"If anyone needs me, I'll be in the Angry Dome!"


0 Kudos
Message 4 of 5
(2,958 Views)

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

----------------------------------------------------------------------------------------------------------------------------
"If anyone needs me, I'll be in the Angry Dome!"


0 Kudos
Message 5 of 5
(2,935 Views)