主要内容

本页采用了机器翻译。点击此处可查看最新英文版本。

仪器驱动通信

使用仪器驱动与仪器通信

您需要创建一个接口对象,例如 gpibi2c,以便与仪器进行通信,如文档的许多部分所述。您还可以创建一个设备对象,使您无需了解其命令集即可配置和查询仪器。有关使用设备对象的更多信息,请参阅 Creating and Connecting Device Objects

函数

全部展开

instrhwinfoInformation about available hardware
instridDefine and retrieve commands that identify instruments
icdevice创建设备对象
connectConnect device object to instrument
invokeExecute driver-specific function on device object
deviceresetReset instrument
selftestRun instrument self-test
geterrorCheck and return error message from instrument
dispDisplay instrument object summary information
getInstrument object properties
setConfigure or display instrument object properties
inspectOpen Property Inspector
methodsClass method names and descriptions
propinfoInstrument object property information
saveSave instrument objects and variables to MAT file
loadLoad instrument objects and variables into MATLAB workspace
lengthLength of instrument object array
sizeSize of instrument object array
isvalidDetermine whether instrument objects are valid
obj2mfileConvert instrument object to MATLAB code
disconnectDisconnect device object from instrument
deleteRemove instrument objects from memory
clearRemove instrument objects from MATLAB workspace

主题

精选示例