TopCon API  1.1.0
.Net API to control TopCon devices
CH.Regatron.HPPS.EnergyStorage.BatSimulation.StateMachine Namespace Reference

Enumerations

enum  BatterySimulationState { BatterySimulationState.Idle = 0, BatterySimulationState.Stopped = 1, BatterySimulationState.Started = 2, BatterySimulationState.Paused = 3 }
 Battery state More...
 

Enumeration Type Documentation

◆ BatterySimulationState

Battery state

Enumerator
Idle 

Simulation deactivated. Immediately after the object is generated has the state Idle. In this state the object is waiting for a connection, a configuration file and a battery simulation script. When all that happens, the simulation object goes to the stopped state.

Stopped 

Simulation is stopped. In this state you can call the function _batterySimulation.StartSimulation() If the connection to the device is cut, the object goes to the idle state.

Started 

Simulation is running The simulation is activated. In this state you can periodically call the function: _batterySimulation.GetBatteryActualValues( out values);

Paused 

Simulation paused. In this state you can redefine the value from battery state of charge. To do this call the function: _batterySimulation.SetStateOf Charge( double newSoc); after that, to continue with the simulation call: _batterySimulation.ResumeSimulation(); The simulation goes to Started state.

In this state (Paused) you can also stop the simulation, through a call to _batterySimualtion.StopSimulation(); The simulation goes to state Stoped.

If the connection to the device is lost, the object goes to the idle state.