private BeamScanSingleton(IBeamSetup beamSetup, IBeamScan beamScan, IBeamState beamState) { _beamScan = beamScan; // _beamSetup = beamSetup; // _beamState = beamState; // _pdao32Card = new PowerDaq32AO(); // SignalCardStartArgs _cardArgs = new SignalCardStartArgs(SignalCardModeEnum.BufferedOut, 40000, 8, 500000, 8, 100); this.m_PackageManager.OnPackageCompleted += new PackageOfficeEvent(this.OnPackageManagerCompleted); }
public void SetBeamState(IBeamState beamState) { try { if (beamState != null) { this._beamState = beamState; } } catch (Exception) { throw new Exception("beamState is null"); } }
public EBMBeamScan() { _iDummySweep = new BeamSetupDummySweep(); _beamScan = new SanxinBeamScan(); // _beamSetup = new BeamSetup(); // _beamState = new SanxinBeamState(); // _iDummySweep.Speed = 100000; _beamSetup.NumberOfFrames = 8; _beamSetup.Rate = 40000; _beamSetup.ReadTimeout = 2000; _beamSetup.WriteTimeout = 2000; _beamSetup.BufferFrameSize = 8000; _beamSetup.DummySweep = _iDummySweep; beamScanFactory = BeamScanSingleton.GetInstance(_beamSetup, _beamScan, _beamState); }
public static BeamScanSingleton GetInstance(IBeamSetup beamSetup, IBeamScan beamScan, IBeamState beamState) { if (_instance == null) { lock (_lock) { if (_instance == null) { _instance = new BeamScanSingleton(beamSetup, beamScan, beamState); } } } return(_instance); }
public SanXinBeam(IBeamScan _Scan, IBeamState _State, IBeamSetup _Setup) { Scan = _Scan; State = _State; Setup = _Setup; }