DeviceHandle= Long.parseLong(Dispatch.call(GlobalVariable.GPIBpp, "InitGPIB", new Variant(instrumentInfo.interfaceInfo.address)).toString());这个是初始化GPIB接口中构造函数中的一条语句。
1 回答

aluckdog
TA贡献1847条经验 获得超7个赞
调用无参的方法
Dispatch.call(disp, "Init").getShort();
调用有一个参数的方法
Dispatch.call(disp,"Method",new Variant(args)).getBoolean();
调用多个参数依次类推,注意在传递参数前,将Java中的参数转换成Variant
添加回答
举报
0/150
提交
取消