LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Decimal Places - Array ASCII into Numeric

Solved!
Go to solution

Hello Everybody,

 

I have an DAQ wich measured 4 values on 4 Channels.

However, the resulting string is converted into an array (ASCII) - via Match Pattern.

Til now, everything is fine.

After that in converted the array (ASCII) into an array (numeric) - via Scan from String.

The problem is that i lost the decimal places in the numeric array. (as in the pictures)

 

Could anybody help how i get the decimel places into my numeric array?

(the programe is in the attachement)

 

Cheers,

Marcs

 

FrontPanel.pngTaskTree.png

 

0 Kudos
Message 1 of 3
(2,757 Views)
Solution
Accepted by topic author MarcTUD

Hi Marc,

 

The problem is that i lost the decimal places in the numeric array. (as in the pictures)

Could anybody help how i get the decimel places into my numeric array?

The problem is the decimal separator you are using in your (German?) Windows regional settings!

Either switch your PC to use English settings (as I recommend my users) or use a better format string to convert from string to numeric - LabVIEW help lists all of them and explains them!

The 3rd option is to switch LabVIEW behaviour in the LabVIEW settings - but that might produce errors once you create EXEs or move VIs to a different computer…

Best regards,
GerdW


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

Yes indeed. Thank you very much.

0 Kudos
Message 3 of 3
(2,709 Views)