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 Status (Composite)

Modem Status block

Library

Simulink® Real-Time™ Library for RS-232

Description

The Modem Status block reads the state of the four input modem control lines.

This block has an output of type Boolean. If the input voltage is positive, the output is true. If the input voltage is negative, the output is false.

Block Parameters

Port (Quatech®, Commtech)

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

CTS

Select this check box to monitor the CTS line.

DSR

Select this check box to monitor the DSR line.

RI

Select this check box to monitor the RI line.

DCD

Select this check box to monitor the DCD line.

Sample time

Enter the base sample time or a multiple of the base sample time (-1 means sample time is inherited).

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?