Modem Status
Return state of modem control lines
Libraries:
Simulink Real-Time /
RS232 /
Mainboard
Description
The Modem Status block reads the state of the input modem control lines on the Speedgoat® target computer.
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.
Examples
ASCII Encoding/Decoding Resync Loopback Test
Use the ability of the FIFO Read HDRS block to resynchronize after being repeatedly disabled and apply this ability to resolve errors such as when a message is only partially complete at the time the read is attempted.
Binary Encoding/Decoding Resync Loopback Test
Use the ability of the FIFO Read BINARY block to handle messages that are interrupted and only partially complete.
Simple ASCII Encoding/Decoding Loopback Test (with Baseboard Blocks)
Convert a single floating point number to ASCII and transmit the value over a serial link.
ASCII Encoding/Decoding Loopback Test (with Baseboard Blocks)
Send ASCII data over a serial link.
ASCII Encoding/Decoding Resync Loopback Test (with Baseboard Blocks)
Use the ability of the FIFO Read HDRS block to resynchronize after being repeatedly disabled and apply this ability to resolve errors such as when a message is only partially complete at the time the read is attempted.
Binary Encoding/Decoding Loopback Test (with Baseboard Blocks)
Send Binary data over a serial link.
Binary Encoding/Decoding Resync Loopback Test (with Baseboard Blocks)
Use the ability of the FIFO Read BINARY block to handle messages that are interrupted and only partially complete.
Ports
Output
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 is receiving a carrier from a
remote device.
Dependency
To make this output visible, select the DCD parameter.
Parameters
Select this check box to monitor the CTS line of the modem.
Selecting this parameter makes the CTS
port
visible.
Programmatic Use
cts
Select this check box to monitor the DSR line of the modem.
Selecting this parameter makes the DSR
port
visible.
Programmatic Use
dsr
Select this check box to monitor the DCD line of the modem.
Selecting this parameter makes the DCD
port
visible.
Programmatic Use
dcd
Enter the base sample time or a multiple of the base sample time. -1
means
that sample time is inherited.
Programmatic Use
sampletime
Specify the serial port for communications.
If using USB-to-serial adapters, the target computer
detects these adapters as serusb1
, serusb2
, and so
on in the order that the adapters are connected to the serial devices.
The order of port assignment is retained through the power cycle of the target computer or serial device if there is no change in the connections to the ports.
Programmatic Use
Block Parameter:
port |
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.
Version History
Introduced in R2020b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)