DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting Specific Calculator AUT to VBS Syntax

Hi,
 
I am going through a particular example that has AUT calculator syntax.  I usually use Script myself, but am trying to show someone how to use the calculator.  I cannot figure out how to do the same thing in a one-line VBS syntax (in the calculator).
 
Here is the AUT format:
 
Ch('Result') := ('Speed'>=100)*'Speed' + ('Speed'<100)*NV
 
Please help!
Thank you,
Julia Moeller
0 Kudos
Message 1 of 3
(3,364 Views)
Hi Julia,

With the VBS syntax in the calculator we introduced the new function CTNV. Please refer to the help. For your calculation try the following formula:

Ch("Result") = Ch("Speed") + CTNV((Ch("Speed")<100))

Hope that helps,

Ralf
NI Aachen
0 Kudos
Message 2 of 3
(3,359 Views)
Thank you Ralf, that works perfectly!
0 Kudos
Message 3 of 3
(3,357 Views)