主要内容

仪器驱动通信

使用仪器驱动与仪器通信

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

函数

全部展开

instrhwinfoInformation about available hardware
instridDefine and retrieve commands that identify instruments
icdevicefindFind device connections (自 R2024b 起)
icdevice创建设备对象
connectConnect device object to instrument
invoke对设备对象执行驱动特定函数
devicereset重置仪器
selftestRun instrument self-test
geterrorCheck and return error message from instrument
disp显示仪器对象摘要信息
getInstrument object properties
setConfigure or display instrument object properties
inspect打开属性检查器
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
length仪器对象数组的长度
size仪器对象数组的大小
isvalid确定仪器对象是否有效
obj2mfileConvert instrument object to MATLAB code
disconnectDisconnect device object from instrument
deleteRemove instrument objects from memory
clearRemove instrument objects from MATLAB workspace

主题

精选示例