Target Switch Model Switching Out navigation bar

Table of Contents

Switching In

Executes a Function Call Subsystem when dynamically switching to this model from another model.

Library

QUARC Targets/Advanced/Dynamic Reconfiguration

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

Switching In

The Switching In block executes the Function Call Subsystem attached to its output when dynamically switching to this model from another model. The Function Call Subsystem is not executed when starting 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 In 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 Input block. This block is typically placed within the Function Call Subsystem attached to the Switching In block. Any transformations which need to be performed on the states read by the State Input block can also be done in the Function Call Subsystem. The transformed states are then used to initialize the states of the model. For example, the transformed states may be used to set the initial conditions of an Integrator block.

Any number of Switching In 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

Switching In

The Switching In block has no parameters.

Targets

Target Name

Compatible*

Model Referencing

Comments

QUARC Win32 Target

Yes

Yes

QUARC Win64 Target

Yes

Yes

QUARC Linux Nvidia Target

Yes

Yes

QUARC Linux QBot Platform Target

Yes

Yes

QUARC Linux QCar 2 Target

Yes

Yes

QUARC Linux QDrone 2 Target

Yes

Yes

QUARC Linux Raspberry Pi 3 Target

Yes

Yes

QUARC Linux Raspberry Pi 4 Target

Yes

Yes

QUARC Linux RT ARMv7 Target

Yes

Yes

QUARC Linux x64 Target

Yes

Yes

QUARC Linux DuoVero Target

Yes

Yes

QUARC Linux DuoVero 2016 Target

Yes

Yes

QUARC Linux Verdex Target

Yes

Yes

QUARC QNX x86 Target

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

* Compatible means that the block can be compiled for the target.

See Also

 

navigation bar