LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

State of Charge Program

Solved!
Go to solution

Hello everyone!
Capture.PNGsd.PNG
I would like to ask about how to create a SoC program in realtime. My SoC calculation uses the formula I have attached above using coloumb counting. From the calculation how it works is the result of the first calculation SoC(t) will be the input value of SoC(t0) in the second calculation, so on until the last calculation. Then the "I" symbol there is for the current result that reads on the current sensor. So the whole way my program works is when labVIEW that has connected hardware then in run then the current sensor will be read and the current result will automatically enter the SoC program to perform calculations so as to generate a percentage charge. Can anyone help me? I've tried to create a program from the formula like an attached file, but the calculation results are not realtime yet. He'll count as many N's as we want. N here I mean the number of looping. Whereas the new SoC result should appear when the current value appears (I set every 10 seconds). Anyone who can help me, thank you very much.

0 Kudos
Message 1 of 3
(2,277 Views)
Solution
Accepted by dbumi11

Sorry, I am posting by phone and cannot really look at the problem at the moment, but please attach your vi instead of a picture.

 

You are using a formula node, not mathscript. I doubt you need any script nodes.

 

If you had a typo, the vi would be broken. Maybe you have a logical error instead. Once we have the VI, we can probably help.

0 Kudos
Message 2 of 3
(2,241 Views)
Solution
Accepted by dbumi11

Hi dbumi,

 

learn to use shift registers:

I simplified the integration part by a multiplication with dt…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 3
(2,223 Views)