External Interfaces Previous page   Next Page

Connecting to the Device

Before you can use the serial port object to write or read data, you must connect it to your device via the serial port specified in the serial function. You connect a serial port object to the device with the fopen function.

Some properties are read-only while the serial port object is connected and must be configured before using fopen. Examples include the InputBufferSize and the OutputBufferSize properties. Refer to Property Reference to determine when you can configure a property.

You can examine the Status property to verify that the serial port object is connected to the device.

As illustrated below, the connection between the serial port object and the device is complete, and you can write and read data.

Connecting a serial port object and a device


Previous page  Creating an Array of Serial Port Objects Configuring Communication Settings Next page

© 1994-2005 The MathWorks, Inc.