LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I get data to be written to an out put file at a timed increment?

I am trying to get Labview to record a voltage and write to a text file at given increments but I am new at this and do not know how to program this in labview.  I would appreciate any guidance or code/examples that would be helpful. 
0 Kudos
Message 1 of 7
(3,185 Views)
Do you just need to know how to write the file at an interal, or do you also need to know how to write the file as well as read the voltage?
0 Kudos
Message 2 of 7
(3,171 Views)
I want the voltage to be read continuously but a reading taken and recorded at a given time interval.
0 Kudos
Message 3 of 7
(3,162 Views)
You have the Elapsed Time function. There is a Boolean output called Time Has Elapsed that goes true at the interval you specify. Wire this to a case statement.
0 Kudos
Message 4 of 7
(3,155 Views)
Like this then...
0 Kudos
Message 5 of 7
(3,147 Views)
Thank you for all your help so far.  It worked great.  The only problem I am having now is that since the daq is taking 10 readings per second so I am get 10 data points for each second for when time elapsed is true.  How can I get there to be just one reading recorded per each second time has elapsed is true or get the average of those 10 data points to be recorded. 
0 Kudos
Message 6 of 7
(3,123 Views)
For the average you could use the mean.vi (if your values are in an array) or you could just take the last value from the array with the Index Array function.
0 Kudos
Message 7 of 7
(3,121 Views)