Table of Contents
Switching Out
Executes a Function Call Subsystem when dynamically switching from this model to another model.
Library
MATLAB Command Line
Click to copy the following command line to the clipboard. Then paste it in the MATLAB Command Window:
qc_open_library('quarc_library/Advanced/Dynamic Reconfiguration')Description
The Switching Out block executes the Function Call Subsystem attached to its output when dynamically switching from this model to another model. The Function Call Subsystem is not executed when terminating the model normally. This block is part of the dynamic reconfiguration facilities of QUARC which allow running models to be swapped for another model on-the-fly.
It is not necessary to place a Switching Out block in the diagram to support dynamic reconfiguration. If no dynamic reconfiguration blocks are present in the diagram, then the Support dynamic reconfiguration option must be checked on the Code Generation/QUARC tab of the Configuration Parameters dialog.
State information may be transferred from the model being switched out to the model being switched in using the State Output block. This block is typically placed within the Function Call Subsystem attached to the Switching Out block. Any transformations which need to be performed on the states written by the Switching Out block can also be done in the Function Call Subsystem. The transformed states may be read by the model being switched in using the State Input block.
Any number of Switching Out blocks may be placed in the diagram, although typically only one block is used. This block may also be placed in a referenced model.
Input Ports
This block has no input ports.
Output Ports
This block has a single output port to which a Function Call Subsystem should be attached. If the output is left unconnected then this block does nothing.
Parameters and Dialog Box
Active during normal simulation
Indicates whether this block should execute during normal simulation. If this option is not checked then the block will not call its Function-Call Subsystem during normal simulation. This parameter has no effect on generated code but it does affect the performance of normal simulations.
Targets
Target Name |
Compatible* |
Model Referencing |
Comments |
---|---|---|---|
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
Last fully supported in QUARC 2018. |
|
Rapid Simulation (RSIM) Target |
Yes |
Yes |
|
S-Function Target |
No |
N/A |
Old technology. Use model referencing instead. |
Normal simulation |
Yes |
Yes |
See Also
Copyright ©2024 Quanser Inc. This page was generated 2024-10-17. Submit feedback to Quanser about this page.
Link to this page.