# LabVIEW

cancel
Showing results for
Did you mean:

Highlighted

## Re: measure percentage

we need to compare the data that get from daq with this table.

eg, if we get 12.5V , we should get 90% for futhrt calculation.

Message 11 of 43
(715 Views)
Highlighted

## Re: measure percentage

But actually it isn't a straight line....we want a more accurate value just follow the table....

Message 12 of 43
(715 Views)
Highlighted

## Re: measure percentage

Did you give a try with what I have suggested?

-----

The best solution is the one you find it by yourself
Message 13 of 43
(701 Views)
Highlighted

## Re: measure percentage

I get to know linear fit from NI website. But the data we have are not follow a straight line. We want to follow the table accurately. If use linear fit, it may have error. like when voltage eaquls 12.4V, SOC become 85% not 80%...

Message 14 of 43
(691 Views)
Highlighted

## Re: measure percentage

did you do what christian has suggested....

and as you've said,"But the data we have are not follow a straight line"....again, the key word here: interpolate array

Message 15 of 43
(681 Views)
Highlighted

## Re: measure percentage

Hi xuan,

as you struggle to follow advices given here and just started to create double posts in the forum (what is really bad!) I will show you a possible solution:

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
Message 16 of 43
(655 Views)
Highlighted

## Re: measure percentage

could you please attach the vi here? I try to build the vi like the one you do but some of functions cannot find...

Thanks!!!

Message 17 of 43
(623 Views)
Highlighted

## Re: measure percentage

Hi xuan,

which function?

SpeadsheetStringToArray? Any of the simple mathematics functions? Or one of those two array functions?

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
Message 18 of 43
(601 Views)
Highlighted

## Re: measure percentage

Let us keep it to the basics. All you need is a calibration array of points aanndd "interpolate array". 😄

LabVIEW Champion. It all comes together in GCentral
What does "Engineering Redefined" mean??
Message 19 of 43
(572 Views)
Highlighted