From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

If then else function on calculation manager

Hello everyone,

I try to use the "if "function on calculation manager under the "calculation script " but it doesn't work. I have the error message "Expected statement". 

I have attached the print screen .Someone could help me?

 

 

0 Kudos
Message 1 of 3
(2,060 Views)

Is W_F_ratio is a channel then it needs to be "W_F_ratio.Values(iLoop) < 0"

0 Kudos
Message 2 of 3
(2,052 Views)

Hello,
you right, now it's working.
Thanks a lot

0 Kudos
Message 3 of 3
(2,033 Views)