LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

유럽 지역에서는 숫자 소수점이 콤마(,) 로 입력되어서 에러가 발생합니다.

프로그램을 개발하여 테스트까지 완료하여 유럽의 고객에게 전달했는데, 거기에서 실행시 에러가 발생한다고 합니다.

확인해보니까 숫자 입력에서 소수점이 . 이 아니라 , 로 입력되네요.

고객에게 윈도우 설정을 변경해라고 하긴 했지만 랩뷰에서 해결할 수 있는 방법은 없을까요?

0 Kudos
Message 1 of 3
(139 Views)

Hi Ring,

 


@RingRoller wrote:

I developed a program, completed testing, and delivered it to a customer in Europe, but they said that an error occurred when running it.

I checked and found that the decimal point in the number input is not . but ,.

I told the customer to change the Windows settings, but is there no way to solve it in LabVIEW?


Sure there is!

  • You can disable using the system decimal point in your executable by using an INI key.
  • Or you implement all string/numeric conversions to only use the point as decimal separator.
  • Or you implement all string/numeric conversions to correctly use the system decimal separator char…

 

Conclusion: YOU need to implement correct handling of the decimal separator char in your executable!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(136 Views)

Yes, you need to define the decimal separator in the LabVIEW code when you convert number to string and vice versa

LVNinja_0-1739300235612.png

this way your program defines what is the decimal separator, and does not rely on the settings from the computer. 

 

0 Kudos
Message 3 of 3
(106 Views)