ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error on calc using formula node

Hello,

 

I'm trying to do a calc using the formula node function

But i'm receving error all the time

 

I attached the VI with the formula node and the function

0 Kudos
Message 1 of 6
(1,228 Views)

Hi leandro,

 


@leandrofeder wrote:

I'm trying to do a calc using the formula node function

But i'm receving error all the time


Did you read the error description when trying to run your VI?

It says "Formula node: Missing right paranthesis" and it shows the part of your formula that goes wrong…

 

Instead of replicating this (extra-)large Excel formula with a formula node you should create a VI using plain LabVIEW functions. It also would help to replace the Excel coordinates (like D44) by real controls with useful labels!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 6
(1,222 Views)

I found the error

I was trying to use the function to fetch the smallest value between two numbers, but it doesn't seem to support

I did the treatment outside and sent it into the formula with the value already treated

0 Kudos
Message 3 of 6
(1,182 Views)

Hi leandro,

 


@leandrofeder wrote:

I was trying to use the function to fetch the smallest value between two numbers, but it doesn't seem to support

I did the treatment outside and sent it into the formula with the value already treated


As I wrote before: use plain LabVIEW functions, like the MinMax function…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(1,138 Views)

there is no 'and' function in labview formula node.

instead you might try to use '==' instead of '='

instead of 'and' try '&&'

 

alexderjuengere_0-1716473591735.png

 

 

 

0 Kudos
Message 5 of 6
(1,116 Views)

@alexderjuengere wrote:

there is no 'and' function in labview formula node.

instead, you might try to  apply && 

 

alexderjuengere_0-1716473591735.png

 

 

 


To the OP: This is the perfect example of why you should try to use native LabVIEW primitives whenever possible.  Then there is no such thing as "syntax error".

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 6 of 6
(1,108 Views)