Modem Status

Return state of modem control lines

  • Library:
  • Simulink Real-Time / RS232 / Mainboard

Description

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

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

Ports

Output

expand all

If true, the modem is ready to receive data.

Dependency

To make this output visible, select the CTS parameter.

If true, the modem is ready to send and receive data.

Dependency

To make this output visible, select the DSR parameter.

If true, the modem has received an incoming ring signal.

Dependency

To make this output visible, select the RI parameter.

If true, the modem is receiving a carrier from a remote device.

Dependency

To make this output visible, select the DCD parameter.

Parameters

expand all

Select this check box to monitor the CTS line of the modem.

Selecting this parameter makes the CTS port visible.

Programmatic Use

Block Parameter: cts

Select this check box to monitor the DSR line of the modem.

Selecting this parameter makes the DSR port visible.

Programmatic Use

Block Parameter: dsr

Select this check box to monitor the RI line of the modem.

Selecting this parameter makes the RI port visible.

Programmatic Use

Block Parameter: ring

Select this check box to monitor the DCD line of the modem.

Selecting this parameter makes the DCD port visible.

Programmatic Use

Block Parameter: dcd

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

Programmatic Use

Block Parameter: sampletime

From the list, select a port to access:

  • COM1 — 0x3F8

  • COM2 — 0x2F8

  • COM3 — 0x3E8

  • COM4 — 0x2E8

  • Custom — A port that is set to an address other than the addresses for COM1, COM2, COM3, or COM4.

The value Custom causes the Base address parameter to become visible.

Programmatic Use

Block Parameter: boardtype

Use this base address to specify a Custom serial port.

The value Custom causes the Base address parameter to become visible.

Programmatic Use

Block Parameter: addr

Introduced in R2008a