Stream Server Stream State Constant navigation bar

Table of Contents

Stream State Comparison

Compares a signal to a persistent stream state.

Library

QUARC Targets/Communications/Basic

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/Communications/Basic')

Description

Stream State Comparison

The Stream State Comparison block compares a signal to a persistent stream state. The Basic Stream blocks, such as the Stream Client and Stream Server blocks, have a state output. The Stream State Comparison block may be used to compare the output of this state port to one of the possible persistent stream states.

Input Ports

This block has a single input port which is the signal to compare to the persistent stream state.

Output Ports

This block has a single output port which is non-zero if the comparison is true and false otherwise.

Data Type Support

This block accepts inputs of any data type supported by Simulink, including fixed-point data types. The block output is boolean or uint8 as specified by the Output data type mode parameter.

Parameters and Dialog Box

Stream State Comparison

State code

The name of the persistent stream state to which to compare the input signal.

Operator

The operator to use for the comparison.

Output data type mode

The data type of the output. Only boolean and uint8 data types are supported, to be consistent with the logical operators that come with Simulink.

Enable zero crossing detection

Check this option to enable zero crossing detection.

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