Documentation

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.

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

Port (Diamond)

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

First port address (Diamond)

This parameter specifies the first port whose input modem control line states you want to read. Do not change this value.

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.

For Emerald-MM-8, this parameter contains a value based on the Base address value in the Parameter Group: Board Setup dialog.

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?