VISA 接口
与支持 VISA 标准的仪器通信
您可以将 VISA 接口与多种类型的接口一起使用,例如 TCP/IP、USB、GPIB 等。您需要使用确定通信接口类型的参数创建一个 visadev
对象。例如,对于 VISA-GPIB 对象,visadev
函数采用包含板索引和地址的 VISA 资源字符串。
函数
属性
visadev Properties | Access VISA resource properties (自 R2021a 起) |
App
VISA 通信管理器 | Connect to and communicate with instruments over VISA (自 R2022b 起) |
模块
VISA | Communicate with VISA resources (自 R2023b 起) |
主题
连接并配置 VISA 接口
- Get Started with VISA
Get started with the Virtual Instrument Standard Architecture (VISA) interface. - Get Started with TCP/IP Interface for VXI-11 and HiSLIP
Establish a connection between MATLAB® and your instrument using the VISA-TCP/IP interface. - Get Started with TCP/IP Socket Interface
Establish a connection between MATLAB and your instrument using the VISA-Socket interface. - Get Started with USB Interface
Establish a connection between MATLAB and your instrument using the VISA-USB interface. - Get Started with GPIB Interface
Establish a connection between MATLAB and your instrument using the VISA-GPIB interface. - Get Started with Serial Port Interface
Establish a connection between MATLAB and your instrument using the VISA-Serial interface. - Get Started with VXI and PXI Interfaces
Establish a connection between MATLAB and your instrument using the VISA-VXI or VISA-PXI interface.
与 VISA 资源通信
- Write and Read ASCII Data Using VISA
Explore ASCII write and read operations with a VISA object. - Write and Read Binary Data Using VISA
Explore binary write and read operations with a VISA object. - Send Trigger to Instrument
Send the trigger command to your VISA resource. - Execute Serial Polls
Execute a serial poll to check the status of your VISA resource. - Transition Your Code to visadev Interface
Connect to a VISA device usingvisadev
instead ofvisa
.
疑难解答
对 VISA 接口进行故障排除。
Resolve VISA Connection Errors
Troubleshoot connecting to a device using VISA.
Resolve VISA Warning: Unable to Read Any Data
Troubleshoot when you receive some data and you get the warning message: 'visadev' unable to read any data.
Resolve VISA Warning: Unable to Read All Data
Troubleshoot when you receive some data and you get the warning message: 'visadev' unable to read all requested data.