String Constant
R2026bOutput specified string
Libraries:
Simulink /
String
Description
The String Constant block outputs a string specified by the String parameter. Use this block when you want a constant whose type is string.
Limitations
The Output data type parameter does not support string data
types that use symbolic expressions to specify the maximum length because signals with
symbolic dimensions must be driven by a block with nonconstant sample time. For example,
the Output data type parameter specified as
stringtype("N") with N defined as a symbolic
expression is not supported.
Ports
Output
Parameters
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"simulink/String/String Constant"
Example: add_block("simulink/String/String Constant","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2018aSee Also
Blocks
- ASCII to String | Compose String | Scan String | String Compare | String Concatenate | String Find | String Length | String to Double | String to Enum | String to Single | String to ASCII | Substring | To String