private void toolStripMenuItem_VMEDisconnect_Click(object sender, EventArgs e) { try { this.vme = null; this.toolStripMenuItem_VMEConnect.Enabled = true; this.toolStripMenuItem_VMEDisconnect.Enabled = false; this.groupBox_F1hAngle.Enabled = false; this.groupBox_F1vAngle.Enabled = false; this.groupBox_F1Y.Enabled = false; this.groupBox_F2hAngle.Enabled = false; this.groupBox_F2vAngle.Enabled = false; this.groupBox_F2Y.Enabled = false; } catch { } }
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 toolStripMenuItem_VMEConnect_Click(object sender, EventArgs e) { try { this.vme = new VmeControl(); if (this.vme.Connect()) { this.toolStripMenuItem_VMEConnect.Enabled = false; this.toolStripMenuItem_VMEDisconnect.Enabled = true; this.groupBox_F1hAngle.Enabled = true; this.groupBox_F1vAngle.Enabled = true; this.groupBox_F1Y.Enabled = true; this.groupBox_F2hAngle.Enabled = true; this.groupBox_F2vAngle.Enabled = true; this.groupBox_F2Y.Enabled = true; this.vme.logSet += new LogEventHandler(vme_logSet); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
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); }