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
(478 Views)

You need to be more specific.


LabVIEW Champion. It all comes together in GCentral GCentral
0 Kudos
Message 32 of 43
(446 Views)

Good afternoon 

0 Kudos
Message 33 of 43
(443 Views)

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

0 Kudos
Message 34 of 43
(436 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
CLAD expired, using LV2011SP1 + LV2017 (+LV2019 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

0 Kudos
Message 35 of 43
(419 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
(413 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
(402 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
(377 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
CLAD expired, using LV2011SP1 + LV2017 (+LV2019 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

0 Kudos
Message 39 of 43
(371 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
(347 Views)