Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

08-17-2014 10:01 PM

Options

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

08-17-2014 10:08 PM - edited 08-17-2014 10:09 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

@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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

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!!!!

- Tags:
- Cursing_Chris

08-18-2014 12:16 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

- You need to disable indexing for the cluster array at the for loop boundary (right-click the tunnel disable indexing)
- You need to convert your dynamic data to a 1D array of DBL. (Earlier you said you had a 1D array.)

Try to do this yourself.

08-18-2014 12:22 AM - edited 08-18-2014 12:26 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

@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!