Skip to Main Content Skip to Search
Product Documentation

Function Reference


Instrument Object CreationCreate interface objects and device objects
State ChangeConnect to instruments, disconnect from instruments, and record information to disk
Property Display and ConfigurationReturn properties, configure properties, and open property inspector
Data ReadingRead text, binary, and binblock data for interface objects
Data WritingWrite text, binary, and binblock data for interface objects
Information and HelpReturn function help, property help, and property characteristics
Graphical ToolsTools that facilitate instrument control in graphical environment
UtilitiesDelete, clear, find, save, and load objects, convert objects to code
Interface ObjectsFunctions listed by interface type (GPIB, VISA-VXI, and so on)
Device ObjectsFunctions used only with device objects
IVI Configuration Store ObjectsFunctions used only with IVI configuration store objects

Instrument Object Creation

Interface ObjectCreate interface object
Device ObjectCreate device object

Interface Object

bluetoothCreate Bluetooth object
fgenCreate Quick-Control Function Generator object
gpibCreate GPIB object
i2cCreate I2C object
oscilloscopeCreate Quick-Control Oscilloscope object
serialCreate serial port object
tcpipCreate TCPIP object
udpCreate UDP object
visaCreate VISA object

Device Object

icdeviceCreate device object

State Change

Interface ObjectControl interface object
Device ObjectControl device object

Interface Object

fcloseDisconnect interface object from instrument
fopenConnect interface object to instrument
recordRecord data and event information to file

Device Object

connectConnect device object to instrument
disconnectDisconnect device object from instrument

Property Display and Configuration

getInstrument object properties
inspectOpen Property Inspector
setConfigure or display instrument object properties

Data Reading

binblockreadRead binblock data from instrument
fgetlRead line of text from instrument and discard terminator
fgetsRead line of text from instrument and include terminator
flushinputRemove data from input buffer
freadRead binary data from instrument
fscanfRead data from instrument, and format as text
getWaveformReturns waveform displayed on scope
queryWrite text to instrument, and read data from instrument
readasyncRead data asynchronously from instrument
scanstrRead data from instrument, format as text, and parse
stopasyncStop asynchronous read and write operations

Data Writing

binblockwriteWrite binblock data to instrument
flushoutputRemove data from output buffer
fprintfWrite text to instrument
fwriteWrite binary data to instrument
queryWrite text to instrument, and read data from instrument
stopasyncStop asynchronous read and write operations

Information and Help

instrhelpHelp for instrument object type, function, or property
instrhwinfoInformation about available hardware
propinfoInstrument object property information

Graphical Tools

Interface ObjectGraphical tools for interface objects
Device ObjectGraphical tools for device objects

Interface Object

tmtoolOpen Test & Measurement Tool

Device Object

mideditOpen graphical tool for creating and editing MATLAB instrument driver
midtestOpen graphical tool for testing MATLAB instrument driver
tmtoolOpen Test & Measurement Tool

Utilities

clearRemove instrument objects from MATLAB workspace
deleteRemove instrument objects from memory
dispDisplay instrument object summary information
instrcallbackDisplay event information when event occurs
instrfindRead instrument objects from memory to MATLAB workspace
instrfindallFind visible and hidden instrument objects
instridDefine and retrieve commands that identify instruments
instrnotifyDefine notification for instrument events
instrresetDisconnect and delete all instrument objects
isvalidDetermine whether instrument objects are valid
lengthLength of instrument object array
loadLoad instrument objects and variables into MATLAB workspace
methodsClass method names and descriptions
obj2mfileConvert instrument object to MATLAB code
saveSave instrument objects and variables to MAT-file
sizeSize of instrument object array

Interface Objects

GPIBCreate GPIB object, clear instrument buffer, send trigger message, perform serial poll
Serial PortCreate serial port object, send break to instrument
TCP/IPCreate TCP/IP object, return host information, start or stop echo server
UDPCreate UDP object, return host information, start or stop echo server
VISA-GPIBCreate VISA-GPIB object, clear instrument buffer, send trigger message
VISA-GPIB-VXICreate VISA-GPIB-VXI object, low level memory operations, high level memory operations, send trigger
VISA-SerialCreate VISA-Serial object
VISA-VXICreate VISA-VXI object, low level memory operations, high level memory operations, send trigger

GPIB

clrdeviceClear instrument buffer
gpibCreate GPIB object
spollPerform serial poll on GPIB objects
triggerSend trigger message to instrument

Serial Port

serialCreate serial port object
serialbreakSend break to instrument

TCP/IP

echotcpipStart or stop TCP/IP echo server
resolvehostNetwork name or network address
tcpipCreate TCPIP object

UDP

echoudpStart or stop UDP echo server
resolvehostNetwork name or network address
udpCreate UDP object

VISA-GPIB

clrdeviceClear instrument buffer
spoll (visa)Perform serial poll on VISA objects
triggerSend trigger message to instrument
visaCreate VISA object

VISA-GPIB-VXI

clrdeviceClear instrument buffer
memmapMap memory for low-level memory read and write operations
mempeekLow-level memory read from VXI register
mempokeLow-level memory write to VXI register
memreadHigh-level memory read from VXI register
memunmapUnmap memory for low-level memory read and write operations
memwriteHigh-level memory write to VXI register
spoll (visa)Perform serial poll on VISA objects
visaCreate VISA object

VISA-Serial

spoll (visa)Perform serial poll on VISA objects
visaCreate VISA object

VISA-VXI

clrdeviceClear instrument buffer
memmapMap memory for low-level memory read and write operations
mempeekLow-level memory read from VXI register
mempokeLow-level memory write to VXI register
memreadHigh-level memory read from VXI register
memunmapUnmap memory for low-level memory read and write operations
memwriteHigh-level memory write to VXI register
triggerSend trigger message to instrument
visaCreate VISA object

Device Objects

deviceresetReset instrument
geterrorCheck and return error message from instrument
invokeExecute driver-specific function on device object
makemidConvert driver to MATLAB instrument driver format
selftestRun instrument self-test

IVI Configuration Store Objects

addAdd entry to IVI configuration store object
commitSave IVI configuration store object to data file
iviconfigurationstoreCreate IVI configuration store object
removeRemove entry from IVI configuration store object
updateUpdate entry of IVI configuration store object
  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS