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,658 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,656 Views)

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

0 Kudos
Message 3 of 9
(3,653 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,647 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,646 Views)
Solution
Accepted by agator2

It could look like this, for example...

 

 

Message 6 of 9
(3,639 Views)

It says that I have undefined variables now

0 Kudos
Message 7 of 9
(3,628 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,624 Views)

thank you for the help

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