NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Why is delocalize replacing commas with period when option 4 is used?

image.png

Only before numbers

I am using TS2012

0 Kudos
Message 1 of 4
(2,022 Views)

This is from the TestStand help: The method replaces the localized decimal point characters that represent decimal points in the expression with the period character. If the localized decimal point character is the comma character, the method also replaces semicolons that represent argument separators or expression separators with commas. The method does not change characters inside string constants.

 

http://zone.ni.com/reference/en-XX/help/370052K-01/tsapiref/reftopics/engine_delocalizeexpression_m/

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 4
(1,998 Views)

But there is no decimal point in "a,b,5" and it still replaces the , before the number.

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

So technically your expression is a,b,5  Try doing this: "\"a,b,5\"" and see if that helps.

 

My guess is that it thinks your machine is localized to some European way of using the , instead of the . and it is trying to swap it to a . so it is localized to TestStand.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 4 of 4
(1,976 Views)