External Interfaces Previous page   Next Page
Tag

Specify a label to associate with a serial port object

Description

You configure Tag to be a string value that uniquely identifies a serial port object.

Tag is particularly useful when constructing programs that would otherwise need to define the serial port object as a global variable, or pass the object as an argument between callback routines.

You can return the serial port object with the instrfind function by specifying the Tag property value.

Characteristics

Read only
Never
Data type
String

Values

The default value is an empty string.

Example

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

You can assign s a unique label using Tag.

You can access s in the MATLAB workspace or in an M-file using the instrfind function and the Tag property value.

See Also

Functions

instrfind


Previous page  StopBits Terminator Next page

© 1994-2005 The MathWorks, Inc.