ASCII Encode
R2026bConvert Simulink values into uint8 character vector
Libraries:
Simulink Real-Time /
RS232
Description
The ASCII Encode block generates a uint8 output
vector that contains a NULL-terminated character vector based on a
printf like format string. The data comes from the input
ports.
For more information, see RS-232 Serial Communication and RS-232 Legacy Drivers.
Examples
Ports
Input
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"slrealtimeseriallib/ASCII Encode"
Example: add_block("slrealtimeseriallib/ASCII Encode","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2020b




