This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

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