LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

nonlinear curve fitting for a lead acid battery PLZ HELP

Im very much new to the whole lab view programming so plz take it easy on me 🙂
Im using labview 8 for my solution and my task is to obtain the parameters from a lead acid battery capacity model. For this purpose im planning to use Lev-Mar String.VI and I ve been having problems with the function as I have a problem wiring the model description to the function as i fully dun understand how to do it. Ill hereby attach my program along with the formula to be used. the paramter i have to find are k,c and qmax and il will enter the data for I vs T. Any help regarding this problem is greatly appreciated perhaps a sample VI. so basically my problem is with the model description and how to enter my formula with what control.

Download All
0 Kudos
Message 1 of 25
(4,215 Views)
Do you have some link pointing to the theory, because your formula does not make any sense!
 

                                

  • You define qmax as a function of "I", but "I" does not even appear on the right side. 😮
  • Is qmax really a function of qmax?

My best guess is that your independent variable is T and the function is q(t) ?

Are the fitting paramters c qmax while k is the boltzman constant? Anything else? What are reasonable parameter estimates?

What are typical ranges for T?

Can you fix the formula so it makes sense?

Can you attach a typical dataset?

 

Message Edited by altenbach on 09-16-2007 01:08 AM

0 Kudos
Message 2 of 25
(4,215 Views)
thank you very much for ur response
this is the document linking theory

www.ceere.org/rerl/publications/published/2005/AWEA05BatteryModel.pdf

qmax(I) can be considered just as I (current) i beleive). so the data will be I vs T or I vs Q which is in Ah(ampere hour from Q= IT)

and K is not the boltzman constant as it is the rate constant which is in 1/hrs

ill also attach the data sheet below.

first column is Current (I) in Amperes and Second Column is Capacity Q in (Ah).so we will be plotting capacity on Y axis and current on X axis.. But my main problem is how to feed the above formula to my LEV-Mar String.

0 Kudos
Message 3 of 25
(4,195 Views)

OK, the formula seems to fit well using the VI model (I don't like the formula version)

I(T, q,c,k)=(qkcT)/(1-exp(-kT) + c(kT+exp(-kT) - 1))

T=independent variable, q, c, k=paramters (q=qmax). I would use the VI model. Here's the function.

Message Edited by altenbach on 09-16-2007 02:27 AM

0 Kudos
Message 4 of 25
(4,196 Views)
thx a lot again

could you plz provide me with a VI if possible
0 Kudos
Message 5 of 25
(4,190 Views)

Thanks for the reference. I'll study it tomorrow. (it's 2:30am here :o).

You had me condused because T is apparently time, not temperature? Usually uppercase T is temperature and lowercase t is time. Oh well. 🙂


@lil_zu wrote:
...qmax(I) can be considered just as I (current) i beleive). so the data will be I vs T or I vs Q which is in Ah(ampere hour from Q= IT)

first column is Current (I) in Amperes and Second Column is Capacity Q in (Ah).so we will be plotting capacity on Y axis and current on X axis.

So, what is in the third column? I thought current is Y and capacity (or time) on the X-axis?

(The formula string should work too, but it's getting late. I'll look at it tomorrow.)

0 Kudos
Message 6 of 25
(4,187 Views)
Its no problemSmiley Happy

the third column is the voltage which is not used in here. this is the data sheet that is used in the document i gave u the link to. first column is is current and second column is capacity. I understand current is Y but from that research paper they have used current on X axis and Capacity on Y axis. I would consult my lecturer and get back to you again tomorrow as i'm also bit confused regarding the situation . btw T is the time "t"..This data is for a discharging of a battery. again thx a lot for helping me


p.s The estimated parameters from the research paper is as follows

k= 0.5874
c=0.3747
qmax=86.1031
0 Kudos
Message 7 of 25
(4,182 Views)
ok i also figured out the correct equation and it should be

Q(T, q,c,k)=(qkcT)/(1-exp(-kT) + c(kT+exp(-kT) - 1))

Q instead of I so there is no I in the equation and we will be plotting Q on the Y axis and t on the X axis
0 Kudos
Message 8 of 25
(4,167 Views)

Can you make a datafile that contains two colums: Q and t?

I am confused since you don't have a "t" column.

0 Kudos
Message 9 of 25
(4,153 Views)
here is the data set .i manupulated the previous set using t = Q/I

since we have so many data is it possible to read the values for Q and t from spreadhseet file/text file?
0 Kudos
Message 10 of 25
(4,149 Views)