Show value of input
Simulink / Sinks
HDL Coder / Sinks
TheDisplayblock shows the value of the input data. You can specify the frequency of the display. For numeric input data, you can also specify the format of display.
If the block input is an array, you can resize the block vertically or horizontally to show more than just the first element. If the block input is a vector, the block sequentially adds display fields from left to right and top to bottom. The block displays as many values as possible. A black triangle indicates that the block is not displaying all input array elements.
TheDisplayblock shows the first 200 elements of a vector signal and the first 20 rows and 10 columns of a matrix signal.
Note
If you specify a numeric display format that is not large enough to display all the digits of a value, the displayed values may lose precision. The result depends on your computer hardware and operating system.
The following abbreviations appear on theDisplayblock to help you identify the format of the value.
When You See... | The Value That Appears Is... |
---|---|
|
存储的整数值 Note
|
|
In hexadecimal format |
|
In binary format |
|
In octal format |
When working with strings, theDisplayblock displays:
Strings with double quotes.
Special characters such as newline are shown as escaped sequences, for example'\n'
.
Non-displayable characters as escaped octal number, for example'\201'
.
If the incoming signal is of type string, theNumeric display formatparameter selection does not affect the display of the string.
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|