LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating timed sequence where timing is set by knob

Hi all,

 

I'm working on a project which requires a freeze then thaw cycle a set number of times. I need to be able to set the number of iterations of this freeze-thaw cycle and I also need to be able to vary the time in which the hardware is in freeze mode and the time in thaw mode. I was thinking of implementing a freeze->thaw timed sequence nested in a for loop (I need to be able control how many times this cycle happens). 

 

What I'm finding it difficult to understand is if it is possible to set how long each sequences lasts via a GUI accessible control knob? I know you can set this time manually by going into the propoerties of the sequence, but I need to be able to easily vary this timing and doing so through the user interface would be ideal.

 

I'm very new to labview, so if anyone knows of any example VI's I'd really appreciate the help!

 

Cheers

0 Kudos
Message 1 of 3
(2,161 Views)

There are examples of state machine programs.  Here is one. https://decibel.ni.com/content/docs/DOC-32576

 

0 Kudos
Message 2 of 3
(2,154 Views)

A state machine is really what you want.  It makes things a lot more flexible and easier to abort.  In general, avoid the timed loop.  It has a lot of overhead and nuances for very little gain (in Windows).


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 3
(2,149 Views)