NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Format string / exponent in multiples format of 3 (enginering format)

How can I convert my number in teststand so 1E+4 is shown as 10E+3.

It seems that the '^' is not a valid flag to use in Teststand, so I can do it as I would do it in Labview.


Any suggestions ???

Kind regards

Thomas Bojer Nielsen
Test engineer, PCB

Danfoss A/S
Danfoss Drives, supply chain - OTB
Ulsnaes 1 , DG573
DK-6300 Graasten
Denmark
0 Kudos
Message 1 of 2
(3,227 Views)
Hi,
  I assume you're using a statement to present the formated string as opposed to the numerical format of a variable directly.
You're going to have to manage this conversion as a string yourself by finding out the number of digits in the number (using the str and len)
then work out specifically how to display that as a 10, or 13 or 72 E+6 using the length to indicate whether it's E3, E6, E9 etc, and dividing the number appropriately to get the string version of the front part of the number. That's going to yield a huge statement.
 
Alternatively, drop the value into labview as an additional step to recreate the layout you require.
 
Thanks

Sacha
// it takes almost no time to rate an answer Smiley Wink
0 Kudos
Message 2 of 2
(3,041 Views)