LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I need to continuously take data but only trend occasionally

Solved!
Go to solution
Hello. I am new to LabVIEW and have been given the task of interfacing with a LakeShore temperature controller. My employer wants my program to take data continuously, but only write the data to a file and graph at a certain period. Right now I have the data VI's in a for loop that has a time delay in it, and set the number of iterations as however many seconds or minutes to pass before it writes the data, and then allow it to pass to the write to measurement file VI and the graph before returning to the data for loop. There must be a better way to do this with timed structures or event structures or something. My instinct tends to be to use a bunch of while loops for things, but I can't stop them with a button outside of the while loop. Can anyone help find a better way to go about this?
0 Kudos
Message 1 of 3
(2,359 Views)
Solution
Accepted by topic author Pschmidt

I would use an Elapsed Time Express VI that drives a case structure where the "occasional code" is in the true case of the case structure.

0 Kudos
Message 2 of 3
(2,347 Views)
That seems to work-- Thank you!
0 Kudos
Message 3 of 3
(2,326 Views)