Contenu principal

Communication avec les drivers d’instrument

Communiquer avec des instruments à l’aide de drivers d’instrument

Comme l’expliquent de nombreuses sections de cette documentation, vous devez créer un objet interface, par exemple gpib ou i2c, pour communiquer avec des instruments. Vous pouvez également créer un objet dispositif qui vous permet de configurer et d’interroger un instrument sans connaître son jeu de commandes. Pour plus d’informations sur l’utilisation d’objets dispositifs, consultez Creating and Connecting Device Objects.

Fonctions

développer tout

instrhwinfoInformation about available hardware
instridDefine and retrieve commands that identify instruments
icdevicefindFind device connections (depuis R2024b)
icdeviceCréer un objet périphérique
connectConnect device object to instrument
invokeExécuter une fonction spécifique au driver sur un objet dispositif
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
lengthLongueur de tableau de l’objet instrument
sizeTaille de tableau de l’objet instrument
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

Rubriques

Sélection d՚exemples