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
| The object type is GPIB. |
| The object type is serial port. |
| The object type is TCPIP. |
| The object type is UDP. |
| The object type is VISA-GPIB. |
| The object type is VISA-VXI. |
| The object type is VISA-GPIB-VXI. |
| 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