LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I interface with Visual C. My problem is that I receive 12.85 in stead of 12,85.

How can I interface with Visual C over the serial port. My problem is that I receive 12.85 in stead of 12,85. Is there a setting to change in Labview so I can read doubles having dots as a seperator?
0 Kudos
Message 1 of 2
(2,198 Views)
aspoo,

If you want to use the dot as the decimal separator for all the application,
uncheck the Options/Front Panel/Use localized decimal separator". You have
to relaunch LabVIEW for this change to take effect.

If you only want to read numbers with a dot without changing the application
default, use the "Scan from String" function and with the format string
"%.;%f".
"%.;" specifies the dot as the decimal separator in the string. It is needed
only once and is applied to
all the numbers scanned.

Jean-Pierre Drolet

"aspoo" a ecrit dans le message de news:
5065000000080000000C2D0000-1002247793000@exchange.ni.com...
> How can I interface with Visual C over the serial port. My problem is
> that I receive 12.85 in stead of 12,85. Is there
a setting to change
> in Labview so I can read doubles having dots as a seperator?


LabVIEW, C'est LabVIEW

Message 2 of 2
(2,198 Views)