读书人

急viOpen异常

发布时间: 2012-04-09 13:41:25 作者: rapoo

急!!!viOpen错误
我的程序用了err=viOpen(defaultRM,"TCPIP0::10.129.41.111::inst0::INSTR",VI_NULL,VI_NULL,&vi)
err返回一个负数,表明打开错误,为什么会错
我已经用expert connection安捷伦自带的连接软件能够打开,说明IP没有错,怎么用我自己的程序第二句就出错了?
求解,谢谢

[解决办法]
TCPIP0::10.129.41.111::inst0::INSTR
改为
TCPIP0::10.129.41.111::INSTR
[解决办法]
没有inst0


VXI0::1::INSTR

A VXI device at logical address 1 in VXI interface VXI0.

GPIB-VXI::9::INSTR


A VXI device at logical address 9 in a GPIB-VXI controlled VXI system.

GPIB::1::0::INSTR


A GPIB device at primary address 1 and secondary address 0 in GPIB interface 0.

ASRL1::INSTR


A serial device located on port 1.

VXI::MEMACC


Board-level register access to the VXI interface.

GPIB-VXI1::MEMACC


Board-level register access to GPIB-VXI interface number 1.

GPIB2::INTFC


Interface or raw resource for GPIB interface 2.

VXI::1::BACKPLANE


Mainframe resource for chassis 1 on the default VXI system, which is interface 0.

TCPIP0::1.2.3.4::999::SOCKET


Raw TCPIP access to port 999 at the specified address.

TCPIP::devicename @company.com::INSTR


TCPIP device using VXI-11 located at the specified address. This uses the default LAN Device Name of inst0.

USB0::2391::291::SN_001001::INSTR


USB device whose manufacturer ID is 2391, model code is 291, serial number is SN_001001. Optional USB interface number is not used.

读书人网 >C++ Builder

热点推荐