PSIM
This block performs co-simulation with Altair PSIM.
Library
Activate/CoSimulation
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
psimsch | Select schematic file | PSIM schematic file name | String | |
PsimStepsize | PSIM fixed stepsize | The PSIM final time is overriden by the Twin Activate final time. | Scalar | |
PsimFinalTime | Final time in PSIM model | Scalar | ||
showSIMVIEW | Show SIMVIEW | Displays SimView after the simulation is finished. | Number | 0 |
nin | Number of input ports | The number of input ports on this block must correspond to the number of inputs in the PSIM model. This field populates when you click the Reload button. | Number | |
inports | Inputs | Structure | ||
inports/label | Label | Cell of strings | ||
nout | Number of output ports | The number of output ports on this block must correspond to the number of outputs in the PSIM model. This field populates when you click the Reload button. | Number | |
outports | Outputs | Structure | ||
outports/label | Label | Cell of strings | ||
externalActivation | External activation | Specifies if the block receives an external activation or inherits its activation through its regular input ports. If selected, an additional activation port is added to the block. By default, external activation is not selected. If External activation is selected, the communication with the PSIM simulation engine occurs only at event instants such as a fixed-rate event defined by an external clock. | Number | 0 |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
log_file_name | Log file name (*.log) | Messages from Twin Activate as well as messages communicated from PSIM to Twin Activate are logged into this file. | String |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
nparam | Number of additional parameters that are to be sent to PSIM. | Number | ||
params | Parameters that are to be sent to PSIM. | Structure | ||
params/parname | Parameter name | Cell of strings | ||
params/parvalue | Parameter value | Cell of strings |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | explicit | output | nout | |
Port 2 | explicit | input | nin | |
Port 3 | activation | input | externalActivation |