LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Defining constants in formula node

I apologize for the seemingly elementary level of this question, but nonetheless it continues to puzzle me. I am trying to enter several constants in a formula node and continually get the error message 'undefined variable' for the first defined. An example is shown below for the statement: 'CO = 192600;'

Error on line 1 is marked by a '#' character: "CO# = 192600;

I feel there is a problem with the way i am trying to define the constant (CO). Am I missing something? Since there are so many constants, I prefer to define the constants within the node instead of inputing on the border. Thanks in advance.

Philip
0 Kudos
Message 1 of 3
(4,910 Views)
You need to use C syntax to declare the variable CO:
int CO;
CO=192600;
Message 2 of 3
(4,910 Views)
Alternatively, it is sufficient if you create an output terminal named CO in this case. No need to connect it, of course.
Message 3 of 3
(4,910 Views)