Contenu principal

Interface GPIB

Communiquer avec des instruments via l’interface VISA-GPIB

GPIB est une interface standardisée qui vous permet de connecter et de contrôler les dispositifs de différents fournisseurs. La communication est établie avec un objet VISA-GPIB visadev que vous créez dans l’espace de travail MATLAB®. Pour plus d’informations sur la création de l’objet VISA-GPIB, consultez Get Started with GPIB Interface.

Vous pouvez écrire et lire des données binaires et texte. Pour des exemples avec ces deux types de données, consultez Write and Read GPIB Data.

Fonctions

développer tout

visadevlistList available VISA resources
visadevCreate connection to device using VISA
configureTerminatorSet terminator for ASCII string communication with VISA resource
visastatusCheck status of VISA resource
visatriggerSend trigger to GPIB or VXI instruments
visadevfindFind VISA device connections (depuis R2024a)
readRead data from VISA resource
readlineRead line of ASCII string data from VISA resource
readbinblockRead one binblock of data from VISA resource
writeWrite data to VISA resource
writelineWrite line of ASCII data to VISA resource
writebinblockWrite one binblock of data to VISA resource
writereadWrite command to VISA resource and read response
flushClear buffers for communication with VISA resource

Applications

VISA ExplorerConnect to and communicate with instruments over VISA (depuis R2022b)

Rubriques

Résolution des problèmes

Troubleshooting GPIB Interface

Troubleshoot the VISA-GPIB interface.