10-10-2014 06:26 PM
I am trying to control when I record data by having the user press a Boolean control on the front panel. I want the data to record for 3 seconds only and then have the Boolean control automatically turned to false so that the data stops recording and the control changes on the front panel but doesn't stop the execution of the VI. The reason is I want to have the user create a log file of settings for a laser operated outside of labview where the user inputs via numerical controls the current laser settings and the reading from a laser wavelength meter is recorded measured and recorded in labview. So after the data records for 3 seconds the user would input new settings for the laser and then record the new output from the wavelength meter setup, and repeat this multiple times.
I have tried a case strucutre as seen in the VI attached and also have tried a state machine with ENUM control. I can't seem to get this thing to work. ANy help would be appreciated.
Thanks
Solved! Go to Solution.
10-10-2014 06:45 PM
Hi,
Easiest implementation is having a state machine. You'd have one state to collect data for a specific timer and another state to exit the VI.
10-11-2014 01:56 AM
Take a look at the elapsed time express vi
10-11-2014 12:15 PM
I didn't want to change totally your VI, so I just removed the sequences and some of the case structures. You probably need filename for the Write Stream VI.
There is a new loop which deals with the elapsed time, and some new indicators for debugging purposes only.
10-11-2014 01:54 PM - edited 10-11-2014 01:55 PM
Small change. I put by mistake the wait function in the case structure in the main loop. By the way, your VI is using files from the LabVIEW examples folder. You may need to point to the proper location of the files when loading the VI, if your Windows version is 32-bit