Documentation

Modem Control (Composite)

Modem Control block

Library

Simulink® Real-Time™ Library for RS-232

Description

The Modem Control block controls the state of either or both of the RTS and DTR output lines on the specified port.

    Note:   The Diamond Systems PC/104 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.

This block requires an input of type double. If the input value is greater than 0.5, the block asserts the RTS or DTR control bit to true and the output goes to a positive voltage. If the value is less than or equal to 0.5, the block asserts the RTS or DTR control bit to false and the output goes to a negative voltage. If RTS or DTR is not selected, the corresponding output is not changed.

Block Parameters

Port (Quatech®, Commtech)

From the list, choose a port. The Port parameter defines the port to configure for this driver block.

RTS

Select this check box to control the RTS line for this board.

DTS

Select this check box to control the DTR line for this port.

Port (Diamond)

From the list, choose a port. The Port parameter defines the port to configure for this driver block.

First port address (Diamond)

For Emerald-MM, this value should be the same as the First port address parameter value you select in the Parameter Group: Board Setup dialog of the Send/Receive block. See the Diamond product documentation for information on jumper settings.

For Emerald-MM-8, this parameter contains a value based on the Base address value of the configuration register in the Parameter Group: Board Setup dialog of the Send/Receive block. See the Diamond product documentation.

Configuration (Mainboard)

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.

Slot (PCI boards)

If only one board of this type is in the target computer, enter -1 to 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 [BusNumber, SlotNumber]. To determine the bus number and the PCI slot number, type:

tg = slrt;
getPCIInfo(tg, 'installed')
Was this topic helpful?