I'm very new to LabView and currently trying to make an algorithm determining state of charge in a battery for one of my classes. Unfortunately I've stumbled upon some obstacles in making the LabView code. For the first time I can't find the solutions anywhere, so you guys are my last resort, hopefully you can help me:(. Here are the things I don't really know how to solve;
1. How to get a percentage value out of voltage measurement where 13.5V equals to 100% and 10.5 equals 0% where there is a linear correlation between these "points". Then depending on what voltage reading I get make it the percentage value.
2. Measuring current multiple times and how to sample these readings and calculate the average value.
3. How to make an equation where I have to integrate the average current over time in the equation.
These points should be connected to get a value of the battery state of charge. All the help I can get is very very welcome!
Hello...as per the response from LabView website forum, Integration is really nothing more than adding all of your measurements. The simple method would be to use the Integrate PtByPt VI. But I would probably go the route of using a shift register to keep the count of Coulombs. You just take your current reading (Amps), multiply by the number of seconds between your samples (Amps = Coulombs/sec, therefore A*s = # of Coulombs), and then add to the count in the shift register.