LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help with case structures- please help :)

Hey all.
I'm currently trying to program a infrared furnace. I'm setting a temperature, subtracted my set temperature from the actual temperature (thermocouple hooked up to SCB-68), and voltage is being sent to the controller of the furnace accordingly. However, I need to hold the set temperature for a certain amount of time. I need help programming this: when the VI reads the set temperature from the thermocouple, it results in a timer running down. When the timer runs down to 0, the While Loop ends. I'm thinking case structures is most appropriate, but if you have a better suggestion, please let me know.

Thanks
0 Kudos
Message 1 of 4
(2,885 Views)
Here's the VI.
0 Kudos
Message 2 of 4
(2,882 Views)
Any takers?
0 Kudos
Message 3 of 4
(2,856 Views)

You should probably implement a state machine.

The state machine would keep track of the temperature and making ajustments on a timely basis.

There is a template of a state machine is you select under the File menu > New > From Template.

You can also look under Help > Find Example > and do a search for state machine.

There are lots of state machine examples on this forum, some of which may be quite useful.

RayR

0 Kudos
Message 4 of 4
(2,839 Views)