Main Content

Simple ASCII Encoding/Decoding Loopback Test (with Baseboard Blocks)

This example model shows how a single floating point number can be converted to ASCII and transmitted over a serial link. The sending serial port and receiving serial port can be in the same system or in different systems.

To test this model:

  1. The target computer must have two legacy serial ports.

  2. Connect legacy serial port 1 to legacy serial port 2 with a null modem cable.

This example is configured to use baseboard serial ports (legacy serial port 1 and legacy serial port 2). You can also use legacy serial port 3 and legacy serial port 4 by changing the board setup in the Baseboard blocks. Other serial blocks could be used in place of the Baseboard blocks.

Open Model

model= 'slrt_ex_serialbaseboardsimpleascii';
open_system(model);

Close Model

bdclose(model);

See Also