matlab gpib接口,Create GPIB object

Tips

At any time, you can use the instrhelp function to view a

complete listing of properties and functions associated with GPIB objects.

instrhelp gpib

When you create a GPIB object, these property value are automatically

configured:

Type is given by gpib.

Name is given by concatenating

GPIB with the board index and the primary address

specified in the gpib function. If the secondary address

is specified, then this value is also used in

Name.

BoardIndex and PrimaryAddress

are given by the values supplied to the gpib

function.

Note

You do not use the GPIB board primary address in the GPIB object constructor

syntax. You use the board index, and the instrument address.

You can specify the property names and property values using any format supported

by the set function. For example, you

can use property name/property value cell array pairs. Additionally, you can specify

property names without regard to case, and you can make use of property name

completion. For example, these commands are all valid:

g = gpib('ni',0,1,'SecondaryAddress',96);

g = gpib('ni',0,1,'secondaryaddress',96);

g = gpib('ni',0,1,'SECOND',96);

Before you can communicate with the instrument, it must be connected to

obj with the fopen function. A connected

GPIB object has a Status property value of

open. An error is returned if you attempt to perform a read

or write operation while obj is not connected to the

instrument.

You cannot connect multiple GPIB objects to the same instrument. A GPIB instrument

is uniquely identified by its board index, primary address, and secondary

address.

Note

To get a list of options you can use on a function, press the

Tab key after entering a function on the MATLAB® command line. The list expands, and you can scroll to choose a

property or value. For information about using this advanced tab completion

feature, see Using Tab Completion for Functions.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值