02-15-2018 05:37 PM
I know how to use the if and if else in the formula node, but is there any way that I can check multiple cases inside if statement?
for instance: How to write the following syntax in the formula node?
if (u1==1) && (u2==1) && (u3==1) && (u4==1)
Solved! Go to Solution.
02-16-2018 12:42 AM
Rather than futzing with the formula node, I would just use the native LabVIEW functions.
02-16-2018 12:47 AM
Bill, do you mean by native LabVIEW functions the block diagram provided by LabVIEW?
Do you think this will create a bulky system?
02-16-2018 12:56 AM
"Bulky"? Formula nodes get bulky. But the main reason I would use the native LabVIEW math functions is because I don't have to check for typos. 😉
02-16-2018 01:00 AM - edited 02-16-2018 01:27 AM
it gets very clean once you employ the polymorphism in LabVIEW:
Use arrays to handle the same operation on multiple elements…
Edit: those "u" variables probably contain boolean values, so you should also use a boolean array in LabVIEW. This way you don't even need this comparison…
06-26-2018 02:25 PM
Thank you for the help.