|Remove serial port object from memory|
|Disconnect serial port object from device|
|Read line of ASCII text from device and discard terminator|
|Read line of text from device and include terminator|
|Connect serial port object to device|
|Write text to device|
|Read binary data from device|
|Read ASCII data from device, and format as text|
|Write binary data to device|
|Serial port object properties|
|Determine whether serial port objects are valid|
|Read data asynchronously from device|
|Create serial port object|
|Send break to device connected to serial port|
|List of serial ports connected to your system|
|Configure or display serial port object properties|
|Stop asynchronous read and write operations|
|Remove serial port object from MATLAB workspace|
|Serial port object summary information|
|Event information when event occurs|
|Read serial port objects from memory to MATLAB workspace|
|Find visible and hidden serial port objects|
|Load serial port objects and variables into MATLAB workspace|
|Length of serial port object array|
|Record data and event information to file|
|Save serial port objects and variables to file|
|Size of serial port object array|
|Specify the rate at which bits are transmitted|
|Specify the callback function to execute when a break-interrupt event occurs|
|Specify the byte order of the device|
|Number of bytes available in the input buffer|
|Specify the callback function to execute when a specified number of bytes is available in the input buffer, or a terminator is read|
|Specify the number of bytes that must be available in the input buffer to generate a bytes-available event|
|Specify if the bytes-available event is generated after a specified number of bytes is available in the input buffer, or after a terminator is read|
|Number of bytes currently in the output buffer|
|Number of data bits to transmit|
|State of the DTR pin|
|Specify the callback function to execute when an error event occurs|
|Data flow control method to use|
|Size of the input buffer in bytes|
|Descriptive name for the serial port object|
|Control access to serial port object|
|Size of the output buffer in bytes|
|Specify the callback function to execute when the output buffer is empty|
|Specify the type of parity checking|
|State of the CD, CTS, DSR, and RI pins|
|Specify the callback function to execute when the CD, CTS, DSR, or RI pins change state|
|Specify the platform-specific serial port name|
|Specify whether an asynchronous read operation is continuous or manual|
|Specify the amount of information saved to a record file|
|Specify whether data and event information are saved to one record file or to multiple record files|
|Name of the record file|
|Indicate if data and event information are saved to a record file|
|State of the RTS pin|
|Indicate if the serial port object is connected to the device|
|Number of bits used to indicate the end of a byte|
|Label to associate with a serial port object|
|Waiting time to complete a read or write operation|
|Specify the callback function to execute when a predefined period of time passes.|
|Period of time between timer events|
|Indicate if an asynchronous read or write operation is in progress|
|Data you want to associate with a serial port object|
|Total number of values read from the device|
|Total number of values written to the device|
Serial port capabilities, supported interfaces, and supported platforms.
The serial port interface standard, signals and pin assignments, the serial data format, and finding serial port information for your platform.
These examples help you get started with the serial port interface.
Create a MATLAB® object that represents the serial I/O device. You can configure property values during object creation.
Establish a connection between MATLAB and the serial I/O device.
You can set values for baud rate, serial data format, parity checking, and other serial properties.
You can write data to the device and read data from the device. The data can be text or binary.
You can enhance the power and flexibility of your serial port communication by using events. An event occurs after a condition is met and might result in one or more callbacks.
You can use control pins to signal the presence of connected devices and control the flow of data.
Recording information to disk provides a permanent record of your serial port session, and is an easy way to debug your application. While the serial port object is connected to the device, you can record information, such as number of values, data, and event information, to a disk file.
You can save and load serial port objects.
After the serial communication is complete, you should disconnect the serial port object from the device and remove the object from memory and the workspace.
You can use serial port properties for reading and writing data, configuring the communication, performing callbacks, and other tasks. The properties are described here in detail.
BaudRate as bits per second.