Main Content

Type

Instrument object type

Description

Type indicates the type of the object. Type is automatically defined after the instrument object is created with the serial, gpib, or visa function.

Using the instrfind function and the Type value, you can quickly identify instrument objects of a given type.

Characteristics

Usage

Any instrument object

Read only

Always

Data type

Character vector

Values

gpib

The object type is GPIB.

serial

The object type is serial port.

tcpip

The object type is TCPIP.

udp

The object type is UDP.

visa-gpib

The object type is VISA-GPIB.

visa-vxi

The object type is VISA-VXI.

visa-gpib-vxi

The object type is VISA-GPIB-VXI.

visa-serial

The object type is VISA-serial.

The value is automatically determined when the instrument object is created.

Examples

Create a serial port object on a Windows® machine associated with the serial port COM1. The value of the Type property is serial, which is the object class.

s = serial('COM1');
s.Type
ans =
serial

See Also