Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

conditional Case structure?

Hi,

When using a sequence structure I want to delay each case from continuing to the next until a partucular condition is met (true or false). I am using a thermonics temperature forcing system with temperature values changing with each step of the sequence but I dont want the sequence to continue to the next step until the temperature sensors in the unit (actual temperature) reaches the set point temperature.
Is there a way to do this witout using case structures?
0 Kudos
Message 1 of 3
(3,383 Views)
The best way is to not use the sequence structure at all and use a state machine. There are shipping examples of this and others are available at the NI Developer Zone. If you stick with the sequence structure, then you can add a sequence in the middle with a while loop in it. Just set the while loop termination condition to be the correct temperature read.
0 Kudos
Message 2 of 3
(3,383 Views)
Hi,

It is possible to use a stacked sequence structure, which could run on the basis of the temperature that is being read in or acquired.

Also if you do have a state machine toolkit, then I would suggest you to use it for the application, as it is a very clear and defined way of solving the problem.

Best Regards
Applications Engineer
www.ni.com
0 Kudos
Message 3 of 3
(3,383 Views)