# LabVIEW

cancel
Showing results for
Did you mean:

## Re: measure percentage

If you have an array of volts, simply wrap a FOR loop around the interpolate array function. The rest stays the same. You will get an array of percentages.

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

## Re: measure percentage

If you are getting an array of data from the daq, why do you want to throw away everything except a single point? Wouldn't it make more sense to take the mean? Of course, if your daq setup is to take just a single reading, then it is pointless to convert to a 1D array.
Message 22 of 43
(642 Views)

## Re: measure percentage

@altenbach wrote:

If you have an array of volts, simply wrap a FOR loop around the interpolate array function. The rest stays the same. You will get an array of percentages.

Here's what I had in mind:

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

## Re: measure percentage

I follow you suggestion but it shows error...maybe I'm misunderstanding what you mean...

And also I attach the program that I mentioned just now which cannot show charge percentage.

Could you just do correction in this VI??

Millions of Thanks!!!!

Message 24 of 43
(612 Views)

## Re: measure percentage

Try to do this yourself.

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

## Re: measure percentage

Try this.

(These are very basic programming concepts. Try to do some some tutorials)

Of course you could just take the mean if the array and eliminate the FOR loop again. How rapidlty does the voltage really change? How many points do you take?

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

## Re: measure percentage

I try this VI but while I change the voltage, charge % remains 0%...

Is it must in array?? Actually we only want the charge % for further calculation.

If the charge % in array, how could we do our further calculation??

e.g when it is 12.5V, we could get 90%. And through another way we get the SOC of 80%. We need to get the ave of these two data...

Message 27 of 43
(590 Views)

## Re: measure percentage

hahaxuan wrote:

Is it must in array?? Actually we only want the charge % for further calculation.

If you have an array of N measurements, you'll get an array of N charge percentages.

As I mentioned, you can reduce it to a single number by taking the mean, for example.

@hahaxuan wrote:

I try this VI but while I change the voltage, charge % remains 0%...

How do you change the voltage. Is the voltage reading correct?

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

## Re: measure percentage

how to take the mean to get the single value???

we now connect daq to a power source which can decrease or increase.

If connect to battery, the voltage will also decrease.

Message 29 of 43
(563 Views)

## Re: measure percentage

@hahaxuan wrote:

how to take the mean to get the single value???

Use the mean function (if this is difficult for you, you really need to start with LabVIEW basics!

@hahaxuan wrote:

we now connect daq to a power source which can decrease or increase.

If connect to battery, the voltage will also decrease.

In what way is this relevant? You need to be much more specific!

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