06-30-2015 02:11 PM
I have attached a simplified VI file of what I am trying to do. Ideally, this program will start when "OK" is pressed and run through the frames (or steps) for the times given as the wait times. The program then would reset. This will be meant to time experimental steps eventually with settings output to equipment. I would like to be able to have a live timer for each step to either count down (ideally) or give elapsed time. I have tried different variations, but nothing seems to give me a live timer like I am looking for.
While this timer is not completely necessary, it would be nice to know where the experiment is for the up to 50 hour experiments that we will be running.
I am very new to LabVIEW, so please excuse the simplicity of the solution that this likely requires.
Solved! Go to Solution.
06-30-2015 02:55 PM
You're going to need some more loops in order to have a live count. There's a VI called Elapsed Time that literally just outputs the elapsed time and also has some timer functionality. You could use that VI along with a while loop to get what you want.
You should look in to the State Machine architecture. It sounds like it will be ideal for your application.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
06-30-2015 06:15 PM - edited 06-30-2015 06:36 PM
As a simple state machine, this is trivial. See if the attached VI can give you some ideas.
Note that since this is a state machine...
07-01-2015 12:05 PM - edited 07-01-2015 12:26 PM
That is what I needed. Is there a way to have the time as being dependend on a radio button option?
EDIT:
Nevermind, I think I figured it out.