Start of trail File Read navigation bar

Table of Contents

Error Constant

Outputs a QUARC error code.

Library

QUARC Targets/Sources/Signals

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/Sources/Signals')

Description

Error Constant

The Error Constant block outputs a QUARC error code. The error code is output as a negative value because all QUARC functions and blocks return negative error codes. Note that the error code appears in generated code as the symbolic name, for greater portability and readability. A table of error codes may be found at Error Codes.

Input Ports

This block has no input ports.

Output Ports

This block has a single output port containing the negative error code.

Parameters and Dialog Box

Error Constant

Error code

The name of the error code to output.

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