NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I format a result to a specified exponent (engineering format)

I'm displaying a number of resistance values. To make the results easier to read for the operator I'd like to format the measurement and limits so that the exponent is stepped at 3 intervals (engineering format).

 

i.e. by default TestStand will display measurements and limits in scientific notation; 1.0e+005, I'd like to format this to 100.0e+003.

 

Can this be done?

0 Kudos
Message 1 of 4
(3,495 Views)

When you say 'displayed', where exactly is the value presented; on screen as part of the thread execution, in the report or some other dialog?

0 Kudos
Message 2 of 4
(3,494 Views)

Sorry, I should've have stated.... in the report.

0 Kudos
Message 3 of 4
(3,491 Views)

Set the numeric format to a custom one and use whatever C language style format string will give you the format you want. The numeric format can be set for numeric limit steps on the numeric limit settings tab or you can directly set numeric formats on variables. Also you can use the Str() expression function to specify a format when converting a value to a string.

 

Hope this helps,

-Doug

Message 4 of 4
(3,484 Views)