LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read numbers sent by Arduino in Labview

Solved!
Go to solution

How do you retain decimal places with this example? I am busy reading from 5 flow meters and it keeps rounding down the flow rates to 1 significant figure. I have tried messing around with the format string but keeps round down the flow rates to 1 significant figure.

0 Kudos
Message 11 of 14
(632 Views)

Hi Brasslike,

 


@Brasslike wrote:

How do you retain decimal places with this example? I am busy reading from 5 flow meters and it keeps rounding down the flow rates to 1 significant figure. I have tried messing around with the format string but keeps round down the flow rates to 1 significant figure.


Which string do you receive?

Which formatstring do you mess with - and in which way do you mess around?

Mind to share your VI with typical data included?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 12 of 14
(629 Views)

Dear GerdW

 

I was messing with the format string on the "spreadsheet string to array" function. I do not know how to send you the data but here is a screenshot with some probe readings.

Brasslike_0-1665483890518.png

 

0 Kudos
Message 13 of 14
(624 Views)

@Brasslike wrote:

Dear GerdW

 

I was messing with the format string on the "spreadsheet string to array" function. I do not know how to send you the data but here is a screenshot with some probe readings.

Brasslike_0-1665483890518.png

 


Hi,

your system seems to be using a comma (,) as decimal point. Try to use "%.;%5.2f" as format string, which will use a point as decimal point.

 

UliB

0 Kudos
Message 14 of 14
(596 Views)