From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

measure percentage

I mean the SOC can not be displayed and can not measure the percentage of power left. 

0 Kudos
Message 31 of 43
(1,386 Views)

You need to be more specific.

0 Kudos
Message 32 of 43
(1,354 Views)

Good afternoon 

0 Kudos
Message 33 of 43
(1,351 Views)

hyhy.pngThis is what I have done now...The charge % always keep 0%. It can not change.

0 Kudos
Message 34 of 43
(1,344 Views)

Hi xuan,

 

use a probe to test the X value you're using to interpolate your points. (Using an ndicator might be a good idea too.)

What value do you feed to the Interpolate1DArray function?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 35 of 43
(1,327 Views)

The value I feed is the voltage of battery. One voltage level  got a corresponding charge%. But now I can not get the charge%.

0 Kudos
Message 36 of 43
(1,321 Views)
Move that indicator to the output of the index array and report back exactly what the indicator shows. I have no idea why you've ignored the advice about dealing with an array but you need to pay more attention to what people have said.
0 Kudos
Message 37 of 43
(1,310 Views)

We cannot use array because we need further calculation. The values are not only 11 but more exact. Like 12.23V corresponding 62%...

0 Kudos
Message 38 of 43
(1,285 Views)

Hi xuan,

 

I really don't know why this will not work for you:

check.png

The values are not only 11 but more exact. Like 12.23V corresponding 62%...

In my (simplified) example this also works nicely! You just need to wire things correctly…

 

We cannot use array because we need further calculation

I don't understand this. You can do calculations on arrays too…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 39 of 43
(1,279 Views)

Thank you very much for your help...But I can not build the VI that u gave. Can you send me the VI program for me?

Thanks!

0 Kudos
Message 40 of 43
(1,255 Views)