Modem Control block
Simulink® Real-Time™ Library for RS-232
The Modem Control block controls the state of either or both of the RTS and DTR output lines on the specified port.
This block requires an input of type
If the input value is greater than
0.5, the block
asserts the RTS or DTR control bit to true. The output goes to a positive
voltage. If the value is less than or equal to
the block asserts the RTS or DTR control bit to false. The output
goes to a negative voltage. If RTS or DTR is not selected, the corresponding
output is not changed.
The Commtech/Fastcom and Quatech® boards and blocks will be removed in a future release. Do not use them in new models. Instead, use boards and blocks available from www.speedgoat.com/products.
From the list, choose a port. The Port parameter defines the port to configure for this driver block.
Select this check box to control the RTS line for this board.
Select this check box to control the DTR line for this port.
From the list, choose a port. This parameter specifies the port whose input modem control line states you want to read.
Normally, the ports are set to the following:
COM1 — 0x3F8
COM2 — 0x2F8
COM3 — 0x3E8
COM4 — 0x2E8
A Custom port is one that is set to an address other than these.
If only one board of this type is in the target computer, enter
automatically locate the board.
If two or more boards of this type are in the target computer,
enter the bus number and the PCI slot number of the board associated
with this driver block. Use the format
To determine the bus number and the PCI slot number, type:
tg = slrt; getPCIInfo(tg, 'installed')