LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

, instead of . depending on PC

I have two labtop with Labview 6.1 installed.
On one, when I use numeric control, decimal separator is ','. On the other PC, separator is '.'
I have not been able to find anything related to this configuration.
This make my application fail becasue my instrument need .
0 Kudos
Message 1 of 4
(2,700 Views)
You may set the options for LabVIEW to always use the decimal point. On the menu select Tools>>Options Select the Front Panel Options. Remove the check mark from the option, �Use localized decimal point�. This option will take effect next time you start LabVIEW.

Note I am fairly certain that this must be done on each machine you are running the application from.

Randall
Message 2 of 4
(2,700 Views)
From the LV 6.1 help files (search "decimal"):

Front Panel Options Page
Select Tools»Options and select the Front Panel page from the pull-down menu.

Use this page to set front panel options.

Use localized decimal point�Uses the decimal separator for the operating system instead of the period. Place a checkmark in this option if you want LabVIEW to operate within the system configuration. Remove the checkmark from this option if you want LabVIEW to use periods in all cases for the decimal point.
Note Changes to this option take effect the next time you start LV


2006 Ultimate LabVIEW G-eek.

Message 3 of 4
(2,700 Views)
When formatting strings to be sent to the instrument, wire a False Constant to the Use System Decimal Point terminal of the Number To Exponential String and Number To Fractional String functions.

As you probably know, instruments send and receive ASCII numbers using decimal points as separators, regardless of how you configure your the number format for on your operating system.

For LabVIEW to use the decimal point separator of the operating system and communicate properly with instruments, all string operations that operate on floating point numbers must include the modifiers to use a period (.) as the decimal separator.

To force the decimal point, include the "%.;" in the format string input of Format Into String or Array to Spreadsheet String
functions. To use the decimal specifier format string, attach %.; to the beginning of the standard format string input for floating point inputs (floats, exponential inputs). If you use the Number To Exponential String or Number To Fractional String functions, wire a False Constant from the Boolean palette to the Use System Decimal Point terminal. You do not need this decimal specifier for decimal numbers (those that use %d or %x format specifier).

You can see this format specifier in most instrument drivers on ni.com/idnet.
0 Kudos
Message 4 of 4
(2,700 Views)