LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

formula node

Solved!
Go to solution

I am sending it an area that the indicator shows as a full decimal but recieve and integer. I have changed the data types from  double to long to extended float etc without any results. Is there something I am doing wrong?

0 Kudos
Message 1 of 9
(3,655 Views)

 


agator2 wrote:Is there something I am doing wrong?

Probably yes, If you post the code we'll take a look at it


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 9
(3,653 Views)

Top right corner contains the formula boxes. Excuse the mess of code surrounding.

0 Kudos
Message 3 of 9
(3,650 Views)

Are you talking about inputs and outputs of a formula node?

 

  • Is the output terminal blue or orange?
  • Is the terminal of the indicator blue or orange?
  • What is the display format of the indicator?
0 Kudos
Message 4 of 9
(3,644 Views)

@agator2 wrote:

Top right corner contains the formula boxes. Excuse the mess of code surrounding.


Remove the word "int" at the beginning of each formula node line, remove the conversion bullet later, and change the representation of the indicator terminals to DBL (right-click..representation...DBL).

Message 5 of 9
(3,643 Views)
Solution
Accepted by topic author agator2

It could look like this, for example...

 

 

Message 6 of 9
(3,636 Views)

It says that I have undefined variables now

0 Kudos
Message 7 of 9
(3,625 Views)

You need to create a terminal for "q" OR

r =sqrt(A/pi);
d = sqrt(A/pi)*2;
v = (4/3)*3.1415*r*r;

since q isn't used outside the node


"Should be" isn't "Is" -Jay
0 Kudos
Message 8 of 9
(3,621 Views)

thank you for the help

0 Kudos
Message 9 of 9
(3,616 Views)