FM2014: - prepared for multiple FM2014s - 5.Step
This commit is contained in:
Generated
+65
-50
@@ -63,13 +63,11 @@
|
||||
this.lblActualProcess = new System.Windows.Forms.Label();
|
||||
this.btnDutToRefRegulation = new System.Windows.Forms.Button();
|
||||
this.gbxManualRefCalibration = new System.Windows.Forms.GroupBox();
|
||||
this.lblMeasuredDutPulses = new System.Windows.Forms.Label();
|
||||
this.tbxMeasuredDutPulses = new System.Windows.Forms.TextBox();
|
||||
this.lblPulseVolumeCmRelation = new System.Windows.Forms.Label();
|
||||
this.tbxRefCalibrationResultPulsePerCm = new System.Windows.Forms.TextBox();
|
||||
this.lblWeightScaleVolume = new System.Windows.Forms.Label();
|
||||
this.tbxManualInputVolumeLiters = new System.Windows.Forms.TextBox();
|
||||
this.lblMeasuredRefPulses = new System.Windows.Forms.Label();
|
||||
this.tbxMeasuredRefPulses = new System.Windows.Forms.TextBox();
|
||||
this.btnManualRefCalibration = new System.Windows.Forms.Button();
|
||||
this.gbxDutToRefRegulation = new System.Windows.Forms.GroupBox();
|
||||
@@ -98,6 +96,9 @@
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.tbxRefFrequencyDirectHz = new System.Windows.Forms.TextBox();
|
||||
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
|
||||
this.cbxMeasuredDutPulses = new System.Windows.Forms.CheckBox();
|
||||
this.lblMeasuredRefPulses = new System.Windows.Forms.Label();
|
||||
this.cbxMultipleFm2014 = new System.Windows.Forms.CheckBox();
|
||||
this.gbxFM2014Setup.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.picFM2014)).BeginInit();
|
||||
this.gbxRegulationSetup.SuspendLayout();
|
||||
@@ -295,16 +296,16 @@
|
||||
this.gbxRegulationSetup.Controls.Add(this.tbxRefPulsePerCm);
|
||||
this.gbxRegulationSetup.Controls.Add(this.tbxDutPulsePerCm);
|
||||
this.gbxRegulationSetup.Controls.Add(this.tbxScaleRefToDut);
|
||||
this.gbxRegulationSetup.Location = new System.Drawing.Point(8, 238);
|
||||
this.gbxRegulationSetup.Location = new System.Drawing.Point(8, 239);
|
||||
this.gbxRegulationSetup.Name = "gbxRegulationSetup";
|
||||
this.gbxRegulationSetup.Size = new System.Drawing.Size(289, 161);
|
||||
this.gbxRegulationSetup.Size = new System.Drawing.Size(288, 174);
|
||||
this.gbxRegulationSetup.TabIndex = 82;
|
||||
this.gbxRegulationSetup.TabStop = false;
|
||||
this.gbxRegulationSetup.Text = "Regulation Setup";
|
||||
//
|
||||
// btnSaveRegulationSetup
|
||||
//
|
||||
this.btnSaveRegulationSetup.Location = new System.Drawing.Point(170, 128);
|
||||
this.btnSaveRegulationSetup.Location = new System.Drawing.Point(173, 144);
|
||||
this.btnSaveRegulationSetup.Name = "btnSaveRegulationSetup";
|
||||
this.btnSaveRegulationSetup.Size = new System.Drawing.Size(110, 25);
|
||||
this.btnSaveRegulationSetup.TabIndex = 7;
|
||||
@@ -401,7 +402,7 @@
|
||||
// lblUpdateTimeValue
|
||||
//
|
||||
this.lblUpdateTimeValue.AutoSize = true;
|
||||
this.lblUpdateTimeValue.Location = new System.Drawing.Point(299, 416);
|
||||
this.lblUpdateTimeValue.Location = new System.Drawing.Point(289, 416);
|
||||
this.lblUpdateTimeValue.Name = "lblUpdateTimeValue";
|
||||
this.lblUpdateTimeValue.Size = new System.Drawing.Size(28, 13);
|
||||
this.lblUpdateTimeValue.TabIndex = 81;
|
||||
@@ -415,7 +416,7 @@
|
||||
// lblTimeText
|
||||
//
|
||||
this.lblTimeText.AutoSize = true;
|
||||
this.lblTimeText.Location = new System.Drawing.Point(230, 416);
|
||||
this.lblTimeText.Location = new System.Drawing.Point(220, 416);
|
||||
this.lblTimeText.Name = "lblTimeText";
|
||||
this.lblTimeText.Size = new System.Drawing.Size(66, 13);
|
||||
this.lblTimeText.TabIndex = 79;
|
||||
@@ -425,7 +426,7 @@
|
||||
//
|
||||
this.lblWaitingForMeterResponse.AutoSize = true;
|
||||
this.lblWaitingForMeterResponse.ForeColor = System.Drawing.Color.Red;
|
||||
this.lblWaitingForMeterResponse.Location = new System.Drawing.Point(341, 416);
|
||||
this.lblWaitingForMeterResponse.Location = new System.Drawing.Point(350, 416);
|
||||
this.lblWaitingForMeterResponse.Name = "lblWaitingForMeterResponse";
|
||||
this.lblWaitingForMeterResponse.Size = new System.Drawing.Size(183, 13);
|
||||
this.lblWaitingForMeterResponse.TabIndex = 76;
|
||||
@@ -435,7 +436,7 @@
|
||||
//
|
||||
this.barSingleProgressUpdate.Location = new System.Drawing.Point(7, 432);
|
||||
this.barSingleProgressUpdate.Name = "barSingleProgressUpdate";
|
||||
this.barSingleProgressUpdate.Size = new System.Drawing.Size(517, 18);
|
||||
this.barSingleProgressUpdate.Size = new System.Drawing.Size(526, 18);
|
||||
this.barSingleProgressUpdate.TabIndex = 75;
|
||||
this.barSingleProgressUpdate.Visible = false;
|
||||
//
|
||||
@@ -450,7 +451,7 @@
|
||||
//
|
||||
// btnDutToRefRegulation
|
||||
//
|
||||
this.btnDutToRefRegulation.Location = new System.Drawing.Point(100, 129);
|
||||
this.btnDutToRefRegulation.Location = new System.Drawing.Point(113, 144);
|
||||
this.btnDutToRefRegulation.Name = "btnDutToRefRegulation";
|
||||
this.btnDutToRefRegulation.Size = new System.Drawing.Size(110, 25);
|
||||
this.btnDutToRefRegulation.TabIndex = 11;
|
||||
@@ -460,7 +461,7 @@
|
||||
//
|
||||
// gbxManualRefCalibration
|
||||
//
|
||||
this.gbxManualRefCalibration.Controls.Add(this.lblMeasuredDutPulses);
|
||||
this.gbxManualRefCalibration.Controls.Add(this.cbxMeasuredDutPulses);
|
||||
this.gbxManualRefCalibration.Controls.Add(this.tbxMeasuredDutPulses);
|
||||
this.gbxManualRefCalibration.Controls.Add(this.lblPulseVolumeCmRelation);
|
||||
this.gbxManualRefCalibration.Controls.Add(this.tbxRefCalibrationResultPulsePerCm);
|
||||
@@ -471,24 +472,15 @@
|
||||
this.gbxManualRefCalibration.Controls.Add(this.btnManualRefCalibration);
|
||||
this.gbxManualRefCalibration.Location = new System.Drawing.Point(302, 75);
|
||||
this.gbxManualRefCalibration.Name = "gbxManualRefCalibration";
|
||||
this.gbxManualRefCalibration.Size = new System.Drawing.Size(222, 161);
|
||||
this.gbxManualRefCalibration.Size = new System.Drawing.Size(231, 161);
|
||||
this.gbxManualRefCalibration.TabIndex = 83;
|
||||
this.gbxManualRefCalibration.TabStop = false;
|
||||
this.gbxManualRefCalibration.Text = "Manual REF Calibration";
|
||||
//
|
||||
// lblMeasuredDutPulses
|
||||
//
|
||||
this.lblMeasuredDutPulses.AutoSize = true;
|
||||
this.lblMeasuredDutPulses.Location = new System.Drawing.Point(10, 54);
|
||||
this.lblMeasuredDutPulses.Name = "lblMeasuredDutPulses";
|
||||
this.lblMeasuredDutPulses.Size = new System.Drawing.Size(121, 13);
|
||||
this.lblMeasuredDutPulses.TabIndex = 74;
|
||||
this.lblMeasuredDutPulses.Text = "Measured REF [Pulses]:";
|
||||
//
|
||||
// tbxMeasuredDutPulses
|
||||
//
|
||||
this.tbxMeasuredDutPulses.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.tbxMeasuredDutPulses.Location = new System.Drawing.Point(150, 51);
|
||||
this.tbxMeasuredDutPulses.Location = new System.Drawing.Point(164, 51);
|
||||
this.tbxMeasuredDutPulses.Name = "tbxMeasuredDutPulses";
|
||||
this.tbxMeasuredDutPulses.ReadOnly = true;
|
||||
this.tbxMeasuredDutPulses.Size = new System.Drawing.Size(60, 20);
|
||||
@@ -506,7 +498,7 @@
|
||||
// tbxRefCalibrationResultPulsePerCm
|
||||
//
|
||||
this.tbxRefCalibrationResultPulsePerCm.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.tbxRefCalibrationResultPulsePerCm.Location = new System.Drawing.Point(150, 102);
|
||||
this.tbxRefCalibrationResultPulsePerCm.Location = new System.Drawing.Point(164, 102);
|
||||
this.tbxRefCalibrationResultPulsePerCm.Name = "tbxRefCalibrationResultPulsePerCm";
|
||||
this.tbxRefCalibrationResultPulsePerCm.ReadOnly = true;
|
||||
this.tbxRefCalibrationResultPulsePerCm.Size = new System.Drawing.Size(60, 20);
|
||||
@@ -517,33 +509,24 @@
|
||||
this.lblWeightScaleVolume.AutoSize = true;
|
||||
this.lblWeightScaleVolume.Location = new System.Drawing.Point(10, 79);
|
||||
this.lblWeightScaleVolume.Name = "lblWeightScaleVolume";
|
||||
this.lblWeightScaleVolume.Size = new System.Drawing.Size(72, 13);
|
||||
this.lblWeightScaleVolume.Size = new System.Drawing.Size(75, 13);
|
||||
this.lblWeightScaleVolume.TabIndex = 70;
|
||||
this.lblWeightScaleVolume.Text = "Volume [liters]";
|
||||
this.lblWeightScaleVolume.Text = "Volume [liters]:";
|
||||
//
|
||||
// tbxManualInputVolumeLiters
|
||||
//
|
||||
this.tbxManualInputVolumeLiters.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.tbxManualInputVolumeLiters.Location = new System.Drawing.Point(150, 77);
|
||||
this.tbxManualInputVolumeLiters.Location = new System.Drawing.Point(164, 77);
|
||||
this.tbxManualInputVolumeLiters.Name = "tbxManualInputVolumeLiters";
|
||||
this.tbxManualInputVolumeLiters.Size = new System.Drawing.Size(60, 20);
|
||||
this.tbxManualInputVolumeLiters.TabIndex = 8;
|
||||
this.tbxManualInputVolumeLiters.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbxManualInputVolumeLiters_KeyStoke);
|
||||
this.tbxManualInputVolumeLiters.Leave += new System.EventHandler(this.tbxManualInputVolumeLiters_Leave);
|
||||
//
|
||||
// lblMeasuredRefPulses
|
||||
//
|
||||
this.lblMeasuredRefPulses.AutoSize = true;
|
||||
this.lblMeasuredRefPulses.Location = new System.Drawing.Point(10, 29);
|
||||
this.lblMeasuredRefPulses.Name = "lblMeasuredRefPulses";
|
||||
this.lblMeasuredRefPulses.Size = new System.Drawing.Size(123, 13);
|
||||
this.lblMeasuredRefPulses.TabIndex = 68;
|
||||
this.lblMeasuredRefPulses.Text = "Measured DUT [Pulses]:";
|
||||
//
|
||||
// tbxMeasuredRefPulses
|
||||
//
|
||||
this.tbxMeasuredRefPulses.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.tbxMeasuredRefPulses.Location = new System.Drawing.Point(150, 26);
|
||||
this.tbxMeasuredRefPulses.Location = new System.Drawing.Point(164, 26);
|
||||
this.tbxMeasuredRefPulses.Name = "tbxMeasuredRefPulses";
|
||||
this.tbxMeasuredRefPulses.ReadOnly = true;
|
||||
this.tbxMeasuredRefPulses.Size = new System.Drawing.Size(60, 20);
|
||||
@@ -551,7 +534,7 @@
|
||||
//
|
||||
// btnManualRefCalibration
|
||||
//
|
||||
this.btnManualRefCalibration.Location = new System.Drawing.Point(100, 130);
|
||||
this.btnManualRefCalibration.Location = new System.Drawing.Point(114, 130);
|
||||
this.btnManualRefCalibration.Name = "btnManualRefCalibration";
|
||||
this.btnManualRefCalibration.Size = new System.Drawing.Size(110, 25);
|
||||
this.btnManualRefCalibration.TabIndex = 9;
|
||||
@@ -571,7 +554,7 @@
|
||||
this.gbxDutToRefRegulation.Controls.Add(this.btnDutToRefRegulation);
|
||||
this.gbxDutToRefRegulation.Location = new System.Drawing.Point(302, 238);
|
||||
this.gbxDutToRefRegulation.Name = "gbxDutToRefRegulation";
|
||||
this.gbxDutToRefRegulation.Size = new System.Drawing.Size(222, 161);
|
||||
this.gbxDutToRefRegulation.Size = new System.Drawing.Size(231, 175);
|
||||
this.gbxDutToRefRegulation.TabIndex = 84;
|
||||
this.gbxDutToRefRegulation.TabStop = false;
|
||||
this.gbxDutToRefRegulation.Text = "DUT to REF Regulation";
|
||||
@@ -588,7 +571,7 @@
|
||||
// tbxRefFrequencyHz
|
||||
//
|
||||
this.tbxRefFrequencyHz.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.tbxRefFrequencyHz.Location = new System.Drawing.Point(150, 51);
|
||||
this.tbxRefFrequencyHz.Location = new System.Drawing.Point(163, 51);
|
||||
this.tbxRefFrequencyHz.Name = "tbxRefFrequencyHz";
|
||||
this.tbxRefFrequencyHz.ReadOnly = true;
|
||||
this.tbxRefFrequencyHz.Size = new System.Drawing.Size(60, 20);
|
||||
@@ -597,9 +580,9 @@
|
||||
// chkUseDampedTolerance
|
||||
//
|
||||
this.chkUseDampedTolerance.AutoSize = true;
|
||||
this.chkUseDampedTolerance.Location = new System.Drawing.Point(10, 106);
|
||||
this.chkUseDampedTolerance.Location = new System.Drawing.Point(13, 102);
|
||||
this.chkUseDampedTolerance.Name = "chkUseDampedTolerance";
|
||||
this.chkUseDampedTolerance.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
|
||||
this.chkUseDampedTolerance.RightToLeft = System.Windows.Forms.RightToLeft.No;
|
||||
this.chkUseDampedTolerance.Size = new System.Drawing.Size(134, 17);
|
||||
this.chkUseDampedTolerance.TabIndex = 10;
|
||||
this.chkUseDampedTolerance.Text = "Damped Tolerance On";
|
||||
@@ -618,7 +601,7 @@
|
||||
// tbxActualMeasuredToleranceDutToRef
|
||||
//
|
||||
this.tbxActualMeasuredToleranceDutToRef.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.tbxActualMeasuredToleranceDutToRef.Location = new System.Drawing.Point(150, 25);
|
||||
this.tbxActualMeasuredToleranceDutToRef.Location = new System.Drawing.Point(163, 25);
|
||||
this.tbxActualMeasuredToleranceDutToRef.Name = "tbxActualMeasuredToleranceDutToRef";
|
||||
this.tbxActualMeasuredToleranceDutToRef.ReadOnly = true;
|
||||
this.tbxActualMeasuredToleranceDutToRef.Size = new System.Drawing.Size(60, 20);
|
||||
@@ -636,7 +619,7 @@
|
||||
// tbxActualFlowRateCmPerHour
|
||||
//
|
||||
this.tbxActualFlowRateCmPerHour.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.tbxActualFlowRateCmPerHour.Location = new System.Drawing.Point(150, 77);
|
||||
this.tbxActualFlowRateCmPerHour.Location = new System.Drawing.Point(163, 77);
|
||||
this.tbxActualFlowRateCmPerHour.Name = "tbxActualFlowRateCmPerHour";
|
||||
this.tbxActualFlowRateCmPerHour.ReadOnly = true;
|
||||
this.tbxActualFlowRateCmPerHour.Size = new System.Drawing.Size(60, 20);
|
||||
@@ -646,7 +629,7 @@
|
||||
//
|
||||
this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
||||
this.pictureBox1.Image = global::Sensus.MiniPrf.Ui.Properties.Resources.Sensus_A;
|
||||
this.pictureBox1.Location = new System.Drawing.Point(375, 26);
|
||||
this.pictureBox1.Location = new System.Drawing.Point(384, 27);
|
||||
this.pictureBox1.Name = "pictureBox1";
|
||||
this.pictureBox1.Size = new System.Drawing.Size(149, 46);
|
||||
this.pictureBox1.TabIndex = 86;
|
||||
@@ -753,6 +736,7 @@
|
||||
//
|
||||
// grpBoxDebug
|
||||
//
|
||||
this.grpBoxDebug.Controls.Add(this.cbxMultipleFm2014);
|
||||
this.grpBoxDebug.Controls.Add(this.label7);
|
||||
this.grpBoxDebug.Controls.Add(this.tbxRefFlowRateFromRefFrequencyCmPerH);
|
||||
this.grpBoxDebug.Controls.Add(this.label6);
|
||||
@@ -770,10 +754,11 @@
|
||||
this.grpBoxDebug.Controls.Add(this.label3);
|
||||
this.grpBoxDebug.Location = new System.Drawing.Point(8, 238);
|
||||
this.grpBoxDebug.Name = "grpBoxDebug";
|
||||
this.grpBoxDebug.Size = new System.Drawing.Size(288, 160);
|
||||
this.grpBoxDebug.Size = new System.Drawing.Size(288, 175);
|
||||
this.grpBoxDebug.TabIndex = 83;
|
||||
this.grpBoxDebug.TabStop = false;
|
||||
this.grpBoxDebug.Text = "Debug";
|
||||
this.grpBoxDebug.Visible = false;
|
||||
//
|
||||
// label7
|
||||
//
|
||||
@@ -815,18 +800,47 @@
|
||||
//
|
||||
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
|
||||
this.menuStrip1.Name = "menuStrip1";
|
||||
this.menuStrip1.Size = new System.Drawing.Size(536, 24);
|
||||
this.menuStrip1.Size = new System.Drawing.Size(538, 24);
|
||||
this.menuStrip1.TabIndex = 85;
|
||||
this.menuStrip1.Text = "menuStrip1";
|
||||
//
|
||||
// cbxMeasuredDutPulses
|
||||
//
|
||||
this.cbxMeasuredDutPulses.AutoSize = true;
|
||||
this.cbxMeasuredDutPulses.Location = new System.Drawing.Point(12, 53);
|
||||
this.cbxMeasuredDutPulses.Name = "cbxMeasuredDutPulses";
|
||||
this.cbxMeasuredDutPulses.Size = new System.Drawing.Size(142, 17);
|
||||
this.cbxMeasuredDutPulses.TabIndex = 76;
|
||||
this.cbxMeasuredDutPulses.Text = "Measured DUT [Pulses]:";
|
||||
this.cbxMeasuredDutPulses.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// lblMeasuredRefPulses
|
||||
//
|
||||
this.lblMeasuredRefPulses.AutoSize = true;
|
||||
this.lblMeasuredRefPulses.Location = new System.Drawing.Point(10, 29);
|
||||
this.lblMeasuredRefPulses.Name = "lblMeasuredRefPulses";
|
||||
this.lblMeasuredRefPulses.Size = new System.Drawing.Size(121, 13);
|
||||
this.lblMeasuredRefPulses.TabIndex = 68;
|
||||
this.lblMeasuredRefPulses.Text = "Measured REF [Pulses]:";
|
||||
//
|
||||
// cbxMultipleFm2014
|
||||
//
|
||||
this.cbxMultipleFm2014.AutoSize = true;
|
||||
this.cbxMultipleFm2014.Location = new System.Drawing.Point(13, 149);
|
||||
this.cbxMultipleFm2014.Name = "cbxMultipleFm2014";
|
||||
this.cbxMultipleFm2014.Size = new System.Drawing.Size(112, 17);
|
||||
this.cbxMultipleFm2014.TabIndex = 97;
|
||||
this.cbxMultipleFm2014.Text = "FM2014 TEST #2";
|
||||
this.cbxMultipleFm2014.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// FrmMainMiniPrf
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(536, 467);
|
||||
this.ClientSize = new System.Drawing.Size(538, 467);
|
||||
this.Controls.Add(this.grpBoxDebug);
|
||||
this.Controls.Add(this.gbxDutToRefRegulation);
|
||||
this.Controls.Add(this.gbxRegulationSetup);
|
||||
this.Controls.Add(this.gbxDutToRefRegulation);
|
||||
this.Controls.Add(this.pictureBox1);
|
||||
this.Controls.Add(this.gbxFM2014Setup);
|
||||
this.Controls.Add(this.lblUpdateTimeValue);
|
||||
@@ -897,7 +911,6 @@
|
||||
private System.Windows.Forms.GroupBox gbxManualRefCalibration;
|
||||
private System.Windows.Forms.GroupBox gbxDutToRefRegulation;
|
||||
private System.Windows.Forms.Button btnManualRefCalibration;
|
||||
private System.Windows.Forms.Label lblMeasuredRefPulses;
|
||||
private System.Windows.Forms.TextBox tbxMeasuredRefPulses;
|
||||
private System.Windows.Forms.Label lblPulseVolumeCmRelation;
|
||||
private System.Windows.Forms.TextBox tbxRefCalibrationResultPulsePerCm;
|
||||
@@ -930,8 +943,10 @@
|
||||
private System.Windows.Forms.Label label7;
|
||||
private System.Windows.Forms.TextBox tbxRefFlowRateFromRefFrequencyCmPerH;
|
||||
private System.Windows.Forms.MenuStrip menuStrip1;
|
||||
private System.Windows.Forms.Label lblMeasuredDutPulses;
|
||||
private System.Windows.Forms.TextBox tbxMeasuredDutPulses;
|
||||
private System.Windows.Forms.CheckBox cbxMeasuredDutPulses;
|
||||
private System.Windows.Forms.Label lblMeasuredRefPulses;
|
||||
private System.Windows.Forms.CheckBox cbxMultipleFm2014;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -74,13 +74,11 @@ namespace Sensus.MiniPrf.Ui
|
||||
/// </summary>
|
||||
private FM2014 Fm2014 { get; set; }
|
||||
|
||||
#if TEST_MULTIPLE_FM2014
|
||||
//TODO THW TEST FM2014 multiple objects
|
||||
/// <summary>
|
||||
/// The single FM2014 for this program
|
||||
/// </summary>
|
||||
private FM2014 Fm2014_TEST { get; set; }
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// The start time is going to be used for time measurements of processes. It has to be set to
|
||||
@@ -239,7 +237,7 @@ namespace Sensus.MiniPrf.Ui
|
||||
gbxManualRefCalibration.Text = Resources.StrGbxManualRefCalibration;
|
||||
lblMeasuredRefPulses.Text = Resources.StrLblMeasuredRefPulses;
|
||||
tbxMeasuredRefPulses.Text = "";
|
||||
lblMeasuredDutPulses.Text = Resources.StrLblMeasuredDutPulses;
|
||||
cbxMeasuredDutPulses.Text = Resources.StrLblMeasuredDutPulses;
|
||||
tbxMeasuredDutPulses.Text = "";
|
||||
lblWeightScaleVolume.Text = Resources.StrLblMeasuredWeightScaleVolume;
|
||||
tbxManualInputVolumeLiters.Text = "";
|
||||
@@ -370,6 +368,7 @@ namespace Sensus.MiniPrf.Ui
|
||||
cbxFM2014Address.Enabled = false;
|
||||
cbxFM2014ComPort.Enabled = false;
|
||||
cbxFM2014TolerancePercent.Enabled = false;
|
||||
cbxMeasuredDutPulses.Enabled = false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -397,6 +396,7 @@ namespace Sensus.MiniPrf.Ui
|
||||
cbxFM2014Address.Enabled = true;
|
||||
cbxFM2014ComPort.Enabled = true;
|
||||
cbxFM2014TolerancePercent.Enabled = true;
|
||||
cbxMeasuredDutPulses.Enabled = true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -455,7 +455,7 @@ namespace Sensus.MiniPrf.Ui
|
||||
//assign new meter
|
||||
Fm2014 = new FM2014();
|
||||
|
||||
Fm2014.OnRawRecordReceived += DataReceived_Handler;
|
||||
Fm2014.OnRawRecordReceived += DataReceived_Handler;
|
||||
ResetCancellationToken();
|
||||
FM2014.SharedCancellationToken = _cancellationToken;
|
||||
if (int.TryParse(cbxFM2014Address.SelectedItem.ToString(), out var address))
|
||||
@@ -481,24 +481,26 @@ namespace Sensus.MiniPrf.Ui
|
||||
lblActualProcess.Text = Resources.StrMsgConnecting;
|
||||
Fm2014.Connect(cbxFM2014ComPort.SelectedItem.ToString());
|
||||
|
||||
#if TEST_MULTIPLE_FM2014
|
||||
//TODO THW TEST FM2014 multiple objects
|
||||
Fm2014_TEST = new FM2014
|
||||
if (cbxMultipleFm2014.Checked)
|
||||
{
|
||||
Address = 2
|
||||
};
|
||||
Fm2014_TEST.OnRawRecordReceived += DataReceived_Handler_TEST;
|
||||
Fm2014_TEST.Connect(cbxFM2014ComPort.SelectedItem.ToString());
|
||||
#endif
|
||||
Fm2014_TEST = new FM2014
|
||||
{
|
||||
Address = 2
|
||||
};
|
||||
Fm2014_TEST.OnRawRecordReceived += DataReceived_Handler_TEST;
|
||||
Fm2014_TEST.Connect(cbxFM2014ComPort.SelectedItem.ToString());
|
||||
}
|
||||
|
||||
Task.Factory.StartNew(() =>
|
||||
{
|
||||
Fm2014.Login();
|
||||
|
||||
#if TEST_MULTIPLE_FM2014
|
||||
//TODO THW TEST FM2014 multiple objects
|
||||
Fm2014_TEST.Login();
|
||||
#endif
|
||||
if (cbxMultipleFm2014.Checked)
|
||||
{
|
||||
Fm2014_TEST.Login();
|
||||
}
|
||||
|
||||
if (!Fm2014.IsLoggedOn)
|
||||
{
|
||||
@@ -821,16 +823,18 @@ namespace Sensus.MiniPrf.Ui
|
||||
|
||||
_autoProgressBar = true;
|
||||
|
||||
if (Fm2014.PulseCounterMeasurement(true, true))
|
||||
if (Fm2014.PulseCounterMeasurement(true, cbxMeasuredDutPulses.Checked))
|
||||
{
|
||||
btnManualRefCalibration.Text = Resources.StrBtnStopCalibration;
|
||||
btnManualRefCalibration.Enabled = true;
|
||||
}
|
||||
|
||||
#if TEST_MULTIPLE_FM2014
|
||||
//TODO THW TEST FM2014 multiple objects
|
||||
Fm2014_TEST.PulseCounterMeasurement(false, true);
|
||||
#endif
|
||||
if (cbxMultipleFm2014.Checked)
|
||||
{
|
||||
// Just take the DUT pulses as REF is parallel to all devices
|
||||
Fm2014_TEST.PulseCounterMeasurement(false, true);
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
@@ -1372,7 +1376,6 @@ namespace Sensus.MiniPrf.Ui
|
||||
}));
|
||||
}
|
||||
|
||||
#if TEST_MULTIPLE_FM2014
|
||||
/// <summary>
|
||||
/// Feedback from FM2014being parsed to GUI
|
||||
/// </summary>
|
||||
@@ -1407,7 +1410,6 @@ namespace Sensus.MiniPrf.Ui
|
||||
}
|
||||
}));
|
||||
}
|
||||
#endif
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user