| 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 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 and 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 and the output goes to a negative voltage. If RTS or DTR is not selected, the corresponding output is not changed.
From the list, choose a port. The Port parameter defines the port to configure for this driver block.
Select this check box to control the RTS line for this board.
Select this check box to control the DTR line for this port.
From the list, choose a port. The Port parameter defines the port to configure for this driver block.
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 of the Send/Receive block. See the Diamond user's manual documentation for the appropriate jumper settings.
For Emerald-MM-8, this parameter contains a value based on the Base address value of the configuration register in the Parameter Group: Board Setup dialog of the Send/Receive block. See the Diamond user's manual documentation.
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
![]() | FIFO Read Binary (Composite) | Modem Status (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 |