FormattedString
This block emulates the snprintf functionality of C/C++.
Library
SignalConversions
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
fmt | Format | Defines the format of the formatted string. The format supports all the C/C++ specifiers, but does not support the * width and precision. You can refer to the C/C++ printf documentation for more information. | String | |
nin | Number of inputs | Defines the number of inputs of the block. | Number | |
maxoutsz | Maximum size of output | Specifies the maximum number of characters in the output. If the string exceeds the maximum number, then the string is truncated. If the string contains fewer than the maximum number, then the unused elements are set to 0. | Scalar | |
externalActivation | External activation | Specifies whether the block receives an external activation or inherits its activation through its regular input ports. When External Activation is selected, an additional activation port is added to the block. By default, external activation is not selected. | Number | 0 |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | explicit | input | nin | |
Port 2 | explicit | output | 1 | |
Port 3 | activation | input | externalActivation |