예제 #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
        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
         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;
            }
        }