05-22-2024 09:41 AM
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
05-22-2024 09:51 AM
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!
05-22-2024 04:22 PM
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
05-23-2024 04:37 AM
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…
05-23-2024 09:14 AM - edited 05-23-2024 09:35 AM
there is no 'and' function in labview formula node.
instead you might try to use '==' instead of '='
instead of 'and' try '&&'
05-23-2024 09:21 AM
@alexderjuengere wrote:
there is no 'and' function in labview formula node.
instead, you might try to apply &&
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".