| Products & Services | Industries | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → xPC Target |
| Contents | Index |
| Learn more about xPC Target |
xPC Target Library for RS232
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.
From the list, choose a port. The Port parameter defines the port to configure for this driver block.
Select this check box to monitor the CTS line.
Select this check box to monitor the DSR line.
Select this check box to monitor the RI line.
Select this check box to monitor the DCD line.
Base sample time or a multiple of the base sample time.
From the list, choose a port. The Port parameter defines the port to configure for this driver block.
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.
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.
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
![]() | Modem Control (Composite) | RS-232/RS-422/RS-485 Send/Receive (Composite) | ![]() |

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 |