modelGenericAutomaton

Generic control automaton, call an external model

Information

This model enables to call an external C method representing the behavior of any control system. For example, it could be used to call every few seconds an OPF that will change the system state, according to some objective function.

Parameters

TypeNameDefaultDescription
Types.TimeSamplingTimeAutomaton sampling time
IntegerNbInputsNumber of required inputs data for the automaton
IntegerNbOutputsNumber of required discrete real outputs data from the automaton
IntegerNbIntOutputsNumber of required integer outputs data from the automaton
StringCommandExternal command line to call
String[GenericAutomatonConstants.inputsMaxSize]InputsName{"EMPTY" for i in 1:GenericAutomatonConstants.inputsMaxSize}Names of required inputs data for the automaton
String[GenericAutomatonConstants.outputsMaxSize]OutputsName{"EMPTY" for i in 1:GenericAutomatonConstants.outputsMaxSize}Names of required discrete real outputs data from the automaton
String[GenericAutomatonConstants.outputsMaxSize]IntOutputsName{"EMPTY" for i in 1:GenericAutomatonConstants.outputsMaxSize}Names of required integer outputs data from the automaton
Types.Timet0Start0Start time of the automaton
BooleaninitializeStartif t0Start == 0 then true else falseIndicates if the automaton should be called at initialization

Components

TypeNameDefaultDescription
Types.Timet0First time when the automaton will act
BooleaninitializeIndicates if the automaton should be called at initialization
Real[GenericAutomatonConstants.inputsMaxSize]inputsInputs provided to the automaton
Real[GenericAutomatonConstants.outputsMaxSize]outputsDiscrete real outputs got from the automaton
Integer[GenericAutomatonConstants.outputsMaxSize]intOutputsInteger outputs got from the automaton