NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Use Post Expression to convert 1.000 to 99999

I have a program that reports a 1.000 if the value returned is 1.#INF, by using the Val() function.

 

Can I use Post Expression to check to see if Step.Result.Numeric == 1.000 and if it is then convert it to 99999?

 

Currently I have Val( Step.Result.Numeric ) in the post expression box.  My version of TestStand is too old to use an If statement.  In most cases the value returned will not be 1.#INF so I want to make sure I don't convert every result to 99999.

 

Thanks in advance.

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

Hi,

 

Try 

 

(Step.Result.Numeric == 1.000) ? (Step.Result.Numeric = 99999) : 0

 

 

Regards

Ray

Regards
Ray Farmer
0 Kudos
Message 2 of 2
(3,013 Views)