External Interfaces Previous page   Next Page
Port

Specify the platform-specific serial port name

Description

You configure Port to be the name of a serial port on your platform. Port specifies the physical port associated with the object and the device.

When you create a serial port object, Port is automatically assigned the port name specified for the serial function.

You can configure Port only when the object is disconnected from the device. You disconnect an object with the fclose function. A disconnected object has a Status property value of closed.

Characteristics

Read only
While open
Data type
String

Values

The Port value is determined when the serial port object is created.

Example

Suppose you create a serial port object associated with serial port COM1.

The value of the Port property is COM1.

See Also

Functions

fclose, serial

Properties

Name, Status


Previous page  PinStatusFcn ReadAsyncMode Next page

© 1994-2005 The MathWorks, Inc.