LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

simulate a battery test station

Hey there 🙂

So for a small school project we have to simulate a battery test station, due to the virus situation we have to simulate the battery, otherwise we would use the ni-usb with a battery.

My question is if someone knows, how I can simulate a battery station? just for a simple battery and is there any example available so I could later then implement the rest I need?
All this labview stuff is pretty new to me and our teacher doesn`t really help us so I would be thankful for that!

Cheers

0 Kudos
Message 1 of 3
(2,558 Views)

Small consumer batteries (AA, etc.) are often rated in terms of mA-hrs.  For the sake of a small school simulation project, I would aim to make a convenient idealized model of the battery.  Be sure to describe your model and the assumptions you make!

 

Specifically, look up battery discharge curves which show voltage vs time at a particular constant current discharge.   Take one and transform it into voltage vs. (mA-hrs of depletion).  Now you have a useful relationship: if you can keep track of how many mA-hrs have been pulled out of the battery, you can determine how much voltage it will have.

 

So you'll code up a way to keep track of cumulative mA-hrs.  You'll allow the user to choose different constant resistances as the load.  Then you'll simulate time moving forward.  Current = Voltage/Resistance.  Determine mA-hrs of depletion since previous time step and accumulate the total.  Use the total to determine voltage for the next time step from your discharge curve data.  Advance to the next time step and repeat.

 

Something like that.  That should be enough for a small school project.

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 2 of 3
(2,551 Views)

Thank you for your reply! I get the picture. Do you have an example of such a program? that would be helpfull to start with something. The program should include a cycle of charging and discharging 3 times so then you can read out the characteristics of the battery.

0 Kudos
Message 3 of 3
(2,483 Views)