public void Initialize(Class_FeedbackStage _fs, int _Axis, VmeControl _vme, int _EH, int _ChIn, int _ChOut, int _iScanStart, int _iScanPitch, int _iScanMax,int _iNoPt, double _dExposTime, double _dWaitTime, string _filePath, ScanField _scanField, string _strComment = "") { fs = _fs; Axis = _Axis; vme = _vme; EH = _EH; ChIn = _ChIn; ChOut = _ChOut; iScanStart = _iScanStart; iScanPitch = _iScanPitch; iScanMax = _iScanMax; iNoPt = _iNoPt; dExposTime = _dExposTime; dWaitTime = _dWaitTime; filePath = _filePath; scanField = _scanField; strComment = _strComment; scanData = new ScanData(dExposTime); flagFinish = false; }
private void Form1_Load(object sender, EventArgs e) { #region feedbackstage string[] pList = System.IO.Ports.SerialPort.GetPortNames(); foreach (string port in pList) { this.comboBox_1nmX_Port.Items.Add(port); this.comboBox_1nmZ_Port.Items.Add(port); this.comboBox_5nm_Port.Items.Add(port); } fs1nmX = new Class_FeedbackStage("1nmStageX"); fs1nmZ = new Class_FeedbackStage("1nmStageZ"); fs5nm = new Class_FeedbackStage("5nmStage"); fs1nmX.logSet += new LogEventHandler(fs1nmX_logSet); fs1nmZ.logSet += new LogEventHandler(fs1nmZ_logSet); fs5nm.logSet += new LogEventHandler(fs5nm_logSet); fs1nmX.statSet += new StatusEventHandler(fs1nmX_statSet); fs1nmZ.statSet += new StatusEventHandler(fs1nmZ_statSet); fs5nm.statSet += new StatusEventHandler(fs5nm_statSet); #endregion #region VME SetVmeCh(this.comboBox_F1hAngle_VmeCh); SetVmeCh(this.comboBox_F1vAngle_VmeCh); SetVmeCh(this.comboBox_F1Y_VmeCh); SetVmeCh(this.comboBox_F2hAngle_VmeCh); SetVmeCh(this.comboBox_F2vAngle_VmeCh); SetVmeCh(this.comboBox_F2Y_VmeCh); #endregion #region Scan scan = new Scan(); scan.graphSet += new ScanDataEventHandler(scan_graphSet); scan.scanStatusSet += new ScanStatusEventHandler(scan_scanStatusSet); #endregion }
public Scan(Class_FeedbackStage _fs, int _Axis, VmeControl _vme, int _EH, int _ChIn, int _ChOut, int _iScanStart, int _iScanPitch, int _iScanMax, int _iNoPt, double _dExposTime, double _dWaitTime, string _filePath, ScanField _field, string _strComment = "") { Initialize(_fs, _Axis, _vme, _EH, _ChIn, _ChOut, _iScanStart, _iScanPitch, _iScanMax, _iNoPt, _dExposTime, _dWaitTime, _filePath, _field, _strComment); }