Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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.

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. 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. 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.

DTR

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

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')

Introduced in R2008a

Was this topic helpful?