Some Keithley.TempMeter parameters (ITS-90, certificate) are accessible through Bench -> Metrology dialog.
This commit is contained in:
@@ -22,6 +22,27 @@ namespace TBF.BenchControl.Keithley.TempMeter
|
||||
public double b7;
|
||||
public double c7;
|
||||
|
||||
/// Calibration info serialized parameters displayed in Metrology tab page
|
||||
string calibCertificateNr;
|
||||
DateTime calibDate;
|
||||
DateTime calibValidDate;
|
||||
public string CalibCertificateNr
|
||||
{
|
||||
get { return calibCertificateNr; }
|
||||
set { calibCertificateNr = value; }
|
||||
}
|
||||
public DateTime CalibDate
|
||||
{
|
||||
get { return calibDate; }
|
||||
set { calibDate = value; }
|
||||
}
|
||||
public DateTime CalibValidDate
|
||||
{
|
||||
get { return calibValidDate; }
|
||||
set { calibValidDate = value; }
|
||||
}
|
||||
|
||||
|
||||
/// Private parameterless constructor invoked by all other (public) constructors
|
||||
TempMeterCfg()
|
||||
{
|
||||
|
||||
+87
-191
@@ -31,187 +31,92 @@ namespace TBF.BenchControl.Keithley.TempMeter
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.channelTextBox = new System.Windows.Forms.TextBox();
|
||||
this.channelLabel = new System.Windows.Forms.Label();
|
||||
this.parentNameLabel = new System.Windows.Forms.Label();
|
||||
this.nameTextBox = new System.Windows.Forms.TextBox();
|
||||
this.nameLabel = new System.Windows.Forms.Label();
|
||||
this.classNameLabel = new System.Windows.Forms.Label();
|
||||
this.parentNameComboBox = new System.Windows.Forms.ComboBox();
|
||||
this.r0TextBox = new System.Windows.Forms.TextBox();
|
||||
this.a7TextBox = new System.Windows.Forms.TextBox();
|
||||
this.b7TextBox = new System.Windows.Forms.TextBox();
|
||||
this.c7TextBox = new System.Windows.Forms.TextBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.its90Label = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// channelTextBox
|
||||
//
|
||||
this.channelTextBox.Enabled = false;
|
||||
this.channelTextBox.Location = new System.Drawing.Point(125, 82);
|
||||
this.channelTextBox.Name = "channelTextBox";
|
||||
this.channelTextBox.Size = new System.Drawing.Size(46, 20);
|
||||
this.channelTextBox.TabIndex = 6;
|
||||
//
|
||||
// channelLabel
|
||||
//
|
||||
this.channelLabel.AutoSize = true;
|
||||
this.channelLabel.Location = new System.Drawing.Point(30, 85);
|
||||
this.channelLabel.Name = "channelLabel";
|
||||
this.channelLabel.Size = new System.Drawing.Size(73, 13);
|
||||
this.channelLabel.TabIndex = 5;
|
||||
this.channelLabel.Text = "Channel (1..5)";
|
||||
//
|
||||
// parentNameLabel
|
||||
//
|
||||
this.parentNameLabel.AutoSize = true;
|
||||
this.parentNameLabel.Location = new System.Drawing.Point(30, 61);
|
||||
this.parentNameLabel.Name = "parentNameLabel";
|
||||
this.parentNameLabel.Size = new System.Drawing.Size(69, 13);
|
||||
this.parentNameLabel.TabIndex = 3;
|
||||
this.parentNameLabel.Text = "Parent Name";
|
||||
//
|
||||
// nameTextBox
|
||||
//
|
||||
this.nameTextBox.Enabled = false;
|
||||
this.nameTextBox.Location = new System.Drawing.Point(125, 34);
|
||||
this.nameTextBox.Name = "nameTextBox";
|
||||
this.nameTextBox.Size = new System.Drawing.Size(130, 20);
|
||||
this.nameTextBox.TabIndex = 2;
|
||||
//
|
||||
// nameLabel
|
||||
//
|
||||
this.nameLabel.AutoSize = true;
|
||||
this.nameLabel.Location = new System.Drawing.Point(30, 37);
|
||||
this.nameLabel.Name = "nameLabel";
|
||||
this.nameLabel.Size = new System.Drawing.Size(35, 13);
|
||||
this.nameLabel.TabIndex = 1;
|
||||
this.nameLabel.Text = "Name";
|
||||
//
|
||||
// classNameLabel
|
||||
//
|
||||
this.classNameLabel.AutoSize = true;
|
||||
this.classNameLabel.Location = new System.Drawing.Point(122, 10);
|
||||
this.classNameLabel.Name = "classNameLabel";
|
||||
this.classNameLabel.Size = new System.Drawing.Size(83, 13);
|
||||
this.classNameLabel.TabIndex = 0;
|
||||
this.classNameLabel.Text = "ComonentName";
|
||||
//
|
||||
// parentNameComboBox
|
||||
//
|
||||
this.parentNameComboBox.Enabled = false;
|
||||
this.parentNameComboBox.FormattingEnabled = true;
|
||||
this.parentNameComboBox.Location = new System.Drawing.Point(125, 58);
|
||||
this.parentNameComboBox.Name = "parentNameComboBox";
|
||||
this.parentNameComboBox.Size = new System.Drawing.Size(130, 21);
|
||||
this.parentNameComboBox.TabIndex = 4;
|
||||
//
|
||||
// r0TextBox
|
||||
//
|
||||
this.r0TextBox.Enabled = false;
|
||||
this.r0TextBox.Location = new System.Drawing.Point(125, 137);
|
||||
this.r0TextBox.Name = "r0TextBox";
|
||||
this.r0TextBox.Size = new System.Drawing.Size(130, 20);
|
||||
this.r0TextBox.TabIndex = 7;
|
||||
//
|
||||
// a7TextBox
|
||||
//
|
||||
this.a7TextBox.Enabled = false;
|
||||
this.a7TextBox.Location = new System.Drawing.Point(125, 160);
|
||||
this.a7TextBox.Name = "a7TextBox";
|
||||
this.a7TextBox.Size = new System.Drawing.Size(130, 20);
|
||||
this.a7TextBox.TabIndex = 8;
|
||||
//
|
||||
// b7TextBox
|
||||
//
|
||||
this.b7TextBox.Enabled = false;
|
||||
this.b7TextBox.Location = new System.Drawing.Point(125, 183);
|
||||
this.b7TextBox.Name = "b7TextBox";
|
||||
this.b7TextBox.Size = new System.Drawing.Size(130, 20);
|
||||
this.b7TextBox.TabIndex = 9;
|
||||
//
|
||||
// c7TextBox
|
||||
//
|
||||
this.c7TextBox.Enabled = false;
|
||||
this.c7TextBox.Location = new System.Drawing.Point(125, 206);
|
||||
this.c7TextBox.Name = "c7TextBox";
|
||||
this.c7TextBox.Size = new System.Drawing.Size(130, 20);
|
||||
this.c7TextBox.TabIndex = 10;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(30, 140);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(53, 13);
|
||||
this.label1.TabIndex = 11;
|
||||
this.label1.Text = "R(0.01°C)";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(30, 163);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(19, 13);
|
||||
this.label2.TabIndex = 12;
|
||||
this.label2.Text = "a7";
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(30, 186);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(19, 13);
|
||||
this.label3.TabIndex = 13;
|
||||
this.label3.Text = "b7";
|
||||
//
|
||||
// its90Label
|
||||
//
|
||||
this.its90Label.AutoSize = true;
|
||||
this.its90Label.Location = new System.Drawing.Point(30, 117);
|
||||
this.its90Label.Name = "its90Label";
|
||||
this.its90Label.Size = new System.Drawing.Size(217, 13);
|
||||
this.its90Label.TabIndex = 14;
|
||||
this.its90Label.Text = "Calibration coefficients as defined in ITS-90 :";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(30, 209);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(19, 13);
|
||||
this.label4.TabIndex = 15;
|
||||
this.label4.Text = "c7";
|
||||
//
|
||||
// TempMeterCfgCtrl
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.its90Label);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.c7TextBox);
|
||||
this.Controls.Add(this.b7TextBox);
|
||||
this.Controls.Add(this.a7TextBox);
|
||||
this.Controls.Add(this.r0TextBox);
|
||||
this.Controls.Add(this.parentNameComboBox);
|
||||
this.Controls.Add(this.channelTextBox);
|
||||
this.Controls.Add(this.channelLabel);
|
||||
this.Controls.Add(this.parentNameLabel);
|
||||
this.Controls.Add(this.nameTextBox);
|
||||
this.Controls.Add(this.nameLabel);
|
||||
this.Controls.Add(this.classNameLabel);
|
||||
this.Name = "TempMeterCfgCtrl";
|
||||
this.Size = new System.Drawing.Size(300, 240);
|
||||
this.Load += new System.EventHandler(this.TempMeterCfgCtrl_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
this.channelTextBox = new System.Windows.Forms.TextBox();
|
||||
this.channelLabel = new System.Windows.Forms.Label();
|
||||
this.parentNameLabel = new System.Windows.Forms.Label();
|
||||
this.nameTextBox = new System.Windows.Forms.TextBox();
|
||||
this.nameLabel = new System.Windows.Forms.Label();
|
||||
this.classNameLabel = new System.Windows.Forms.Label();
|
||||
this.parentNameComboBox = new System.Windows.Forms.ComboBox();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// channelTextBox
|
||||
//
|
||||
this.channelTextBox.Enabled = false;
|
||||
this.channelTextBox.Location = new System.Drawing.Point(125, 88);
|
||||
this.channelTextBox.Name = "channelTextBox";
|
||||
this.channelTextBox.Size = new System.Drawing.Size(46, 20);
|
||||
this.channelTextBox.TabIndex = 6;
|
||||
//
|
||||
// channelLabel
|
||||
//
|
||||
this.channelLabel.AutoSize = true;
|
||||
this.channelLabel.Location = new System.Drawing.Point(30, 91);
|
||||
this.channelLabel.Name = "channelLabel";
|
||||
this.channelLabel.Size = new System.Drawing.Size(73, 13);
|
||||
this.channelLabel.TabIndex = 5;
|
||||
this.channelLabel.Text = "Channel (1..5)";
|
||||
//
|
||||
// parentNameLabel
|
||||
//
|
||||
this.parentNameLabel.AutoSize = true;
|
||||
this.parentNameLabel.Location = new System.Drawing.Point(30, 67);
|
||||
this.parentNameLabel.Name = "parentNameLabel";
|
||||
this.parentNameLabel.Size = new System.Drawing.Size(69, 13);
|
||||
this.parentNameLabel.TabIndex = 3;
|
||||
this.parentNameLabel.Text = "Parent Name";
|
||||
//
|
||||
// nameTextBox
|
||||
//
|
||||
this.nameTextBox.Enabled = false;
|
||||
this.nameTextBox.Location = new System.Drawing.Point(125, 40);
|
||||
this.nameTextBox.Name = "nameTextBox";
|
||||
this.nameTextBox.Size = new System.Drawing.Size(130, 20);
|
||||
this.nameTextBox.TabIndex = 2;
|
||||
//
|
||||
// nameLabel
|
||||
//
|
||||
this.nameLabel.AutoSize = true;
|
||||
this.nameLabel.Location = new System.Drawing.Point(30, 43);
|
||||
this.nameLabel.Name = "nameLabel";
|
||||
this.nameLabel.Size = new System.Drawing.Size(35, 13);
|
||||
this.nameLabel.TabIndex = 1;
|
||||
this.nameLabel.Text = "Name";
|
||||
//
|
||||
// classNameLabel
|
||||
//
|
||||
this.classNameLabel.AutoSize = true;
|
||||
this.classNameLabel.Location = new System.Drawing.Point(122, 16);
|
||||
this.classNameLabel.Name = "classNameLabel";
|
||||
this.classNameLabel.Size = new System.Drawing.Size(83, 13);
|
||||
this.classNameLabel.TabIndex = 0;
|
||||
this.classNameLabel.Text = "ComonentName";
|
||||
//
|
||||
// parentNameComboBox
|
||||
//
|
||||
this.parentNameComboBox.Enabled = false;
|
||||
this.parentNameComboBox.FormattingEnabled = true;
|
||||
this.parentNameComboBox.Location = new System.Drawing.Point(125, 64);
|
||||
this.parentNameComboBox.Name = "parentNameComboBox";
|
||||
this.parentNameComboBox.Size = new System.Drawing.Size(130, 21);
|
||||
this.parentNameComboBox.TabIndex = 4;
|
||||
//
|
||||
// TempMeterCfgCtrl
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.Controls.Add(this.parentNameComboBox);
|
||||
this.Controls.Add(this.channelTextBox);
|
||||
this.Controls.Add(this.channelLabel);
|
||||
this.Controls.Add(this.parentNameLabel);
|
||||
this.Controls.Add(this.nameTextBox);
|
||||
this.Controls.Add(this.nameLabel);
|
||||
this.Controls.Add(this.classNameLabel);
|
||||
this.Name = "TempMeterCfgCtrl";
|
||||
this.Size = new System.Drawing.Size(300, 240);
|
||||
this.Load += new System.EventHandler(this.TempMeterCfgCtrl_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
@@ -223,15 +128,6 @@ namespace TBF.BenchControl.Keithley.TempMeter
|
||||
private System.Windows.Forms.TextBox nameTextBox;
|
||||
private System.Windows.Forms.Label nameLabel;
|
||||
private System.Windows.Forms.Label classNameLabel;
|
||||
private System.Windows.Forms.ComboBox parentNameComboBox;
|
||||
private System.Windows.Forms.TextBox r0TextBox;
|
||||
private System.Windows.Forms.TextBox a7TextBox;
|
||||
private System.Windows.Forms.TextBox b7TextBox;
|
||||
private System.Windows.Forms.TextBox c7TextBox;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.Label its90Label;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.ComboBox parentNameComboBox;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,10 +75,6 @@ namespace TBF.BenchControl.Keithley.TempMeter
|
||||
nameTextBox.Text = config.Name;
|
||||
parentNameComboBox.Text = string.IsNullOrEmpty(config.ParentName) ? "---" : config.ParentName;
|
||||
channelTextBox.Text = config.Channel.ToString();
|
||||
r0TextBox.Text = config.R001C.ToString();
|
||||
a7TextBox.Text = config.a7.ToString();
|
||||
b7TextBox.Text = config.b7.ToString();
|
||||
c7TextBox.Text = config.c7.ToString();
|
||||
}
|
||||
|
||||
public void Unlock()
|
||||
@@ -86,10 +82,6 @@ namespace TBF.BenchControl.Keithley.TempMeter
|
||||
nameTextBox.Enabled = true;
|
||||
parentNameComboBox.Enabled = true;
|
||||
channelTextBox.Enabled = true;
|
||||
r0TextBox.Enabled = true;
|
||||
a7TextBox.Enabled = true;
|
||||
b7TextBox.Enabled = true;
|
||||
c7TextBox.Enabled = true;
|
||||
}
|
||||
|
||||
public CfgUpdateFlags VerifyCfg(ref string message)
|
||||
@@ -107,27 +99,6 @@ namespace TBF.BenchControl.Keithley.TempMeter
|
||||
flags |= CfgUpdateFlags.Error;
|
||||
message += Environment.NewLine + "'Channel' should be in the range 1 .. 5";
|
||||
}
|
||||
double ddummy;
|
||||
if (!Utils.TryParseUDouble(r0TextBox.Text, out ddummy))
|
||||
{
|
||||
flags |= CfgUpdateFlags.Error;
|
||||
message += Environment.NewLine + "Invalid 'R(0.01°C)'";
|
||||
}
|
||||
if (!Utils.TryParseEDouble(a7TextBox.Text, out ddummy))
|
||||
{
|
||||
flags |= CfgUpdateFlags.Error;
|
||||
message += Environment.NewLine + "Invalid 'a7'";
|
||||
}
|
||||
if (!Utils.TryParseEDouble(b7TextBox.Text, out ddummy))
|
||||
{
|
||||
flags |= CfgUpdateFlags.Error;
|
||||
message += Environment.NewLine + "Invalid 'b7'";
|
||||
}
|
||||
if (!Utils.TryParseEDouble(c7TextBox.Text, out ddummy))
|
||||
{
|
||||
flags |= CfgUpdateFlags.Error;
|
||||
message += Environment.NewLine + "Invalid 'c7'";
|
||||
}
|
||||
|
||||
return flags;
|
||||
}
|
||||
@@ -141,10 +112,6 @@ namespace TBF.BenchControl.Keithley.TempMeter
|
||||
config.Name = nameTextBox.Text;
|
||||
config.ParentName = parentNameComboBox.Text.Equals("---") ? string.Empty : parentNameComboBox.Text;
|
||||
config.Channel = int.Parse(channelTextBox.Text);
|
||||
config.R001C = Utils.ParseUDouble(r0TextBox.Text);
|
||||
config.a7 = Utils.ParseEDouble(a7TextBox.Text);
|
||||
config.b7 = Utils.ParseEDouble(b7TextBox.Text);
|
||||
config.c7 = Utils.ParseEDouble(c7TextBox.Text);
|
||||
|
||||
return flags;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user