LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error on line 1 is marked by a '#' character on my formula node

hi friends,

 

i want to do a simple equation using formula node. just plus, subtract and .times.

why it gets an error? i'm sorry i never using math formula before. I've attached my VI. Thankyou

0 Kudos
Message 1 of 5
(3,432 Views)

Hi pahlevi,

 

the error description in the error dialog is quite clear…

 

Why do you need a formula node at all? Why not use simple math functions from numerics palette?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 5
(3,420 Views)

@pahlevi28 wrote:

hi friends,

 

i want to do a simple equation using formula node. just plus, subtract and .times.

why it gets an error? i'm sorry i never using math formula before. I've attached my VI. Thankyou


Mz = b*(-c+d)+a(e-f);

Well, what operation are you performing on the "a" and "(e-f)" operands?  Perhaps you meant Mz = b*(-c+d)+a*(e-f); or Mz = b*(-c+d)+a/(e-f);?

 

Of course the nodes are expecting SCALAR values rather than arrays of 100 points


"Should be" isn't "Is" -Jay
Message 3 of 5
(3,403 Views)

@GerdW wrote:

Hi pahlevi,

 

the error description in the error dialog is quite clear…

 

Why do you need a formula node at all? Why not use simple math functions from numerics palette?


 hm ok GerdW, thankyou for your advice.

0 Kudos
Message 4 of 5
(3,340 Views)

@JÞB wrote:

@pahlevi28 wrote:

hi friends,

 

i want to do a simple equation using formula node. just plus, subtract and .times.

why it gets an error? i'm sorry i never using math formula before. I've attached my VI. Thankyou


Mz = b*(-c+d)+a(e-f);

Well, what operation are you performing on the "a" and "(e-f)" operands?  Perhaps you meant Mz = b*(-c+d)+a*(e-f); or Mz = b*(-c+d)+a/(e-f);?

 

Of course the nodes are expecting SCALAR values rather than arrays of 100 points


this one actually Sir. Mz = b*(-c+d)+a*(e-f)

i'm sorry for typo.

0 Kudos
Message 5 of 5
(3,336 Views)