コード例 #1
0
        public ScannerSB148(string section)
        {
            this.id = section;
            if (Util.GPIBDBG)
            {
                bInUse = true;
                return;
            }
            dev = new GPIBDevice("GPIB0::" + Util.ConstIni.StringValue(section, "PORT") + "::INSTR");

            bInUse = false;
            if (dev.Open())
            {
                dev.ClearInBuffer();
                bInUse = true;
            }
        }
コード例 #2
0
        public ScannerSB148(string section)
        {
            this.id = section;
            if (Util.GPIBDBG)
            {
                bInUse = true;
                return;
            }
            Serial = Util.ConstIni.StringValue(section, "SERIAL");
            dev    = new GPIBDevice("GPIB0::" + Util.ConstIni.StringValue(section, "PORT") + "::INSTR");

            bInUse = false;
            if (dev.Open())
            {
                dev.ClearInBuffer();
                bInUse = true;//(TalkTryThree("*IDN?\r\n") == Serial);
                if (!bInUse)
                {
                    dev.Close();
                }
            }
        }
コード例 #3
0
ファイル: DeviceMgr.cs プロジェクト: imdmmp/kpgweigher
        public ScannerSB148(string section)
        {
            this.id = section;
            if (Util.GPIBDBG)
            {
                bInUse = true;
                return;
            }
            Serial = Util.ConstIni.StringValue(section, "SERIAL");
            dev = new GPIBDevice("GPIB0::" + Util.ConstIni.StringValue(section, "PORT") + "::INSTR");

            bInUse = false;
            if (dev.Open())
            {
                dev.ClearInBuffer();
                bInUse = true;//(TalkTryThree("*IDN?\r\n") == Serial);
                if (!bInUse)
                    dev.Close();
            }
        }
コード例 #4
0
ファイル: DeviceMgr.cs プロジェクト: imdmmp/kpgweigher
         public DQ6622A(string section)
        {
            id = section;
            if (Util.GPIBDBG)
            {
                bInUse = true;
                return;
            }
            dev = new GPIBDevice("GPIB0::" + Util.ConstIni.StringValue(section, "PORT") + "::INSTR");

            bInUse = false;
            if (dev.Open())
            {
                dev.ClearInBuffer();
                
                bInUse = true;
            }
        }