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
| Type | Name | Default | Description |
| Types.Time | SamplingTime | | Automaton sampling time |
| Integer | NbInputs | | Number of required inputs data for the automaton |
| Integer | NbOutputs | | Number of required discrete real outputs data from the automaton |
| Integer | NbIntOutputs | | Number of required integer outputs data from the automaton |
| String | Command | | External 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.Time | t0Start | 0 | Start time of the automaton |
| Boolean | initializeStart | if t0Start == 0 then true else false | Indicates if the automaton should be called at initialization |
Components
| Type | Name | Default | Description |
| Types.Time | t0 | | First time when the automaton will act |
| Boolean | initialize | | Indicates if the automaton should be called at initialization |
| Real[GenericAutomatonConstants.inputsMaxSize] | inputs | | Inputs provided to the automaton |
| Real[GenericAutomatonConstants.outputsMaxSize] | outputs | | Discrete real outputs got from the automaton |
| Integer[GenericAutomatonConstants.outputsMaxSize] | intOutputs | | Integer outputs got from the automaton |