Beispiel #1
0
    //检查serverapi版本
    public void apiServerVersionCheck(ziDotNET daq)
    {
        String serverVersion = daq.getByte("/zi/about/version");
        String apiVersion    = daq.version();

        //Assert.AreEqual(serverVersion, apiVersion,
        // "Version mismatch between LabOne API and Data Server.");
        //Console.WriteLine("Current   Firmware   Version  is:    " + apiVersion);
    }
Beispiel #2
0
 //初始化连接和设置
 public String InitTheDevice(ziDotNET daq, String dev)
 {
     if (isNetWorkDeviceContainStringExsit())
     {
         //通过查看是否存在 Zurich Instruments  RNDIS 网卡判断是否存在 MFLI 设备
         daq = connect(daq, dev);//初始化
         //SetSignalOutputSetting(daq, dev);//设置输出信号
         //SetSignalInputSetting(daq, dev);//设置信号输入各参数
         //SetSignalOscillators(daq, dev);//设置频率
         //返回当前版本表示连接成功
         return(daq.version());
     }
     return(null);//返回null表示设备不存在
 }