11-09-2015 09:13 PM
Hi everyone,
I am an Aerospace Engineering student with very little ECE experience and really am out of my element here. I have to write a LabView VI that allows me to test the charge/discharge cycle of Lithium Ion batteries that I have assembeld on my battery board. I have a NI VirtualBench to carry out the tasks.
The program needs to complete the following:
1) Charge the batteries to 4.2V using a current of 1300mA. Then hold the batteries at a constant 4.2V until the current drops below 50mA.
2) Allow a 10 minute resting period.
3) Discharge the batteries at a current of 1300mA until the voltage drops to 3.0V.
4) Allow a 10 minute resting period.
5) Repeat steps 1-4 once more and finish with another charge cycle.
6) Record temperature during the whole cycle (let's say every minute).
I was thinking I should make a charge VI and a discharge VI and then create a cycle VI that loops between the charge/discharge. However, I am new to LabView and am unsure on how to carry this out.
Any help will be greatly appreciated and rewarded with a Kudos.
Thanks in advance.
11-09-2015
09:36 PM
- last edited on
08-12-2024
02:06 PM
by
Content Cleaner
I was an ME student a few years ago, so I feel your pain. LabVIEW is easy, it just takes some time to get good at. Get used to using the debugging tools to figure your way through your program (probe, highlight execution, extra indicators). If you need help with the electrical wiring side of this, I'm sure you can find an EE student or a professor to help you there.
Your NI Virtual Bench can read Analog Inputs, send Analog Outputs, read Digital Inputs, and send Digital Outputs. The analog ins and outs are voltage values that you can use as measurements or controls respectively. The digital ins and outs are high/low triggers.
Here's an example that shows how to work with a Virtual Bench in LabVIEW.
You're on the right path with creating subVIs for the repeated processes. This eliminates code duplication to save you time in the end when you have to make a change. An alternative (if you can fit the code) is to have a case that you can trigger over and over again with the same code in it.
It sounds like you could do with a State Machine architecture.
The Simple State Machine template that ships with LabVIEW is really the best way for new developers to get familiar with LabVIEW while utilizing a semi-scalable architecture.
Here's a broad example of how a state machine works:
"Give me six hours to chop down a tree and I will spend the first four sharpening the axe." - Abraham Lincoln
Here are some free training tools primarily focused on LabVIEW and NI hardware to help get started.
-MyRIO Project Essentials Guide (lots of good simple circuits with links to youtube demonstrations)
Self Paced training beginner to advanced, SSP Required
LabVIEW Wiki on Training
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
11-09-2015 09:59 PM
Thank you!
I will take a look at everything you have given me and try to write the program.
When I get stuck at something (because this will definitely happen) I will try to follow up with my code and an explanation of what i am trying to complete.
Thanks again!!
11-09-2015 10:26 PM
Good luck. Make sure to come back and include your code, so we can see what you've tried and help you alter it to fit your needs.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'