Table of Contents
Stream Answer State Comparison
Compares the connection state of a Stream Answer block to a particular state.
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/Communications/Intermediate')Description
The Stream Answer State Comparison block compares a signal to a connection state. This state is compatible with the one produced by the con output of the Stream Answer block.
Input Ports
This block has a single input port which is the signal to compare to the connection 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
State code
The name of the connection 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 |
---|---|---|---|
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.