DeviceHandle= Long.parseLong(Dispatch.call(GlobalVariable.GPIBpp, "InitGPIB", new Variant(instrumentInfo.interfaceInfo.address)).toString());這個是初始化GPIB接口中構(gòu)造函數(shù)中的一條語句。
1 回答
aluckdog
TA貢獻1847條經(jīng)驗 獲得超7個贊
調(diào)用無參的方法
Dispatch.call(disp, "Init").getShort();
調(diào)用有一個參數(shù)的方法
Dispatch.call(disp,"Method",new Variant(args)).getBoolean();
調(diào)用多個參數(shù)依次類推,注意在傳遞參數(shù)前,將Java中的參數(shù)轉(zhuǎn)換成Variant
添加回答
舉報
0/150
提交
取消
