Products & Services Industries Academia Support User Community Company

Learn more about xPC Target   

Modem Status (Composite) - Modem Status block

Library

xPC Target Library for RS232

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.

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

Base sample time or a multiple of the base sample time.

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 PC, enter

-1 

to automatically locate the board.

If two or more boards of this type are in the target PC, 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

getxpcpci
  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS