LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

formula nodes

I want an if then else statement that if IF is true, will turn on an "AI one point VI". If IF is false then routine ends. How can I interface the VI with the formula node, I don't know the syntax. Also, How do you output flags to the interface, a prompt that tells the user to do a procedure? Thanks for all the help, This forum is really keeping me going.
0 Kudos
Message 1 of 3
(2,937 Views)
Instead of using the Formula Node, you should be using the Case Structure. Wire the True or False value to the '?' symbol on the left side of the case. Then you can switch between the two different cases using the arrows along the top. In the True case place your AI One Point VI. If you want to end the main VI or portion of the VI, place the Case Structure inside of a While Loop. You can use the same Boolean that you use to control the Case Structure to control the operation of the While Loop. When True continue running the loop, when False stop running the loop.

Christian L
NI Consulting Services
authored by
Christian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX


  
0 Kudos
Message 2 of 3
(2,937 Views)
If you do need to use a Formula Node to make a calculation, pass out a 0 or 1 based on your calculation, and then use a comparison and case structure/while loop to control your program flow. See attached example.

Christian L
authored by
Christian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX


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