LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I change the loop that is running when an event happens?

Hello,

   I've written a program that does a linear temperature ramp on sample substrates under UHV. Right now, the program just ramps the current of a power supply(which heats the sample by radiative heating), reads the temperature from a thermocouple, and using a feedback formula adjust the current accordingly so that the ramp stays linear. All of this is done in a while loop.  I now need the program to be able to ramp to a certain temperature, and hold at that temperature for a time period.  I already have the feedback formula written in order to do this, but how do I tell my program to use my new loop once the old loop reaches a certain temperature? I was thinking maybe an event structure, but still not sure on how to use it.  Your help is greatly appreciated, thank you. 

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

You need a state machine (or action engine). You can create one, from the Labview templates.

see here

 

An easier way is to stop the loop and continiou with a new loop. Of cource this option is "one way". 

Message 2 of 3
(2,254 Views)
I agree with the state machine and a single loop. (Don't do the sequential loops!) 😉
0 Kudos
Message 3 of 3
(2,235 Views)