LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

stop function in case structure

Solved!
Go to solution

Hi, 

i am studying how to do a stop function in case structure.

In my example. I have a random number creator to create upper and lower limit for temperature.

I have a lower limit spec to controller the temperature. In my example is 25.

In my case structure...

If the temperature is higher than 25 (True case), the temperature will record in excel sheet .

If the temperature is lower than 25 (False case), i would like to stop the whole program.

I tried to put a 'True constant' and 'False constant' in structure case and link to a OR gate, to stop the operation. Program is not working.

Attached my program file for your study. 

Hopefully, someone can solve my problem. Appreciate your efforts.

 

best regards.

 

 

0 Kudos
Message 1 of 2
(890 Views)
Solution
Accepted by topic author Jeffrey_Oon
  • I don't understand the purpose of the FOR loop. What is N? Why do you need an inner and outer "iteration"?
  • Your case structure makes no sense. It just does a NOT on the boolean (and if you would change the comparison, you could just use the output of the comparison directly.
  • Once you remove the FOR loop, things will fall in place because the comparison generates a scalar (you cannot wire an array to the stop condition).
  • I would again start with some basic tutorials.
0 Kudos
Message 2 of 2
(841 Views)