LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

formula node

I am very new to labview and i am having an issue with the script for the formula node. How would the following code be written in the formula note.
 
 
if (x<=8||x=>20)
y=4 && z=300;
else y=15&&z=600;
 
0 Kudos
Message 1 of 4
(2,931 Views)
Why do you want to use a formula node?  Go with the (data)flow. 
Message 2 of 4
(2,918 Views)
Still, if you were gung-ho about using the formula node you would enter it like this:

float y;
float z;
if (x<=8||x>=20)
{
  y=4;
  z=300;
}
else
{
  y=15;
  z=600;
}

where y and z were output variables of the formula node and x is an inputer variable driven by a front panel numeric control.

Think "C".

Message Edited by smercurio_fc on 02-09-2006 12:56 PM

Message 3 of 4
(2,894 Views)
hi
perfect  smercurio…  ,that is what i need to know.
thank you
0 Kudos
Message 4 of 4
(2,879 Views)