LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling whether charging or discharging process to run

Solved!
Go to solution

Hi, 

Right now, if the SOC is more than 100, A will be 1. If SOC is less than 50, B will be 1. However, we will have a case where the SOC will be less than 100 and more than 50. When this happen, both A and B will be 0, we will not know if its charging or discharging. 

How can we make sure that only either one of the process is suppose to run at anytime?

0 Kudos
Message 1 of 2
(2,235 Views)
Solution
Accepted by jansencharlie

Hi jansen,

 

How can we make sure that only either one of the process is suppose to run at anytime?

By applying (programming) logic…

You need to store the previous state in a shift register!

Best regards,
GerdW


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