matlab visa驱动,(To be removed) Create VISA object

本文档介绍了如何在MATLAB中使用visa函数创建VISA对象,包括VISA-Serial、VISA-GPIB、VISA-VXI、VISA-TCPIP、VISA-USB等类型的连接,并给出了创建示例。但请注意,visa函数将被移除,推荐使用visadev代替。
摘要由CSDN通过智能技术生成

visa

(To be removed) Create VISA object

visa will be removed in a future release. Use visadev instead. For more information, see Compatibility Considerations.

Syntax

obj = visa('vendor','rsrcname')

Arguments

'vendor'A supported VISA vendor.

'rsrcname'The resource name of the VISA instrument.

'PropertyName'A VISA property name.

PropertyValueA property value supported by

PropertyName.

objThe VISA object.

Description

obj = visa('vendor','rsrcname')

creates the VISA object obj with a resource name given by

rsrcname for the vendor specified by

vendor.

You must first configure your VISA resources in the vendor's tool first, and then

you create these VISA objects. Use instrhwinfo to find the

commands to configure the objects:

vinfo = instrhwinfo('visa','keysight');

vinfo.ObjectConstructorName

If an invalid vendor or resource name is specified, an error is returned and the

VISA object is not created. For a list of supported values for

vendor see Supported Vendor and Resource

Names.

Examples

Create a VISA-serial object connected to serial port COM1 using National Instruments® VISA interface.

vs = visa('ni','ASRL1::INSTR');

Create a VISA-GPIB object connected to board 0 with primary address 1 and

second

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值