Start of trail Is Stop Requested? navigation bar

Table of Contents

Is Connected?

Indicates whether Simulink is currently connected to the model.

Library

QUARC Targets/Sources/Status

Description

Is Connected?

The Is Connected? block outputs a Boolean signal indicating whether Simulink is currently connected to the model. In normal simulation, this output is always true because the sink blocks, like Scopes, operate as expected and parameters may be tuned.

This block may be used to issue an audible alarm (using the Beep block) when Simulink becomes disconnected, or to reduce the computational overhead required by a model by eliminating calculations that are only done for plotting purposes.

Limitations

Targets

Warning This block is only supported by QUARC targets. It does not work with the Rapid Simulation target or GRT because there are no mechanisms for determining if Simulink is connected to the model for those targets.

Input Ports

This block has no input ports.

Output Ports

This block has a single output port indicating whether Simulink is connected.

Parameters and Dialog Box

Is Connected?

Sample time

The sample time of the block. A sample time of 0 indicates that the block will be treated as a continuous time block. A positive sample time indicates that the block is a discrete time block with the given sample time.

A sample time of -1 indicates that the block inherits its sample time. Since this is a source block, only inherent the sample time when it is placed in a conditionally executed subsystem, like a Triggered Subsystem, Enabled Subsystem, Function Call Subsystem or in a referenced model.

To use the fundamental sampling time of the model, set the sample time to qc_get_step_size, which is a QUARC function that returns the fundamental sampling time of the model.

The default sample time is set to qc_get_step_size.

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.

 

navigation bar