08-17-2014 10:01 PM
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.
08-17-2014 10:01 PM
08-17-2014 10:08 PM - edited 08-17-2014 10:09 PM
@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:
08-17-2014 11:59 PM
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!!!!
08-18-2014 12:16 AM
Try to do this yourself.
08-18-2014 12:22 AM - edited 08-18-2014 12:26 AM
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?
08-18-2014 12:37 AM
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...
08-18-2014 01:09 AM - edited 08-18-2014 01:11 AM
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?
08-18-2014 01:14 AM
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.
08-18-2014 03:48 AM
@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!