ASCII Decode V2 -
Purpose
ASCII Decode V2
Library
xPC Target Library for RS232
Description
The ASCII Decode block parses an input vector according to a
format specifier similar to scanf, and makes converted
values available to a Simulink program. The input vector to the
ASCII Decode block can be either 8-bit or 16-bit and signed or unsigned.
If the data format is 16-bit, the ASCII Decode block ignores the upper
eight bits of each entry.
Block Parameters
- Format
Enter a scanf like format string. Each format
specifier such as %d must match a corresponding
part of the input vector. Literal strings in the format must match
the first character plus the number of characters. Acceptable format
specifiers are %c, %d, %i, %o, %u, %x, %e, %f,
and %g. These follow the normal description for scanf.
 | ASCII Encode/Decode (Composite) | | FIFO Read/Write (Composite) |  |
Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
Get this Simulink Kit