Turn on suggestions

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-13-2014 01:58 AM

Options

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

08-13-2014 02:00 AM

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

Are you having a problem with LabVIEW problem or a problem with math? What have you tried so far?

08-13-2014 02:05 AM

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

Both the problems...How to get the formula of the table? Then how to program on labview?

08-13-2014 02:05 AM

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

So what you mean here is, you want to display the exact percentage of battery depending on the voltage (Suppost 11.23 V mean 54% like that)? You can do a Linear fit (LinearFit.vi) with the Voltage as Y values and Percentage as X values (Or may be the other way) and find the Slope and Intercept. Then with the voltage reading Mulitply the slope and Add the intercept, you are done.

-----

The best solution is the one you find it by yourself

The best solution is the one you find it by yourself

08-13-2014 02:12 AM

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

Create an array of points (cluster of xy pairs, x=voltage, y=%), then use interpolate array with the given voltage.

08-13-2014 03:37 AM

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

Actually it is not a linear one...

08-13-2014 03:38 AM

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

Maybe a curve.

08-13-2014 04:14 AM

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

Hi xuan,

either use Altenbach's suggestion (with linear interpolation between your data points) or calculate a polynomial regression of your choice. Then use PolynomialEvaluation function to calc battery state from voltage…

Best regards,

GerdW

CLAD expired, using LV2011SP1 + LV2017 (+LV2019 sometimes) on Win7+cRIO

Kudos are welcome

GerdW

CLAD expired, using LV2011SP1 + LV2017 (+LV2019 sometimes) on Win7+cRIO

Kudos are welcome

08-13-2014 06:09 AM

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

Using a lookup table as Altenbach suggested is the easiest way to go.

There are only two ways to tell somebody thanks: Kudos and Marked Solutions

Unofficial Forum Rules and Guidelines

08-13-2014 08:57 PM

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

I'm sorry...Can u give me a more detailed solution?