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; } }
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(); } } }
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(); } }
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; } }