LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Checking Batteries using Labview

Solved!
Go to solution

I have alot of batteries that I purchase and they say that their suppose to last 3 years. I was wanting to make a program using a USB-6009 and labview to test the lifetime of the battery. Which direction should I go.

0 Kudos
Message 1 of 10
(5,834 Views)

First, you should choose the Board to which you post more carefully.  Posting a LabVIEW/Analog Input question to the Counter/Timer Board might result in your batteries running down before you get a response.

 

Now, for the good news.  I have built and operated a battery life test using the USB-600x devices.  Battery = copper and zinc strips in lemon juice in glass flask.

 

Do you intend to load the batteries or just monitor the voltages of unloaded cells? Do you want to calculate the delivered capacity?  How will you handle power outages? Do you want to start testing of different batteries at different times? What data do you want to save and how often?

 

Lynn

Message 2 of 10
(5,831 Views)

Im new to this, I just posted it, I use alot of Batteries that I use for work in multiple things and the manufacturer said that the battery suppose to last for 3 years, well I know thats not the case. I just want something that will record the voltage or current and send to an excel file so I will know how much power it is using and how long it will approximately last.

0 Kudos
Message 3 of 10
(5,828 Views)

Do you intend to load the batteries or just monitor the voltages of unloaded cells? Do you want to calculate the delivered capacity?  How will you handle power outages? Do you want to start testing of different batteries at different times? What data do you want to save and how often?

 

I proabaly will just monitor the voltages of unloaded cells.  My device that I have comes on three times a day and only is on for approximately 5 minutes. Just going to test one new battery so I would have a range of what is expected when it comes to life of battery. I just want the data sent to an excel file so that I can see how much power it is using.

0 Kudos
Message 4 of 10
(5,824 Views)

Start with the LabVIEW Example Finder and do a search for DAQmx Analog Input or something like that to find some examples of how to read the voltages.  Once you get that, then use the Write to Spreadsheet File VI so save the data in a tab delimited file that Excel can read.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 5 of 10
(5,822 Views)

I agree with what crossrulz suggested.  Set it up in a loop to record data about once per hour. Close the file after each write.  This is not the usual recommendation but here you want to be sure the file is closed so that if the computer gets shut down or the power fails, the file was closed.

 

Depending on how fancy you want to be, you could set up the program to run automatically when the computer boots so that you are not dependent on an operator to run it.

 

Lynn

Message 6 of 10
(5,813 Views)

@word505 wrote:

Do you intend to load the batteries or just monitor the voltages of unloaded cells? Do you want to calculate the delivered capacity?  How will you handle power outages? Do you want to start testing of different batteries at different times? What data do you want to save and how often?

 

I proabaly will just monitor the voltages of unloaded cells.  My device that I have comes on three times a day and only is on for approximately 5 minutes. Just going to test one new battery so I would have a range of what is expected when it comes to life of battery. I just want the data sent to an excel file so that I can see how much power it is using.


listening to everybody's suggestions, i came up with this vi....enter the times and days of the week to check the batteries, will create file where this vi is saved. if you want to record for a length of time....add an elapsed timer and bool shift reg to hold the case structure for that length of time Smiley Wink saved as LV 9.0

use windows scheduled task to open this vi automatically and set vi properties in execution to run when opened, if needed without operator......

Spoiler
check batteries.png

 

Download All
Message 7 of 10
(5,778 Views)

I just looked at your vi. It looks good. I can place the time and sate that I want to test the battery then I can add input that would test how long the battery is on.  I will follow your instructions. Thanks. I assume I will need to add some inputs that will read the voltage and current from the battery so that it will print onto a excel file.

0 Kudos
Message 8 of 10
(5,728 Views)
Solution
Accepted by topic author word505

@word505 wrote:

I just looked at your vi. It looks good. I can place the time and sate that I want to test the battery then I can add input that would test how long the battery is on.  I will follow your instructions. Thanks. I assume I will need to add some inputs that will read the voltage and current from the battery so that it will print onto a excel file.


glad i can help, please kudo those who have helped and mark as solution if solved to let others know that have similiar questions and problems here on the forum....  Smiley Wink
 

yes, you will use the Daq analog input to read voltage or current (shunt resistor needed). pull drag an extra input for the 'format into file' and add the date to it off of the 'get date/ time string'. i only had the time and AI voltages connected.

 

Spoiler
check%20batteries[1]_BD.png

 

0 Kudos
Message 9 of 10
(5,722 Views)

 

Ok. I have an  NI USB- 6009 that will read the analog inputs so how would I do that? I see that I can run the program and set the time and date that suppose to test the battery. but I quite do not understand the direction of the below

 

 

 

glad i can help, please kudo those who have helped and mark as solution if solved to let others know that have similiar questions and problems here on the forum....  :smileywink:  

yes, you will use the Daq analog input to read voltage or current (shunt resistor needed). pull drag an extra input for the 'format into file' and add the date to it off of the 'get date/ time string'. i only had the time and AI voltages connected.

 

0 Kudos
Message 10 of 10
(5,685 Views)