@ -0,0 +1,91 @@ | |||
using System; | |||
public void averageCalData(FileStream fileStream, UInt32[] average) | |||
{ | |||
int i = 0; | |||
int j = 0; | |||
UInt32[] s = new UInt32[8]; | |||
UInt32[] total = new UInt32[8]; | |||
Byte[] buffer = new Byte[131072]; //128k Recieve Buffer | |||
UInt32 samplePtr = 32; // We start with the first sample, header is 32 bytes | |||
int toRead = buffer.Length; | |||
inLength = fileStream.Read(buffer, totalRead, toRead); | |||
for (i = 0; i < 8; i++) | |||
{ | |||
total[i] = 0; | |||
s[i] = 0; | |||
average[i] = 0; | |||
} | |||
for (i = 0; i < 100; i++) | |||
{ | |||
for (j = 0; j < 8; j++) | |||
{ | |||
s[j] = (UInt32)buffer[samplePtr]; | |||
s[j] |= ((UInt32)buffer[samplePtr + 1] << 8) & 0x00FF00; | |||
s[j] |= ((UInt32)buffer[samplePtr + 2] << 16) & 0x00FF0000; | |||
samplePtr += 4; | |||
total[j] += s[j]; | |||
} | |||
} | |||
for (i = 0; i < 8; i++) | |||
{ | |||
average[i] = total[i] / 100; | |||
} | |||
} | |||
public void CalibrationCalculate() | |||
{ | |||
int i; | |||
double ma = new double[8]; | |||
double[] ma = new double[8]; | |||
UInt32[] b = new UInt32[8]; | |||
UInt32[] average_5v = new UInt32[8]; | |||
UInt32[] average_0v = new UInt32[8]; | |||
UInt32[] b = new double[8]; | |||
string ZeroVFileName = @"C:\ERPSData\0V_board1_binrecord06302018201157.bin"; | |||
string FiveVFileName = @"C:\ERPSData\5v_board1_binrecord06302018202901.bin"; | |||
string calFile = @"C:\ERPSData\goldenCal.dat"; | |||
var ZeroVStream = new FileStream(ZeroVFileName, FileMode.Open); | |||
var FiveVStream = new FileStream(FiveVFileName, FileMode.Open); | |||
var OutFile = new FileStream(calFile, FileMode.Create, FileAccess.Write); | |||
averageCalData(FiveVStream, average_5v); | |||
averageCalData(ZeroVStream, average_0v); | |||
for (i = 0; i < 8; i++) | |||
{ | |||
// y = mx + b | |||
//ma = (yH - yL) / (xH - xL) | |||
if (average_0v[i] & 0x800000) | |||
{ | |||
ma[i] = (double)(average_5v[i] - (average_0v[i] - 0xFFFFFF)) / 0x7FFFFF; | |||
} | |||
else | |||
ma[i] = (double)(average_5v[i] - average_0v[i]) / 0x7FFFFF; | |||
if (average_0v[i] & 0x800000) | |||
{ | |||
(average_0v[i] - 0xFFFFFF) * ma[i]; | |||
} | |||
else | |||
b[i] = average_0v[i] * ma[i]; | |||
} | |||
fprintf(write_fd, "%f %f %f %f %f %f %f %f \n", ma[0], ma[1], ma[2], ma[3], ma[4], ma[5], ma[6], ma[7]); | |||
fprintf(write_fd, "%x %x %x %x %x %x %x %x \n", b[0], b[1], b[2], b[3], b[4], b[5], b[6], b[7]); | |||
fclose((FILE*)read_5v_fd); | |||
fclose((FILE*)read_0v_fd); | |||
fclose((FILE*)write_fd); | |||
} | |||
@ -0,0 +1,3 @@ | |||
{ | |||
"CurrentProjectSetting": null | |||
} |
@ -0,0 +1,6 @@ | |||
<?xml version="1.0" encoding="utf-8" ?> | |||
<configuration> | |||
<startup> | |||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" /> | |||
</startup> | |||
</configuration> |
@ -0,0 +1,447 @@ | |||
namespace WindowsFormsApplication1 | |||
{ | |||
partial class Cals | |||
{ | |||
/// <summary> | |||
/// Required designer variable. | |||
/// </summary> | |||
private System.ComponentModel.IContainer components = null; | |||
/// <summary> | |||
/// Clean up any resources being used. | |||
/// </summary> | |||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> | |||
protected override void Dispose(bool disposing) | |||
{ | |||
if (disposing && (components != null)) | |||
{ | |||
components.Dispose(); | |||
} | |||
base.Dispose(disposing); | |||
} | |||
#region Windows Form Designer generated code | |||
/// <summary> | |||
/// Required method for Designer support - do not modify | |||
/// the contents of this method with the code editor. | |||
/// </summary> | |||
private void InitializeComponent() | |||
{ | |||
this.CalLabel1 = new System.Windows.Forms.Label(); | |||
this.FiveVoltCalFileTextBox = new System.Windows.Forms.TextBox(); | |||
this.CalLabel2 = new System.Windows.Forms.Label(); | |||
this.CalLlabel3 = new System.Windows.Forms.Label(); | |||
this.ZeroVoltCalFileTextBox = new System.Windows.Forms.TextBox(); | |||
this.CalResultsFileTextBox = new System.Windows.Forms.TextBox(); | |||
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); | |||
this.Channel8Label = new System.Windows.Forms.Label(); | |||
this.Channel7Label = new System.Windows.Forms.Label(); | |||
this.Channel6Label = new System.Windows.Forms.Label(); | |||
this.Channel5Label = new System.Windows.Forms.Label(); | |||
this.Channel4Label = new System.Windows.Forms.Label(); | |||
this.Channel3Label = new System.Windows.Forms.Label(); | |||
this.Channel2Label = new System.Windows.Forms.Label(); | |||
this.Channel1Label = new System.Windows.Forms.Label(); | |||
this.label2 = new System.Windows.Forms.Label(); | |||
this.label3 = new System.Windows.Forms.Label(); | |||
this.FiveVActualTextBox = new System.Windows.Forms.TextBox(); | |||
this.FiveVReference = new System.Windows.Forms.Label(); | |||
this.RunCalButton = new System.Windows.Forms.Button(); | |||
this.QuadARadioButton = new System.Windows.Forms.RadioButton(); | |||
this.QuadBRadioButton = new System.Windows.Forms.RadioButton(); | |||
this.QuadCRadioButton = new System.Windows.Forms.RadioButton(); | |||
this.QuadDRadioButton = new System.Windows.Forms.RadioButton(); | |||
this.groupBox1 = new System.Windows.Forms.GroupBox(); | |||
this.tableLayoutPanel1.SuspendLayout(); | |||
this.groupBox1.SuspendLayout(); | |||
this.SuspendLayout(); | |||
// | |||
// CalLabel1 | |||
// | |||
this.CalLabel1.AutoSize = true; | |||
this.CalLabel1.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.CalLabel1.Location = new System.Drawing.Point(34, 26); | |||
this.CalLabel1.Name = "CalLabel1"; | |||
this.CalLabel1.Size = new System.Drawing.Size(86, 17); | |||
this.CalLabel1.TabIndex = 0; | |||
this.CalLabel1.Text = "5V Cal File"; | |||
this.CalLabel1.Click += new System.EventHandler(this.label1_Click); | |||
// | |||
// FiveVoltCalFileTextBox | |||
// | |||
this.FiveVoltCalFileTextBox.Location = new System.Drawing.Point(161, 21); | |||
this.FiveVoltCalFileTextBox.Name = "FiveVoltCalFileTextBox"; | |||
this.FiveVoltCalFileTextBox.Size = new System.Drawing.Size(380, 22); | |||
this.FiveVoltCalFileTextBox.TabIndex = 1; | |||
this.FiveVoltCalFileTextBox.TextChanged += new System.EventHandler(this.FiveVoltCalFileTextBox_TextChanged); | |||
// | |||
// CalLabel2 | |||
// | |||
this.CalLabel2.AutoSize = true; | |||
this.CalLabel2.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.CalLabel2.Location = new System.Drawing.Point(34, 97); | |||
this.CalLabel2.Name = "CalLabel2"; | |||
this.CalLabel2.Size = new System.Drawing.Size(86, 17); | |||
this.CalLabel2.TabIndex = 2; | |||
this.CalLabel2.Text = "0V Cal File"; | |||
this.CalLabel2.Click += new System.EventHandler(this.label2_Click); | |||
// | |||
// CalLlabel3 | |||
// | |||
this.CalLlabel3.AutoSize = true; | |||
this.CalLlabel3.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.CalLlabel3.Location = new System.Drawing.Point(34, 174); | |||
this.CalLlabel3.Name = "CalLlabel3"; | |||
this.CalLlabel3.Size = new System.Drawing.Size(121, 17); | |||
this.CalLlabel3.TabIndex = 3; | |||
this.CalLlabel3.Text = "Cal Results File"; | |||
this.CalLlabel3.Click += new System.EventHandler(this.label3_Click); | |||
// | |||
// ZeroVoltCalFileTextBox | |||
// | |||
this.ZeroVoltCalFileTextBox.Location = new System.Drawing.Point(161, 92); | |||
this.ZeroVoltCalFileTextBox.Name = "ZeroVoltCalFileTextBox"; | |||
this.ZeroVoltCalFileTextBox.Size = new System.Drawing.Size(380, 22); | |||
this.ZeroVoltCalFileTextBox.TabIndex = 4; | |||
this.ZeroVoltCalFileTextBox.TextChanged += new System.EventHandler(this.ZeroVoltCalFileTextBox_TextChanged); | |||
// | |||
// CalResultsFileTextBox | |||
// | |||
this.CalResultsFileTextBox.Location = new System.Drawing.Point(161, 175); | |||
this.CalResultsFileTextBox.Name = "CalResultsFileTextBox"; | |||
this.CalResultsFileTextBox.Size = new System.Drawing.Size(380, 22); | |||
this.CalResultsFileTextBox.TabIndex = 5; | |||
this.CalResultsFileTextBox.TextChanged += new System.EventHandler(this.CalResultsFileTextBox_TextChanged); | |||
// | |||
// tableLayoutPanel1 | |||
// | |||
this.tableLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| System.Windows.Forms.AnchorStyles.Left) | |||
| System.Windows.Forms.AnchorStyles.Right))); | |||
this.tableLayoutPanel1.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.InsetDouble; | |||
this.tableLayoutPanel1.ColumnCount = 9; | |||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F)); | |||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F)); | |||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F)); | |||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F)); | |||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F)); | |||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F)); | |||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F)); | |||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F)); | |||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F)); | |||
this.tableLayoutPanel1.Controls.Add(this.Channel8Label, 8, 0); | |||
this.tableLayoutPanel1.Controls.Add(this.Channel7Label, 7, 0); | |||
this.tableLayoutPanel1.Controls.Add(this.Channel6Label, 6, 0); | |||
this.tableLayoutPanel1.Controls.Add(this.Channel5Label, 5, 0); | |||
this.tableLayoutPanel1.Controls.Add(this.Channel4Label, 4, 0); | |||
this.tableLayoutPanel1.Controls.Add(this.Channel3Label, 3, 0); | |||
this.tableLayoutPanel1.Controls.Add(this.Channel2Label, 2, 0); | |||
this.tableLayoutPanel1.Controls.Add(this.Channel1Label, 1, 0); | |||
this.tableLayoutPanel1.Controls.Add(this.label2, 0, 1); | |||
this.tableLayoutPanel1.Controls.Add(this.label3, 0, 2); | |||
this.tableLayoutPanel1.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.tableLayoutPanel1.Location = new System.Drawing.Point(25, 261); | |||
this.tableLayoutPanel1.Name = "tableLayoutPanel1"; | |||
this.tableLayoutPanel1.RowCount = 3; | |||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F)); | |||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F)); | |||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F)); | |||
this.tableLayoutPanel1.Size = new System.Drawing.Size(822, 112); | |||
this.tableLayoutPanel1.TabIndex = 6; | |||
this.tableLayoutPanel1.Paint += new System.Windows.Forms.PaintEventHandler(this.tableLayoutPanel1_Paint); | |||
// | |||
// Channel8Label | |||
// | |||
this.Channel8Label.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| System.Windows.Forms.AnchorStyles.Left) | |||
| System.Windows.Forms.AnchorStyles.Right))); | |||
this.Channel8Label.AutoSize = true; | |||
this.Channel8Label.Location = new System.Drawing.Point(734, 3); | |||
this.Channel8Label.Name = "Channel8Label"; | |||
this.Channel8Label.Size = new System.Drawing.Size(82, 33); | |||
this.Channel8Label.TabIndex = 7; | |||
this.Channel8Label.Text = "Channel 8"; | |||
this.Channel8Label.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
this.Channel8Label.Click += new System.EventHandler(this.label8_Click); | |||
// | |||
// Channel7Label | |||
// | |||
this.Channel7Label.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| System.Windows.Forms.AnchorStyles.Left) | |||
| System.Windows.Forms.AnchorStyles.Right))); | |||
this.Channel7Label.AutoSize = true; | |||
this.Channel7Label.Location = new System.Drawing.Point(643, 3); | |||
this.Channel7Label.Name = "Channel7Label"; | |||
this.Channel7Label.Size = new System.Drawing.Size(82, 33); | |||
this.Channel7Label.TabIndex = 6; | |||
this.Channel7Label.Text = "Channel 7"; | |||
this.Channel7Label.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
this.Channel7Label.Click += new System.EventHandler(this.label7_Click); | |||
// | |||
// Channel6Label | |||
// | |||
this.Channel6Label.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| System.Windows.Forms.AnchorStyles.Left) | |||
| System.Windows.Forms.AnchorStyles.Right))); | |||
this.Channel6Label.AutoSize = true; | |||
this.Channel6Label.Location = new System.Drawing.Point(552, 3); | |||
this.Channel6Label.Name = "Channel6Label"; | |||
this.Channel6Label.Size = new System.Drawing.Size(82, 33); | |||
this.Channel6Label.TabIndex = 5; | |||
this.Channel6Label.Text = "Channel 6"; | |||
this.Channel6Label.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
this.Channel6Label.Click += new System.EventHandler(this.label6_Click); | |||
// | |||
// Channel5Label | |||
// | |||
this.Channel5Label.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| System.Windows.Forms.AnchorStyles.Left) | |||
| System.Windows.Forms.AnchorStyles.Right))); | |||
this.Channel5Label.AutoSize = true; | |||
this.Channel5Label.Location = new System.Drawing.Point(461, 3); | |||
this.Channel5Label.Name = "Channel5Label"; | |||
this.Channel5Label.Size = new System.Drawing.Size(82, 33); | |||
this.Channel5Label.TabIndex = 4; | |||
this.Channel5Label.Text = "Channel 5"; | |||
this.Channel5Label.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
this.Channel5Label.Click += new System.EventHandler(this.label5_Click); | |||
// | |||
// Channel4Label | |||
// | |||
this.Channel4Label.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| System.Windows.Forms.AnchorStyles.Left) | |||
| System.Windows.Forms.AnchorStyles.Right))); | |||
this.Channel4Label.AutoSize = true; | |||
this.Channel4Label.Location = new System.Drawing.Point(370, 3); | |||
this.Channel4Label.Name = "Channel4Label"; | |||
this.Channel4Label.Size = new System.Drawing.Size(82, 33); | |||
this.Channel4Label.TabIndex = 3; | |||
this.Channel4Label.Text = "Channel 4"; | |||
this.Channel4Label.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
this.Channel4Label.Click += new System.EventHandler(this.label4_Click); | |||
// | |||
// Channel3Label | |||
// | |||
this.Channel3Label.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| System.Windows.Forms.AnchorStyles.Left) | |||
| System.Windows.Forms.AnchorStyles.Right))); | |||
this.Channel3Label.AutoSize = true; | |||
this.Channel3Label.Location = new System.Drawing.Point(279, 3); | |||
this.Channel3Label.Name = "Channel3Label"; | |||
this.Channel3Label.Size = new System.Drawing.Size(82, 33); | |||
this.Channel3Label.TabIndex = 2; | |||
this.Channel3Label.Text = "Channel 3"; | |||
this.Channel3Label.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
// | |||
// Channel2Label | |||
// | |||
this.Channel2Label.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| System.Windows.Forms.AnchorStyles.Left) | |||
| System.Windows.Forms.AnchorStyles.Right))); | |||
this.Channel2Label.AutoSize = true; | |||
this.Channel2Label.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.Channel2Label.Location = new System.Drawing.Point(188, 3); | |||
this.Channel2Label.Name = "Channel2Label"; | |||
this.Channel2Label.Size = new System.Drawing.Size(82, 33); | |||
this.Channel2Label.TabIndex = 1; | |||
this.Channel2Label.Text = "Channel 2"; | |||
this.Channel2Label.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
this.Channel2Label.Click += new System.EventHandler(this.label2_Click_1); | |||
// | |||
// Channel1Label | |||
// | |||
this.Channel1Label.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| System.Windows.Forms.AnchorStyles.Left) | |||
| System.Windows.Forms.AnchorStyles.Right))); | |||
this.Channel1Label.AutoSize = true; | |||
this.Channel1Label.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.Channel1Label.Location = new System.Drawing.Point(97, 3); | |||
this.Channel1Label.Name = "Channel1Label"; | |||
this.Channel1Label.Size = new System.Drawing.Size(82, 33); | |||
this.Channel1Label.TabIndex = 0; | |||
this.Channel1Label.Text = "Channel 1"; | |||
this.Channel1Label.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
this.Channel1Label.Click += new System.EventHandler(this.Channel1Label_Click); | |||
// | |||
// label2 | |||
// | |||
this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| System.Windows.Forms.AnchorStyles.Left) | |||
| System.Windows.Forms.AnchorStyles.Right))); | |||
this.label2.AutoSize = true; | |||
this.label2.Location = new System.Drawing.Point(6, 39); | |||
this.label2.Name = "label2"; | |||
this.label2.Size = new System.Drawing.Size(82, 33); | |||
this.label2.TabIndex = 8; | |||
this.label2.Text = "ma"; | |||
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
this.label2.Click += new System.EventHandler(this.label2_Click_2); | |||
// | |||
// label3 | |||
// | |||
this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| System.Windows.Forms.AnchorStyles.Left) | |||
| System.Windows.Forms.AnchorStyles.Right))); | |||
this.label3.AutoSize = true; | |||
this.label3.Location = new System.Drawing.Point(6, 75); | |||
this.label3.Name = "label3"; | |||
this.label3.Size = new System.Drawing.Size(82, 34); | |||
this.label3.TabIndex = 9; | |||
this.label3.Text = "b"; | |||
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
this.label3.Click += new System.EventHandler(this.label3_Click_1); | |||
// | |||
// FiveVActualTextBox | |||
// | |||
this.FiveVActualTextBox.AcceptsTab = true; | |||
this.FiveVActualTextBox.Location = new System.Drawing.Point(741, 14); | |||
this.FiveVActualTextBox.Name = "FiveVActualTextBox"; | |||
this.FiveVActualTextBox.Size = new System.Drawing.Size(100, 22); | |||
this.FiveVActualTextBox.TabIndex = 8; | |||
this.FiveVActualTextBox.Text = "5.00000"; | |||
// | |||
// FiveVReference | |||
// | |||
this.FiveVReference.AutoSize = true; | |||
this.FiveVReference.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.FiveVReference.Location = new System.Drawing.Point(614, 26); | |||
this.FiveVReference.Name = "FiveVReference"; | |||
this.FiveVReference.Size = new System.Drawing.Size(124, 17); | |||
this.FiveVReference.TabIndex = 9; | |||
this.FiveVReference.Text = "5 V (Reference)"; | |||
// | |||
// RunCalButton | |||
// | |||
this.RunCalButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.RunCalButton.Location = new System.Drawing.Point(617, 64); | |||
this.RunCalButton.Name = "RunCalButton"; | |||
this.RunCalButton.Size = new System.Drawing.Size(145, 50); | |||
this.RunCalButton.TabIndex = 11; | |||
this.RunCalButton.Text = "Run Calibration"; | |||
this.RunCalButton.UseVisualStyleBackColor = true; | |||
this.RunCalButton.Click += new System.EventHandler(this.RunCalButton_Click); | |||
// | |||
// QuadARadioButton | |||
// | |||
this.QuadARadioButton.AutoSize = true; | |||
this.QuadARadioButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.QuadARadioButton.Location = new System.Drawing.Point(617, 142); | |||
this.QuadARadioButton.Name = "QuadARadioButton"; | |||
this.QuadARadioButton.Size = new System.Drawing.Size(83, 21); | |||
this.QuadARadioButton.TabIndex = 12; | |||
this.QuadARadioButton.Text = "Quad A"; | |||
this.QuadARadioButton.UseVisualStyleBackColor = true; | |||
this.QuadARadioButton.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged); | |||
// | |||
// QuadBRadioButton | |||
// | |||
this.QuadBRadioButton.AutoSize = true; | |||
this.QuadBRadioButton.Checked = true; | |||
this.QuadBRadioButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.QuadBRadioButton.Location = new System.Drawing.Point(617, 169); | |||
this.QuadBRadioButton.Name = "QuadBRadioButton"; | |||
this.QuadBRadioButton.Size = new System.Drawing.Size(83, 21); | |||
this.QuadBRadioButton.TabIndex = 13; | |||
this.QuadBRadioButton.TabStop = true; | |||
this.QuadBRadioButton.Text = "Quad B"; | |||
this.QuadBRadioButton.UseVisualStyleBackColor = true; | |||
this.QuadBRadioButton.CheckedChanged += new System.EventHandler(this.radioButton2_CheckedChanged); | |||
// | |||
// QuadCRadioButton | |||
// | |||
this.QuadCRadioButton.AutoSize = true; | |||
this.QuadCRadioButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.QuadCRadioButton.Location = new System.Drawing.Point(617, 197); | |||
this.QuadCRadioButton.Name = "QuadCRadioButton"; | |||
this.QuadCRadioButton.Size = new System.Drawing.Size(83, 21); | |||
this.QuadCRadioButton.TabIndex = 14; | |||
this.QuadCRadioButton.TabStop = true; | |||
this.QuadCRadioButton.Text = "Quad C"; | |||
this.QuadCRadioButton.UseVisualStyleBackColor = true; | |||
this.QuadCRadioButton.CheckedChanged += new System.EventHandler(this.radioButton3_CheckedChanged); | |||
// | |||
// QuadDRadioButton | |||
// | |||
this.QuadDRadioButton.AutoSize = true; | |||
this.QuadDRadioButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.QuadDRadioButton.Location = new System.Drawing.Point(616, 227); | |||
this.QuadDRadioButton.Name = "QuadDRadioButton"; | |||
this.QuadDRadioButton.Size = new System.Drawing.Size(84, 21); | |||
this.QuadDRadioButton.TabIndex = 15; | |||
this.QuadDRadioButton.TabStop = true; | |||
this.QuadDRadioButton.Text = "Quad D"; | |||
this.QuadDRadioButton.UseVisualStyleBackColor = true; | |||
this.QuadDRadioButton.CheckedChanged += new System.EventHandler(this.radioButton4_CheckedChanged); | |||
// | |||
// groupBox1 | |||
// | |||
this.groupBox1.Controls.Add(this.tableLayoutPanel1); | |||
this.groupBox1.Controls.Add(this.FiveVActualTextBox); | |||
this.groupBox1.Location = new System.Drawing.Point(12, 12); | |||
this.groupBox1.Name = "groupBox1"; | |||
this.groupBox1.Size = new System.Drawing.Size(899, 443); | |||
this.groupBox1.TabIndex = 16; | |||
this.groupBox1.TabStop = false; | |||
this.groupBox1.Enter += new System.EventHandler(this.groupBox1_Enter); | |||
// | |||
// Cals | |||
// | |||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); | |||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | |||
this.ClientSize = new System.Drawing.Size(1736, 765); | |||
this.Controls.Add(this.QuadDRadioButton); | |||
this.Controls.Add(this.QuadCRadioButton); | |||
this.Controls.Add(this.QuadBRadioButton); | |||
this.Controls.Add(this.QuadARadioButton); | |||
this.Controls.Add(this.RunCalButton); | |||
this.Controls.Add(this.FiveVReference); | |||
this.Controls.Add(this.CalResultsFileTextBox); | |||
this.Controls.Add(this.ZeroVoltCalFileTextBox); | |||
this.Controls.Add(this.CalLlabel3); | |||
this.Controls.Add(this.CalLabel2); | |||
this.Controls.Add(this.FiveVoltCalFileTextBox); | |||
this.Controls.Add(this.CalLabel1); | |||
this.Controls.Add(this.groupBox1); | |||
this.Name = "Cals"; | |||
this.Text = "Calibration Screen"; | |||
this.Load += new System.EventHandler(this.Calibration_Load); | |||
this.tableLayoutPanel1.ResumeLayout(false); | |||
this.tableLayoutPanel1.PerformLayout(); | |||
this.groupBox1.ResumeLayout(false); | |||
this.groupBox1.PerformLayout(); | |||
this.ResumeLayout(false); | |||
this.PerformLayout(); | |||
} | |||
#endregion | |||
private System.Windows.Forms.Label CalLabel1; | |||
private System.Windows.Forms.TextBox FiveVoltCalFileTextBox; | |||
private System.Windows.Forms.Label CalLabel2; | |||
private System.Windows.Forms.Label CalLlabel3; | |||
private System.Windows.Forms.TextBox ZeroVoltCalFileTextBox; | |||
private System.Windows.Forms.TextBox CalResultsFileTextBox; | |||
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; | |||
private System.Windows.Forms.Label Channel1Label; | |||
private System.Windows.Forms.Label Channel2Label; | |||
private System.Windows.Forms.Label Channel3Label; | |||
private System.Windows.Forms.Label Channel4Label; | |||
private System.Windows.Forms.Label Channel5Label; | |||
private System.Windows.Forms.Label Channel6Label; | |||
private System.Windows.Forms.Label Channel7Label; | |||
private System.Windows.Forms.Label Channel8Label; | |||
private System.Windows.Forms.TextBox FiveVActualTextBox; | |||
private System.Windows.Forms.Label FiveVReference; | |||
private System.Windows.Forms.Button RunCalButton; | |||
private System.Windows.Forms.RadioButton QuadARadioButton; | |||
private System.Windows.Forms.RadioButton QuadBRadioButton; | |||
private System.Windows.Forms.RadioButton QuadCRadioButton; | |||
private System.Windows.Forms.RadioButton QuadDRadioButton; | |||
private System.Windows.Forms.Label label2; | |||
private System.Windows.Forms.Label label3; | |||
private System.Windows.Forms.GroupBox groupBox1; | |||
} | |||
} | |||
@ -0,0 +1,140 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.ComponentModel; | |||
using System.Data; | |||
using System.Drawing; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
using System.Windows.Forms; | |||
namespace WindowsFormsApplication1 | |||
{ | |||
public partial class Cals : Form | |||
{ | |||
public Cals() | |||
{ | |||
InitializeComponent(); | |||
} | |||
private void label1_Click(object sender, EventArgs e) | |||
{ | |||
} | |||
private void Calibrate_CheckedChanged(object sender, EventArgs e) | |||
{ | |||
} | |||
private void label2_Click(object sender, EventArgs e) | |||
{ | |||
} | |||
private void label3_Click(object sender, EventArgs e) | |||
{ | |||
} | |||
private void label2_Click_1(object sender, EventArgs e) | |||
{ | |||
} | |||
private void label4_Click(object sender, EventArgs e) | |||
{ | |||
} | |||
private void label5_Click(object sender, EventArgs e) | |||
{ | |||
} | |||
private void label6_Click(object sender, EventArgs e) | |||
{ | |||
} | |||
private void label7_Click(object sender, EventArgs e) | |||
{ | |||
} | |||
private void label8_Click(object sender, EventArgs e) | |||
{ | |||
} | |||
private void Channel1Label_Click(object sender, EventArgs e) | |||
{ | |||
} | |||
private void Calibration_Load(object sender, EventArgs e) | |||
{ | |||
} | |||
private void radioButton1_CheckedChanged(object sender, EventArgs e) | |||
{ | |||
} | |||
private void radioButton3_CheckedChanged(object sender, EventArgs e) | |||
{ | |||
} | |||
private void radioButton2_CheckedChanged(object sender, EventArgs e) | |||
{ | |||
} | |||
private void radioButton4_CheckedChanged(object sender, EventArgs e) | |||
{ | |||
} | |||
private void label2_Click_2(object sender, EventArgs e) | |||
{ | |||
} | |||
private void ZeroVoltCalFileTextBox_TextChanged(object sender, EventArgs e) | |||
{ | |||
} | |||
private void FiveVoltCalFileTextBox_TextChanged(object sender, EventArgs e) | |||
{ | |||
} | |||
private void label3_Click_1(object sender, EventArgs e) | |||
{ | |||
} | |||
private void tableLayoutPanel1_Paint(object sender, PaintEventArgs e) | |||
{ | |||
} | |||
private void RunCalButton_Click(object sender, EventArgs e) | |||
{ | |||
} | |||
private void CalResultsFileTextBox_TextChanged(object sender, EventArgs e) | |||
{ | |||
} | |||
private void groupBox1_Enter(object sender, EventArgs e) | |||
{ | |||
} | |||
} | |||
} |
@ -0,0 +1,123 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<root> | |||
<!-- | |||
Microsoft ResX Schema | |||
Version 2.0 | |||
The primary goals of this format is to allow a simple XML format | |||
that is mostly human readable. The generation and parsing of the | |||
various data types are done through the TypeConverter classes | |||
associated with the data types. | |||
Example: | |||
... ado.net/XML headers & schema ... | |||
<resheader name="resmimetype">text/microsoft-resx</resheader> | |||
<resheader name="version">2.0</resheader> | |||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |||
<value>[base64 mime encoded serialized .NET Framework object]</value> | |||
</data> | |||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |||
<comment>This is a comment</comment> | |||
</data> | |||
There are any number of "resheader" rows that contain simple | |||
name/value pairs. | |||
Each data row contains a name, and value. The row also contains a | |||
type or mimetype. Type corresponds to a .NET class that support | |||
text/value conversion through the TypeConverter architecture. | |||
Classes that don't support this are serialized and stored with the | |||
mimetype set. | |||
The mimetype is used for serialized objects, and tells the | |||
ResXResourceReader how to depersist the object. This is currently not | |||
extensible. For a given mimetype the value must be set accordingly: | |||
Note - application/x-microsoft.net.object.binary.base64 is the format | |||
that the ResXResourceWriter will generate, however the reader can | |||
read any of the formats listed below. | |||
mimetype: application/x-microsoft.net.object.binary.base64 | |||
value : The object must be serialized with | |||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | |||
: and then encoded with base64 encoding. | |||
mimetype: application/x-microsoft.net.object.soap.base64 | |||
value : The object must be serialized with | |||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |||
: and then encoded with base64 encoding. | |||
mimetype: application/x-microsoft.net.object.bytearray.base64 | |||
value : The object must be serialized into a byte array | |||
: using a System.ComponentModel.TypeConverter | |||
: and then encoded with base64 encoding. | |||
--> | |||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | |||
<xsd:element name="root" msdata:IsDataSet="true"> | |||
<xsd:complexType> | |||
<xsd:choice maxOccurs="unbounded"> | |||
<xsd:element name="metadata"> | |||
<xsd:complexType> | |||
<xsd:sequence> | |||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> | |||
</xsd:sequence> | |||
<xsd:attribute name="name" use="required" type="xsd:string" /> | |||
<xsd:attribute name="type" type="xsd:string" /> | |||
<xsd:attribute name="mimetype" type="xsd:string" /> | |||
<xsd:attribute ref="xml:space" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
<xsd:element name="assembly"> | |||
<xsd:complexType> | |||
<xsd:attribute name="alias" type="xsd:string" /> | |||
<xsd:attribute name="name" type="xsd:string" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
<xsd:element name="data"> | |||
<xsd:complexType> | |||
<xsd:sequence> | |||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |||
</xsd:sequence> | |||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | |||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |||
<xsd:attribute ref="xml:space" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
<xsd:element name="resheader"> | |||
<xsd:complexType> | |||
<xsd:sequence> | |||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
</xsd:sequence> | |||
<xsd:attribute name="name" type="xsd:string" use="required" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
</xsd:choice> | |||
</xsd:complexType> | |||
</xsd:element> | |||
</xsd:schema> | |||
<resheader name="resmimetype"> | |||
<value>text/microsoft-resx</value> | |||
</resheader> | |||
<resheader name="version"> | |||
<value>2.0</value> | |||
</resheader> | |||
<resheader name="reader"> | |||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
</resheader> | |||
<resheader name="writer"> | |||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
</resheader> | |||
<metadata name="tableLayoutPanel1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
<value>True</value> | |||
</metadata> | |||
</root> |
@ -0,0 +1,147 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | |||
<PropertyGroup> | |||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | |||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | |||
<ProjectGuid>{F32A713A-7169-4F43-B254-5445BDB53597}</ProjectGuid> | |||
<OutputType>WinExe</OutputType> | |||
<AppDesignerFolder>Properties</AppDesignerFolder> | |||
<RootNamespace>WindowsFormsApplication1</RootNamespace> | |||
<AssemblyName>WindowsFormsApplication1</AssemblyName> | |||
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion> | |||
<FileAlignment>512</FileAlignment> | |||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> | |||
<IsWebBootstrapper>false</IsWebBootstrapper> | |||
<PublishUrl>C:\Users\dlewis4\Documents\beaglebone\Release\</PublishUrl> | |||
<Install>true</Install> | |||
<InstallFrom>Disk</InstallFrom> | |||
<UpdateEnabled>false</UpdateEnabled> | |||
<UpdateMode>Foreground</UpdateMode> | |||
<UpdateInterval>7</UpdateInterval> | |||
<UpdateIntervalUnits>Days</UpdateIntervalUnits> | |||
<UpdatePeriodically>false</UpdatePeriodically> | |||
<UpdateRequired>false</UpdateRequired> | |||
<MapFileExtensions>true</MapFileExtensions> | |||
<ApplicationRevision>2</ApplicationRevision> | |||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion> | |||
<UseApplicationTrust>false</UseApplicationTrust> | |||
<PublishWizardCompleted>true</PublishWizardCompleted> | |||
<BootstrapperEnabled>true</BootstrapperEnabled> | |||
</PropertyGroup> | |||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | |||
<PlatformTarget>AnyCPU</PlatformTarget> | |||
<DebugSymbols>true</DebugSymbols> | |||
<DebugType>full</DebugType> | |||
<Optimize>false</Optimize> | |||
<OutputPath>bin\Debug\</OutputPath> | |||
<DefineConstants>DEBUG;TRACE</DefineConstants> | |||
<ErrorReport>prompt</ErrorReport> | |||
<WarningLevel>4</WarningLevel> | |||
<UseVSHostingProcess>true</UseVSHostingProcess> | |||
</PropertyGroup> | |||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | |||
<PlatformTarget>AnyCPU</PlatformTarget> | |||
<DebugType>pdbonly</DebugType> | |||
<Optimize>true</Optimize> | |||
<OutputPath>bin\Release\</OutputPath> | |||
<DefineConstants>TRACE</DefineConstants> | |||
<ErrorReport>prompt</ErrorReport> | |||
<WarningLevel>4</WarningLevel> | |||
</PropertyGroup> | |||
<PropertyGroup> | |||
<ManifestCertificateThumbprint>DCDDE859845CB0BB1DB59E3040912DFA74E73799</ManifestCertificateThumbprint> | |||
</PropertyGroup> | |||
<PropertyGroup> | |||
<ManifestKeyFile>Cals1_TemporaryKey.pfx</ManifestKeyFile> | |||
</PropertyGroup> | |||
<PropertyGroup> | |||
<GenerateManifests>true</GenerateManifests> | |||
</PropertyGroup> | |||
<PropertyGroup> | |||
<SignManifests>true</SignManifests> | |||
</PropertyGroup> | |||
<ItemGroup> | |||
<Reference Include="System" /> | |||
<Reference Include="System.Core" /> | |||
<Reference Include="System.Windows.Forms.DataVisualization" /> | |||
<Reference Include="System.Xml.Linq" /> | |||
<Reference Include="System.Data.DataSetExtensions" /> | |||
<Reference Include="Microsoft.CSharp" /> | |||
<Reference Include="System.Data" /> | |||
<Reference Include="System.Deployment" /> | |||
<Reference Include="System.Drawing" /> | |||
<Reference Include="System.Net.Http" /> | |||
<Reference Include="System.Windows.Forms" /> | |||
<Reference Include="System.Xml" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<Compile Include="Cal.cs"> | |||
<SubType>Form</SubType> | |||
</Compile> | |||
<Compile Include="Cal.Designer.cs"> | |||
<DependentUpon>Cal.cs</DependentUpon> | |||
</Compile> | |||
<Compile Include="Class1.cs" /> | |||
<Compile Include="daqMsg.cs" /> | |||
<Compile Include="SocketHelper.cs" /> | |||
<Compile Include="ERPSClient.cs" /> | |||
<Compile Include="RecordingControl.cs"> | |||
<SubType>Form</SubType> | |||
</Compile> | |||
<Compile Include="RecordingControl.Designer.cs"> | |||
<DependentUpon>RecordingControl.cs</DependentUpon> | |||
</Compile> | |||
<Compile Include="Program.cs" /> | |||
<Compile Include="Properties\AssemblyInfo.cs" /> | |||
<EmbeddedResource Include="Cal.resx"> | |||
<DependentUpon>Cal.cs</DependentUpon> | |||
</EmbeddedResource> | |||
<EmbeddedResource Include="RecordingControl.resx"> | |||
<DependentUpon>RecordingControl.cs</DependentUpon> | |||
</EmbeddedResource> | |||
<EmbeddedResource Include="Properties\Resources.resx"> | |||
<Generator>PublicResXFileCodeGenerator</Generator> | |||
<LastGenOutput>Resources.Designer.cs</LastGenOutput> | |||
<SubType>Designer</SubType> | |||
</EmbeddedResource> | |||
<Compile Include="Properties\Resources.Designer.cs"> | |||
<AutoGen>True</AutoGen> | |||
<DependentUpon>Resources.resx</DependentUpon> | |||
<DesignTime>True</DesignTime> | |||
</Compile> | |||
<None Include="Cals1_TemporaryKey.pfx" /> | |||
<None Include="Properties\Settings.settings"> | |||
<Generator>SettingsSingleFileGenerator</Generator> | |||
<LastGenOutput>Settings.Designer.cs</LastGenOutput> | |||
</None> | |||
<Compile Include="Properties\Settings.Designer.cs"> | |||
<AutoGen>True</AutoGen> | |||
<DependentUpon>Settings.settings</DependentUpon> | |||
<DesignTimeSharedInput>True</DesignTimeSharedInput> | |||
</Compile> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<None Include="App.config" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<BootstrapperPackage Include=".NETFramework,Version=v4.5.2"> | |||
<Visible>False</Visible> | |||
<ProductName>Microsoft .NET Framework 4.5.2 %28x86 and x64%29</ProductName> | |||
<Install>true</Install> | |||
</BootstrapperPackage> | |||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1"> | |||
<Visible>False</Visible> | |||
<ProductName>.NET Framework 3.5 SP1</ProductName> | |||
<Install>false</Install> | |||
</BootstrapperPackage> | |||
</ItemGroup> | |||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | |||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. | |||
Other similar extension points exist, see Microsoft.Common.targets. | |||
<Target Name="BeforeBuild"> | |||
</Target> | |||
<Target Name="AfterBuild"> | |||
</Target> | |||
--> | |||
</Project> |
@ -0,0 +1,17 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |||
<PropertyGroup> | |||
<ProjectView>ShowAllFiles</ProjectView> | |||
<PublishUrlHistory /> | |||
<InstallUrlHistory /> | |||
<SupportUrlHistory /> | |||
<UpdateUrlHistory /> | |||
<BootstrapperUrlHistory /> | |||
<ErrorReportUrlHistory /> | |||
<FallbackCulture>en-US</FallbackCulture> | |||
<VerifyUploadedFiles>false</VerifyUploadedFiles> | |||
</PropertyGroup> | |||
<PropertyGroup> | |||
<EnableSecurityDebugging>false</EnableSecurityDebugging> | |||
</PropertyGroup> | |||
</Project> |
@ -0,0 +1,89 @@ | |||
//using System; | |||
//namespace Cals | |||
//{ | |||
//public void averageCalData(FileStream fileStream, UInt32[] average) | |||
//{ | |||
// int i = 0; | |||
// int j = 0; | |||
// UInt32[] s = new UInt32[8]; | |||
// UInt32[] total = new UInt32[8]; | |||
// Byte[] buffer = new Byte[131072]; //128k Recieve Buffer | |||
// UInt32 samplePtr = 32; // We start with the first sample, header is 32 bytes | |||
// int toRead = buffer.Length; | |||
// inLength = fileStream.Read(buffer, totalRead, toRead); | |||
// for (i = 0; i < 8; i++) | |||
// { | |||
// total[i] = 0; | |||
// s[i] = 0; | |||
// average[i] = 0; | |||
// } | |||
// for (i = 0; i < 100; i++) | |||
// { | |||
// for (j = 0; j < 8; j++) | |||
// { | |||
// s[j] = (UInt32)buffer[samplePtr]; | |||
// s[j] |= ((UInt32)buffer[samplePtr + 1] << 8) & 0x00FF00; | |||
// s[j] |= ((UInt32)buffer[samplePtr + 2] << 16) & 0x00FF0000; | |||
// samplePtr += +4; | |||
// total[j] += s[j]; | |||
// } | |||
// } | |||
// for (i = 0; i < 8; i++) | |||
// { | |||
// average[i] = total[i] / 100; | |||
// } | |||
//} | |||
//public void CalibrationCalculate() | |||
//{ | |||
// public double[] ma = new double[8]; | |||
// public UInt32[] b = new UInt32[8]; | |||
// public UInt32[] average_5v = new UInt32[8]; | |||
// public UInt32[] average_0v = new UInt32[8]; | |||
// public double ma = new double[8]; | |||
// public UInt32[] b = new double[8]; | |||
// int i; | |||
// string ZeroVFileName = @"C:\ERPSData\0V_board1_binrecord06302018201157.bin"; | |||
// string FiveVFileName = @"C:\ERPSData\5v_board1_binrecord06302018202901.bin"; | |||
// string calFile = @"C:\ERPSData\goldenCal.dat"; | |||
// var ZeroVStream = new FileStream(ZeroVFileName, FileMode.Open); | |||
// var FiveVStream = new FileStream(FiveVFileName, FileMode.Open); | |||
// var OutFile = new FileStream(calFile, FileMode.Create, FileAccess.Write); | |||
// averageCalData(FiveVStream, average_5v); | |||
// averageCalData(ZeroVStream, average_0v); | |||
// for (int i = 0; i < 8; i++) | |||
// { | |||
// // y = mx + b | |||
// //ma = (yH - yL) / (xH - xL) | |||
// if (average_0v[i] & 0x800000) | |||
// { | |||
// ma[i] = (double)(average_5v[i] - (average_0v[i] - 0xFFFFFF)) / 0x7FFFFF; | |||
// } | |||
// else | |||
// ma[i] = (double)(average_5v[i] - average_0v[i]) / 0x7FFFFF; | |||
// if (average_0v[i] & 0x800000) | |||
// { | |||
// (average_0v[i] - 0xFFFFFF) * ma[i]; | |||
// } | |||
// else | |||
// b[i] = average_0v[i] * ma[i]; | |||
// } | |||
// fprintf(write_fd, "%f %f %f %f %f %f %f %f \n", ma[0], ma[1], ma[2], ma[3], ma[4], ma[5], ma[6], ma[7]); | |||
// fprintf(write_fd, "%x %x %x %x %x %x %x %x \n", b[0], b[1], b[2], b[3], b[4], b[5], b[6], b[7]); | |||
// fclose((FILE*)read_5v_fd); | |||
// fclose((FILE*)read_0v_fd); | |||
// fclose((FILE*)write_fd); | |||
// } | |||
@ -0,0 +1,162 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
#if false | |||
//namespace ERPSClient | |||
//{ | |||
public class ERPSClient | |||
{ | |||
string ipAddr; | |||
Int32 port; | |||
public ERPSClient() | |||
{ | |||
//Client = null; | |||
ipAddr = string.Empty; | |||
port = 0; | |||
} | |||
public bool Connect(String ipAddr, Int32 port) | |||
{ | |||
if (this.Client != null) | |||
{ | |||
if (this.Client.Connected == true) | |||
{ | |||
this.Disconnect(); | |||
} | |||
} | |||
Client = new Socket(AddressFamily::InterNetwork, SocketType::Stream, ProtocolType::Tcp); | |||
IAsyncResult result = Client.BeginConnect(ipAddr, port, nullptr, nullptr); | |||
bool success = result.AsyncWaitHandle.WaitOne(5000, true); | |||
if (!success) | |||
{ | |||
return false; | |||
} | |||
Client.ReceiveTimeout = 0; | |||
this.ipAddr = ipAddr; | |||
this.port = port; | |||
return true; | |||
} | |||
public void Disconnect() | |||
{ | |||
if (this.Client == null) | |||
{ | |||
} | |||
else | |||
{ | |||
try | |||
{ | |||
this.ipAddr = ""; | |||
this.port = 0; | |||
if (this.Client.Connected) | |||
{ | |||
this.Client.Shutdown(SocketShutdown::Both); | |||
} | |||
this.Client.Close(); | |||
} | |||
catch //(...) | |||
{ | |||
} | |||
} | |||
} | |||
public bool IsConnected() | |||
{ | |||
return this.Client.Connected; | |||
} | |||
public String Query(String writeString) | |||
{ | |||
//System::Text::Encoding enc = System::Text::Encoding::ASCII; | |||
var writeData = enc.GetBytes(writeString + "\n"); | |||
var readData = new Byte[1024]; | |||
if (this.Client.Connected) | |||
{ | |||
Int32 bytesSent = this.Client.Send(writeData); | |||
Int32 bytesRec = this.Client.Receive(readData); | |||
return enc.GetString(readData, 0, bytesRec); | |||
} | |||
else | |||
{ | |||
throw new InvalidOperationException("TCPIP Socket not connected"); | |||
} | |||
} | |||
public void Write(String writeString) | |||
{ | |||
//System::Text::Encoding ^ enc = System::Text::Encoding::ASCII; | |||
if (this.Client.Connected) | |||
{ | |||
var writeData = enc.GetBytes(writeString + "\n"); | |||
Int32 bytesSent = this.Client.Send(writeData); | |||
} | |||
else | |||
{ | |||
throw new InvalidOperationException("Can not perform TCPIP Write because no connection exists."); | |||
} | |||
} | |||
public void WriteBinary(Byte[] dataToWrite) | |||
{ | |||
if (this.Client.Connected) | |||
{ | |||
Int32 sTimeout = this.Client.SendTimeout; | |||
this.Client.SendTimeout = 0; | |||
UInt32 bytesSent = (UInt32)(this.Client.Send(dataToWrite)); | |||
this.Client.SendTimeout = sTimeout; | |||
} | |||
else | |||
{ | |||
throw new InvalidOperationException("Can not perform TCPIP WriteBinary because no connection exists."); | |||
} | |||
} | |||
public Byte[] ReadBinary(Int32 numBytes) | |||
{ | |||
Byte[] readData = new Byte[numBytes]; | |||
Int32 bytesRec = 0; | |||
Int32 bytesLeft = numBytes; | |||
if (this.Client.Connected) | |||
{ | |||
do | |||
{ | |||
bytesRec += this.client.Receive(readData, bytesRec, bytesLeft - bytesRec, SocketFlags::None); | |||
} while (bytesRec < numBytes); | |||
} | |||
else | |||
{ | |||
throw new InvalidOperationException("TCPIP Socket not connected"); | |||
} | |||
return readData; | |||
} | |||
public String Read() | |||
{ | |||
if (this.Client.Connected) | |||
{ | |||
//System::Text::Encoding enc = System::Text::Encoding::ASCII; | |||
var writeData = new Byte[1024]; | |||
Int32 bytesRec = this.Client.Receive(readData); | |||
return enc.GetString(readData, 0, bytesRec); | |||
} | |||
else | |||
{ | |||
throw new InvalidOperationException("Can not perform TCPIP read because no connection exists."); | |||
} | |||
} | |||
} | |||
#endif |
@ -0,0 +1,27 @@ | |||
| |||
Microsoft Visual Studio Solution File, Format Version 12.00 | |||
# Visual Studio 15 | |||
VisualStudioVersion = 15.0.28010.2046 | |||
MinimumVisualStudioVersion = 10.0.40219.1 | |||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cals1", "WindowsFormsApplication1\Cals1.csproj", "{F32A713A-7169-4F43-B254-5445BDB53597}" | |||
EndProject | |||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{CA5E9AB4-00F7-4C56-86BC-67FC96B12C5D}" | |||
EndProject | |||
Global | |||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | |||
Debug|Any CPU = Debug|Any CPU | |||
Release|Any CPU = Release|Any CPU | |||
EndGlobalSection | |||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | |||
{F32A713A-7169-4F43-B254-5445BDB53597}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | |||
{F32A713A-7169-4F43-B254-5445BDB53597}.Debug|Any CPU.Build.0 = Debug|Any CPU | |||
{F32A713A-7169-4F43-B254-5445BDB53597}.Release|Any CPU.ActiveCfg = Release|Any CPU | |||
{F32A713A-7169-4F43-B254-5445BDB53597}.Release|Any CPU.Build.0 = Release|Any CPU | |||
EndGlobalSection | |||
GlobalSection(SolutionProperties) = preSolution | |||
HideSolutionNode = FALSE | |||
EndGlobalSection | |||
GlobalSection(ExtensibilityGlobals) = postSolution | |||
SolutionGuid = {2B61F933-2434-4961-BA81-9B77CE2C95DC} | |||
EndGlobalSection | |||
EndGlobal |
@ -0,0 +1,23 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Threading.Tasks; | |||
using System.Windows.Forms; | |||
namespace WindowsFormsApplication1 | |||
{ | |||
static class Program | |||
{ | |||
/// <summary> | |||
/// The main entry point for the application. | |||
/// </summary> | |||
[STAThread] | |||
static void Main() | |||
{ | |||
Application.EnableVisualStyles(); | |||
Application.SetCompatibleTextRenderingDefault(false); | |||
// Application.Run(new Cals()); | |||
Application.Run(new RecordingControl()); | |||
} | |||
} | |||
} |
@ -0,0 +1,36 @@ | |||
using System.Reflection; | |||
using System.Runtime.CompilerServices; | |||
using System.Runtime.InteropServices; | |||
// General Information about an assembly is controlled through the following | |||
// set of attributes. Change these attribute values to modify the information | |||
// associated with an assembly. | |||
[assembly: AssemblyTitle("WindowsFormsApplication1")] | |||
[assembly: AssemblyDescription("")] | |||
[assembly: AssemblyConfiguration("")] | |||
[assembly: AssemblyCompany("Microsoft")] | |||
[assembly: AssemblyProduct("WindowsFormsApplication1")] | |||
[assembly: AssemblyCopyright("Copyright © Microsoft 2018")] | |||
[assembly: AssemblyTrademark("")] | |||
[assembly: AssemblyCulture("")] | |||
// Setting ComVisible to false makes the types in this assembly not visible | |||
// to COM components. If you need to access a type in this assembly from | |||
// COM, set the ComVisible attribute to true on that type. | |||
[assembly: ComVisible(false)] | |||
// The following GUID is for the ID of the typelib if this project is exposed to COM | |||
[assembly: Guid("f32a713a-7169-4f43-b254-5445bdb53597")] | |||
// Version information for an assembly consists of the following four values: | |||
// | |||
// Major Version | |||
// Minor Version | |||
// Build Number | |||
// Revision | |||
// | |||
// You can specify all the values or you can default the Build and Revision Numbers | |||
// by using the '*' as shown below: | |||
// [assembly: AssemblyVersion("1.0.*")] | |||
[assembly: AssemblyVersion("1.0.0.0")] | |||
[assembly: AssemblyFileVersion("1.0.0.0")] |
@ -0,0 +1,81 @@ | |||
//------------------------------------------------------------------------------ | |||
// <auto-generated> | |||
// This code was generated by a tool. | |||
// Runtime Version:4.0.30319.42000 | |||
// | |||
// Changes to this file may cause incorrect behavior and will be lost if | |||
// the code is regenerated. | |||
// </auto-generated> | |||
//------------------------------------------------------------------------------ | |||
namespace WindowsFormsApplication1.Properties { | |||
using System; | |||
/// <summary> | |||
/// A strongly-typed resource class, for looking up localized strings, etc. | |||
/// </summary> | |||
// This class was auto-generated by the StronglyTypedResourceBuilder | |||
// class via a tool like ResGen or Visual Studio. | |||
// To add or remove a member, edit your .ResX file then rerun ResGen | |||
// with the /str option, or rebuild your VS project. | |||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] | |||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] | |||
public class Resources { | |||
private static global::System.Resources.ResourceManager resourceMan; | |||
private static global::System.Globalization.CultureInfo resourceCulture; | |||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] | |||
internal Resources() { | |||
} | |||
/// <summary> | |||
/// Returns the cached ResourceManager instance used by this class. | |||
/// </summary> | |||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | |||
public static global::System.Resources.ResourceManager ResourceManager { | |||
get { | |||
if (object.ReferenceEquals(resourceMan, null)) { | |||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WindowsFormsApplication1.Properties.Resources", typeof(Resources).Assembly); | |||
resourceMan = temp; | |||
} | |||
return resourceMan; | |||
} | |||
} | |||
/// <summary> | |||
/// Overrides the current thread's CurrentUICulture property for all | |||
/// resource lookups using this strongly typed resource class. | |||
/// </summary> | |||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | |||
public static global::System.Globalization.CultureInfo Culture { | |||
get { | |||
return resourceCulture; | |||
} | |||
set { | |||
resourceCulture = value; | |||
} | |||
} | |||
/// <summary> | |||
/// Looks up a localized string similar to 5 V Cal File. | |||
/// </summary> | |||
public static string label1 { | |||
get { | |||
return ResourceManager.GetString("label1", resourceCulture); | |||
} | |||
} | |||
/// <summary> | |||
/// Looks up a localized string similar to 5 V Cal File. | |||
/// </summary> | |||
public static string String1 { | |||
get { | |||
return ResourceManager.GetString("String1", resourceCulture); | |||
} | |||
} | |||
} | |||
} |
@ -0,0 +1,126 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<root> | |||
<!-- | |||
Microsoft ResX Schema | |||
Version 2.0 | |||
The primary goals of this format is to allow a simple XML format | |||
that is mostly human readable. The generation and parsing of the | |||
various data types are done through the TypeConverter classes | |||
associated with the data types. | |||
Example: | |||
... ado.net/XML headers & schema ... | |||
<resheader name="resmimetype">text/microsoft-resx</resheader> | |||
<resheader name="version">2.0</resheader> | |||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |||
<value>[base64 mime encoded serialized .NET Framework object]</value> | |||
</data> | |||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |||
<comment>This is a comment</comment> | |||
</data> | |||
There are any number of "resheader" rows that contain simple | |||
name/value pairs. | |||
Each data row contains a name, and value. The row also contains a | |||
type or mimetype. Type corresponds to a .NET class that support | |||
text/value conversion through the TypeConverter architecture. | |||
Classes that don't support this are serialized and stored with the | |||
mimetype set. | |||
The mimetype is used for serialized objects, and tells the | |||
ResXResourceReader how to depersist the object. This is currently not | |||
extensible. For a given mimetype the value must be set accordingly: | |||
Note - application/x-microsoft.net.object.binary.base64 is the format | |||
that the ResXResourceWriter will generate, however the reader can | |||
read any of the formats listed below. | |||
mimetype: application/x-microsoft.net.object.binary.base64 | |||
value : The object must be serialized with | |||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | |||
: and then encoded with base64 encoding. | |||
mimetype: application/x-microsoft.net.object.soap.base64 | |||
value : The object must be serialized with | |||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |||
: and then encoded with base64 encoding. | |||
mimetype: application/x-microsoft.net.object.bytearray.base64 | |||
value : The object must be serialized into a byte array | |||
: using a System.ComponentModel.TypeConverter | |||
: and then encoded with base64 encoding. | |||
--> | |||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | |||
<xsd:element name="root" msdata:IsDataSet="true"> | |||
<xsd:complexType> | |||
<xsd:choice maxOccurs="unbounded"> | |||
<xsd:element name="metadata"> | |||
<xsd:complexType> | |||
<xsd:sequence> | |||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> | |||
</xsd:sequence> | |||
<xsd:attribute name="name" use="required" type="xsd:string" /> | |||
<xsd:attribute name="type" type="xsd:string" /> | |||
<xsd:attribute name="mimetype" type="xsd:string" /> | |||
<xsd:attribute ref="xml:space" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
<xsd:element name="assembly"> | |||
<xsd:complexType> | |||
<xsd:attribute name="alias" type="xsd:string" /> | |||
<xsd:attribute name="name" type="xsd:string" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
<xsd:element name="data"> | |||
<xsd:complexType> | |||
<xsd:sequence> | |||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |||
</xsd:sequence> | |||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | |||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |||
<xsd:attribute ref="xml:space" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
<xsd:element name="resheader"> | |||
<xsd:complexType> | |||
<xsd:sequence> | |||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
</xsd:sequence> | |||
<xsd:attribute name="name" type="xsd:string" use="required" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
</xsd:choice> | |||
</xsd:complexType> | |||
</xsd:element> | |||
</xsd:schema> | |||
<resheader name="resmimetype"> | |||
<value>text/microsoft-resx</value> | |||
</resheader> | |||
<resheader name="version"> | |||
<value>2.0</value> | |||
</resheader> | |||
<resheader name="reader"> | |||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
</resheader> | |||
<resheader name="writer"> | |||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
</resheader> | |||
<data name="label1" xml:space="preserve"> | |||
<value>5 V Cal File</value> | |||
</data> | |||
<data name="String1" xml:space="preserve"> | |||
<value>5 V Cal File</value> | |||
</data> | |||
</root> |
@ -0,0 +1,30 @@ | |||
//------------------------------------------------------------------------------ | |||
// <auto-generated> | |||
// This code was generated by a tool. | |||
// Runtime Version:4.0.30319.42000 | |||
// | |||
// Changes to this file may cause incorrect behavior and will be lost if | |||
// the code is regenerated. | |||
// </auto-generated> | |||
//------------------------------------------------------------------------------ | |||
namespace WindowsFormsApplication1.Properties | |||
{ | |||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] | |||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] | |||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase | |||
{ | |||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); | |||
public static Settings Default | |||
{ | |||
get | |||
{ | |||
return defaultInstance; | |||
} | |||
} | |||
} | |||
} |
@ -0,0 +1,7 @@ | |||
<?xml version='1.0' encoding='utf-8'?> | |||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)"> | |||
<Profiles> | |||
<Profile Name="(Default)" /> | |||
</Profiles> | |||
<Settings /> | |||
</SettingsFile> |
@ -0,0 +1,126 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<root> | |||
<!-- | |||
Microsoft ResX Schema | |||
Version 2.0 | |||
The primary goals of this format is to allow a simple XML format | |||
that is mostly human readable. The generation and parsing of the | |||
various data types are done through the TypeConverter classes | |||
associated with the data types. | |||
Example: | |||
... ado.net/XML headers & schema ... | |||
<resheader name="resmimetype">text/microsoft-resx</resheader> | |||
<resheader name="version">2.0</resheader> | |||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |||
<value>[base64 mime encoded serialized .NET Framework object]</value> | |||
</data> | |||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |||
<comment>This is a comment</comment> | |||
</data> | |||
There are any number of "resheader" rows that contain simple | |||
name/value pairs. | |||
Each data row contains a name, and value. The row also contains a | |||
type or mimetype. Type corresponds to a .NET class that support | |||
text/value conversion through the TypeConverter architecture. | |||
Classes that don't support this are serialized and stored with the | |||
mimetype set. | |||
The mimetype is used for serialized objects, and tells the | |||
ResXResourceReader how to depersist the object. This is currently not | |||
extensible. For a given mimetype the value must be set accordingly: | |||
Note - application/x-microsoft.net.object.binary.base64 is the format | |||
that the ResXResourceWriter will generate, however the reader can | |||
read any of the formats listed below. | |||
mimetype: application/x-microsoft.net.object.binary.base64 | |||
value : The object must be serialized with | |||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | |||
: and then encoded with base64 encoding. | |||
mimetype: application/x-microsoft.net.object.soap.base64 | |||
value : The object must be serialized with | |||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |||
: and then encoded with base64 encoding. | |||
mimetype: application/x-microsoft.net.object.bytearray.base64 | |||
value : The object must be serialized into a byte array | |||
: using a System.ComponentModel.TypeConverter | |||
: and then encoded with base64 encoding. | |||
--> | |||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | |||
<xsd:element name="root" msdata:IsDataSet="true"> | |||
<xsd:complexType> | |||
<xsd:choice maxOccurs="unbounded"> | |||
<xsd:element name="metadata"> | |||
<xsd:complexType> | |||
<xsd:sequence> | |||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> | |||
</xsd:sequence> | |||
<xsd:attribute name="name" use="required" type="xsd:string" /> | |||
<xsd:attribute name="type" type="xsd:string" /> | |||
<xsd:attribute name="mimetype" type="xsd:string" /> | |||
<xsd:attribute ref="xml:space" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
<xsd:element name="assembly"> | |||
<xsd:complexType> | |||
<xsd:attribute name="alias" type="xsd:string" /> | |||
<xsd:attribute name="name" type="xsd:string" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
<xsd:element name="data"> | |||
<xsd:complexType> | |||
<xsd:sequence> | |||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |||
</xsd:sequence> | |||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | |||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |||
<xsd:attribute ref="xml:space" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
<xsd:element name="resheader"> | |||
<xsd:complexType> | |||
<xsd:sequence> | |||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
</xsd:sequence> | |||
<xsd:attribute name="name" type="xsd:string" use="required" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
</xsd:choice> | |||
</xsd:complexType> | |||
</xsd:element> | |||
</xsd:schema> | |||
<resheader name="resmimetype"> | |||
<value>text/microsoft-resx</value> | |||
</resheader> | |||
<resheader name="version"> | |||
<value>2.0</value> | |||
</resheader> | |||
<resheader name="reader"> | |||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
</resheader> | |||
<resheader name="writer"> | |||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
</resheader> | |||
<metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | |||
<value>17, 17</value> | |||
</metadata> | |||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
<value>25</value> | |||
</metadata> | |||
</root> |
@ -0,0 +1,35 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
using System.Net.Sockets; | |||
namespace WindowsFormsApplication1 | |||
{ | |||
class SocketHelper | |||
{ | |||
TcpClient mscClient; | |||
string mstrMessage; | |||
string mstrResponse; | |||
byte[] bytesSent; | |||
public void processMsg(TcpClient client, NetworkStream stream, byte[] bytesReceived) | |||
{ | |||
// Handle the message received and | |||
// send a response back to the client. | |||
mstrMessage = Encoding.ASCII.GetString(bytesReceived, 0, bytesReceived.Length); | |||
mscClient = client; | |||
mstrMessage = mstrMessage.Substring(0, 5); | |||
if (mstrMessage.Equals("Hello")) | |||
{ | |||
mstrResponse = "Goodbye"; | |||
} | |||
else | |||
{ | |||
mstrResponse = "What?"; | |||
} | |||
bytesSent = Encoding.ASCII.GetBytes(mstrResponse); | |||
stream.Write(bytesSent, 0, bytesSent.Length); | |||
} | |||
} | |||
} |
@ -0,0 +1,6 @@ | |||
<stylecopresultscache> | |||
<version>12</version> | |||
<project key="780630672"> | |||
<configuration>DEBUG;TRACE</configuration> | |||
</project> | |||
</stylecopresultscache> |
@ -0,0 +1,83 @@ | |||
//public void initSensorCalData(double []sensorM, double [] sensorB) | |||
//{ | |||
// sensorM[0] = 0.00001196; //Pressure Sensor A, Channel 12, Tank Bottom Pressure Sensor | |||
// sensorB[0] = 0.00098618; | |||
// sensorM[1] = 0.00000993; //Pressure Sensor B, Channel 11, Engine top pressure sensor | |||
// sensorB[1] = 0.00067037; | |||
// sensorM[2] = 0.0000108; //Pressure Sensor C, Channel 10, | |||
// sensorB[2] = 0.001769202; | |||
// sensorM[3] = 0.003101659562; // Pressure Sensor D, Channel 13, Tank Top, | |||
// sensorB[3] = 0.4003292; | |||
// sensorM[4] = 0.00000993; // Raw Load Cell, Channel 14 | |||
// sensorB[4] = 0.0003450862; | |||
// sensorM[5] = 0.0022580353; //Load Cell x 250, Channel 15 | |||
// sensorB[5] = 0.0862715513; | |||
//} | |||
public void initCalDataBoard1(double[] ma, UInt32[] b) | |||
{ | |||
ma[0] = 0.910801; | |||
ma[1] = 0.914047; | |||
ma[2] = 0.912413; | |||
ma[3] = 0.913650; | |||
ma[4] = 0.906302; | |||
ma[5] = 0.911873; | |||
ma[6] = 0.906871; | |||
ma[7] = 0.911362; | |||
b[0] = 0xFFFBFE; //0x3b5; | |||
b[1] = 0x6b0; | |||
b[2] = 0xFFF153; // 0xd1c; | |||
b[3] = 0xFFFBF0; // 0x40f; | |||
b[4] = 0x1c82; | |||
b[5] = 0xFFC807; // 3308; | |||
b[6] = 0x1f95; | |||
b[7] = 0xFFF736; // 0x7c9; | |||
} | |||
//public void serializeCalData(double[] ma, UInt32[] b) | |||
public void serializeCalData() | |||
{ | |||
string fileName = @"D:/ERPS/Data/DaqCal.json"; | |||
FileStream fileStream = new FileStream(fileName, FileMode.Create, FileAccess.Write); | |||
DaqCal Cal = new DaqCal(); | |||
Cal.ma[0] = 0.910801; | |||
Cal.ma[1] = 0.914047; | |||
Cal.ma[2] = 0.912413; | |||
Cal.ma[3] = 0.913650; | |||
Cal.ma[4] = 0.906302; | |||
Cal.ma[5] = 0.911873; | |||
Cal.ma[6] = 0.906871; | |||
Cal.ma[7] = 0.911362; | |||
Cal.b[0] = 0xFFFBFE; | |||
Cal.b[1] = 0x6b0; | |||
Cal.b[2] = 0xFFF153; | |||
Cal.b[3] = 0xFFFBF0; | |||
Cal.b[4] = 0x1c82; | |||
Cal.b[5] = 0xFFC807; | |||
Cal.b[6] = 0x1f95; | |||
Cal.b[7] = 0xFFF736; | |||
string json = Newtonsoft.Json.JsonConvert.SerializeObject(Cal); | |||
byte[] info = new UTF8Encoding(true).GetBytes(json); | |||
fileStream.Write(info, 0, info.Length); | |||
fileStream.Close(); | |||
} | |||
pressure1 = (calVoltageChan[3] - sensorB[3]) / sensorM[3]; //DAQ Channel 13 | |||
pressure2 = (calVoltageChan[4] - sensorB[0]) / sensorM[0]; //DAQ Channel 12 | |||
pressure3 = (calVoltageChan[5] - sensorB[1]) / sensorM[1]; //DAQ Channel 11 | |||
pressure4 = (calVoltageChan[6] - sensorB[2]) / sensorM[2]; //DAQ Channel 10 |
@ -0,0 +1,3 @@ | |||
{ | |||
"CurrentProjectSetting": null | |||
} |
@ -0,0 +1,6 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<configuration> | |||
<startup> | |||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/> | |||
</startup> | |||
</configuration> |
@ -0,0 +1,447 @@ | |||
namespace WindowsFormsApplication1 | |||
{ | |||
partial class Cals | |||
{ | |||
/// <summary> | |||
/// Required designer variable. | |||
/// </summary> | |||
private System.ComponentModel.IContainer components = null; | |||
/// <summary> | |||
/// Clean up any resources being used. | |||
/// </summary> | |||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> | |||
protected override void Dispose(bool disposing) | |||
{ | |||
if (disposing && (components != null)) | |||
{ | |||
components.Dispose(); | |||
} | |||
base.Dispose(disposing); | |||
} | |||
#region Windows Form Designer generated code | |||
/// <summary> | |||
/// Required method for Designer support - do not modify | |||
/// the contents of this method with the code editor. | |||
/// </summary> | |||
private void InitializeComponent() | |||
{ | |||
this.CalLabel1 = new System.Windows.Forms.Label(); | |||
this.FiveVoltCalFileTextBox = new System.Windows.Forms.TextBox(); | |||
this.CalLabel2 = new System.Windows.Forms.Label(); | |||
this.CalLlabel3 = new System.Windows.Forms.Label(); | |||
this.ZeroVoltCalFileTextBox = new System.Windows.Forms.TextBox(); | |||
this.CalResultsFileTextBox = new System.Windows.Forms.TextBox(); | |||
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); | |||
this.Channel8Label = new System.Windows.Forms.Label(); | |||
this.Channel7Label = new System.Windows.Forms.Label(); | |||
this.Channel6Label = new System.Windows.Forms.Label(); | |||
this.Channel5Label = new System.Windows.Forms.Label(); | |||
this.Channel4Label = new System.Windows.Forms.Label(); | |||
this.Channel3Label = new System.Windows.Forms.Label(); | |||
this.Channel2Label = new System.Windows.Forms.Label(); | |||
this.Channel1Label = new System.Windows.Forms.Label(); | |||
this.label2 = new System.Windows.Forms.Label(); | |||
this.label3 = new System.Windows.Forms.Label(); | |||
this.FiveVActualTextBox = new System.Windows.Forms.TextBox(); | |||
this.FiveVReference = new System.Windows.Forms.Label(); | |||
this.RunCalButton = new System.Windows.Forms.Button(); | |||
this.QuadARadioButton = new System.Windows.Forms.RadioButton(); | |||
this.QuadBRadioButton = new System.Windows.Forms.RadioButton(); | |||
this.QuadCRadioButton = new System.Windows.Forms.RadioButton(); | |||
this.QuadDRadioButton = new System.Windows.Forms.RadioButton(); | |||
this.groupBox1 = new System.Windows.Forms.GroupBox(); | |||
this.tableLayoutPanel1.SuspendLayout(); | |||
this.groupBox1.SuspendLayout(); | |||
this.SuspendLayout(); | |||
// | |||
// CalLabel1 | |||
// | |||
this.CalLabel1.AutoSize = true; | |||
this.CalLabel1.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.CalLabel1.Location = new System.Drawing.Point(34, 26); | |||
this.CalLabel1.Name = "CalLabel1"; | |||
this.CalLabel1.Size = new System.Drawing.Size(86, 17); | |||
this.CalLabel1.TabIndex = 0; | |||
this.CalLabel1.Text = "5V Cal File"; | |||
this.CalLabel1.Click += new System.EventHandler(this.label1_Click); | |||
// | |||
// FiveVoltCalFileTextBox | |||
// | |||
this.FiveVoltCalFileTextBox.Location = new System.Drawing.Point(161, 21); | |||
this.FiveVoltCalFileTextBox.Name = "FiveVoltCalFileTextBox"; | |||
this.FiveVoltCalFileTextBox.Size = new System.Drawing.Size(380, 22); | |||
this.FiveVoltCalFileTextBox.TabIndex = 1; | |||
this.FiveVoltCalFileTextBox.TextChanged += new System.EventHandler(this.FiveVoltCalFileTextBox_TextChanged); | |||
// | |||
// CalLabel2 | |||
// | |||
this.CalLabel2.AutoSize = true; | |||
this.CalLabel2.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.CalLabel2.Location = new System.Drawing.Point(34, 97); | |||
this.CalLabel2.Name = "CalLabel2"; | |||
this.CalLabel2.Size = new System.Drawing.Size(86, 17); | |||
this.CalLabel2.TabIndex = 2; | |||
this.CalLabel2.Text = "0V Cal File"; | |||
this.CalLabel2.Click += new System.EventHandler(this.label2_Click); | |||
// | |||
// CalLlabel3 | |||
// | |||
this.CalLlabel3.AutoSize = true; | |||
this.CalLlabel3.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.CalLlabel3.Location = new System.Drawing.Point(34, 174); | |||
this.CalLlabel3.Name = "CalLlabel3"; | |||
this.CalLlabel3.Size = new System.Drawing.Size(121, 17); | |||
this.CalLlabel3.TabIndex = 3; | |||
this.CalLlabel3.Text = "Cal Results File"; | |||
this.CalLlabel3.Click += new System.EventHandler(this.label3_Click); | |||
// | |||
// ZeroVoltCalFileTextBox | |||
// | |||
this.ZeroVoltCalFileTextBox.Location = new System.Drawing.Point(161, 92); | |||
this.ZeroVoltCalFileTextBox.Name = "ZeroVoltCalFileTextBox"; | |||
this.ZeroVoltCalFileTextBox.Size = new System.Drawing.Size(380, 22); | |||
this.ZeroVoltCalFileTextBox.TabIndex = 4; | |||
this.ZeroVoltCalFileTextBox.TextChanged += new System.EventHandler(this.ZeroVoltCalFileTextBox_TextChanged); | |||
// | |||
// CalResultsFileTextBox | |||
// | |||
this.CalResultsFileTextBox.Location = new System.Drawing.Point(161, 175); | |||
this.CalResultsFileTextBox.Name = "CalResultsFileTextBox"; | |||
this.CalResultsFileTextBox.Size = new System.Drawing.Size(380, 22); | |||
this.CalResultsFileTextBox.TabIndex = 5; | |||
this.CalResultsFileTextBox.TextChanged += new System.EventHandler(this.CalResultsFileTextBox_TextChanged); | |||
// | |||
// tableLayoutPanel1 | |||
// | |||
this.tableLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| System.Windows.Forms.AnchorStyles.Left) | |||
| System.Windows.Forms.AnchorStyles.Right))); | |||
this.tableLayoutPanel1.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.InsetDouble; | |||
this.tableLayoutPanel1.ColumnCount = 9; | |||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F)); | |||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F)); | |||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F)); | |||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F)); | |||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F)); | |||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F)); | |||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F)); | |||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F)); | |||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F)); | |||
this.tableLayoutPanel1.Controls.Add(this.Channel8Label, 8, 0); | |||
this.tableLayoutPanel1.Controls.Add(this.Channel7Label, 7, 0); | |||
this.tableLayoutPanel1.Controls.Add(this.Channel6Label, 6, 0); | |||
this.tableLayoutPanel1.Controls.Add(this.Channel5Label, 5, 0); | |||
this.tableLayoutPanel1.Controls.Add(this.Channel4Label, 4, 0); | |||
this.tableLayoutPanel1.Controls.Add(this.Channel3Label, 3, 0); | |||
this.tableLayoutPanel1.Controls.Add(this.Channel2Label, 2, 0); | |||
this.tableLayoutPanel1.Controls.Add(this.Channel1Label, 1, 0); | |||
this.tableLayoutPanel1.Controls.Add(this.label2, 0, 1); | |||
this.tableLayoutPanel1.Controls.Add(this.label3, 0, 2); | |||
this.tableLayoutPanel1.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.tableLayoutPanel1.Location = new System.Drawing.Point(25, 261); | |||
this.tableLayoutPanel1.Name = "tableLayoutPanel1"; | |||
this.tableLayoutPanel1.RowCount = 3; | |||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F)); | |||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F)); | |||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F)); | |||
this.tableLayoutPanel1.Size = new System.Drawing.Size(822, 112); | |||
this.tableLayoutPanel1.TabIndex = 6; | |||
this.tableLayoutPanel1.Paint += new System.Windows.Forms.PaintEventHandler(this.tableLayoutPanel1_Paint); | |||
// | |||
// Channel8Label | |||
// | |||
this.Channel8Label.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| System.Windows.Forms.AnchorStyles.Left) | |||
| System.Windows.Forms.AnchorStyles.Right))); | |||
this.Channel8Label.AutoSize = true; | |||
this.Channel8Label.Location = new System.Drawing.Point(734, 3); | |||
this.Channel8Label.Name = "Channel8Label"; | |||
this.Channel8Label.Size = new System.Drawing.Size(82, 33); | |||
this.Channel8Label.TabIndex = 7; | |||
this.Channel8Label.Text = "Channel 8"; | |||
this.Channel8Label.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
this.Channel8Label.Click += new System.EventHandler(this.label8_Click); | |||
// | |||
// Channel7Label | |||
// | |||
this.Channel7Label.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| System.Windows.Forms.AnchorStyles.Left) | |||
| System.Windows.Forms.AnchorStyles.Right))); | |||
this.Channel7Label.AutoSize = true; | |||
this.Channel7Label.Location = new System.Drawing.Point(643, 3); | |||
this.Channel7Label.Name = "Channel7Label"; | |||
this.Channel7Label.Size = new System.Drawing.Size(82, 33); | |||
this.Channel7Label.TabIndex = 6; | |||
this.Channel7Label.Text = "Channel 7"; | |||
this.Channel7Label.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
this.Channel7Label.Click += new System.EventHandler(this.label7_Click); | |||
// | |||
// Channel6Label | |||
// | |||
this.Channel6Label.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| System.Windows.Forms.AnchorStyles.Left) | |||
| System.Windows.Forms.AnchorStyles.Right))); | |||
this.Channel6Label.AutoSize = true; | |||
this.Channel6Label.Location = new System.Drawing.Point(552, 3); | |||
this.Channel6Label.Name = "Channel6Label"; | |||
this.Channel6Label.Size = new System.Drawing.Size(82, 33); | |||
this.Channel6Label.TabIndex = 5; | |||
this.Channel6Label.Text = "Channel 6"; | |||
this.Channel6Label.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
this.Channel6Label.Click += new System.EventHandler(this.label6_Click); | |||
// | |||
// Channel5Label | |||
// | |||
this.Channel5Label.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| System.Windows.Forms.AnchorStyles.Left) | |||
| System.Windows.Forms.AnchorStyles.Right))); | |||
this.Channel5Label.AutoSize = true; | |||
this.Channel5Label.Location = new System.Drawing.Point(461, 3); | |||
this.Channel5Label.Name = "Channel5Label"; | |||
this.Channel5Label.Size = new System.Drawing.Size(82, 33); | |||
this.Channel5Label.TabIndex = 4; | |||
this.Channel5Label.Text = "Channel 5"; | |||
this.Channel5Label.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
this.Channel5Label.Click += new System.EventHandler(this.label5_Click); | |||
// | |||
// Channel4Label | |||
// | |||
this.Channel4Label.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| System.Windows.Forms.AnchorStyles.Left) | |||
| System.Windows.Forms.AnchorStyles.Right))); | |||
this.Channel4Label.AutoSize = true; | |||
this.Channel4Label.Location = new System.Drawing.Point(370, 3); | |||
this.Channel4Label.Name = "Channel4Label"; | |||
this.Channel4Label.Size = new System.Drawing.Size(82, 33); | |||
this.Channel4Label.TabIndex = 3; | |||
this.Channel4Label.Text = "Channel 4"; | |||
this.Channel4Label.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
this.Channel4Label.Click += new System.EventHandler(this.label4_Click); | |||
// | |||
// Channel3Label | |||
// | |||
this.Channel3Label.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| System.Windows.Forms.AnchorStyles.Left) | |||
| System.Windows.Forms.AnchorStyles.Right))); | |||
this.Channel3Label.AutoSize = true; | |||
this.Channel3Label.Location = new System.Drawing.Point(279, 3); | |||
this.Channel3Label.Name = "Channel3Label"; | |||
this.Channel3Label.Size = new System.Drawing.Size(82, 33); | |||
this.Channel3Label.TabIndex = 2; | |||
this.Channel3Label.Text = "Channel 3"; | |||
this.Channel3Label.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
// | |||
// Channel2Label | |||
// | |||
this.Channel2Label.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| System.Windows.Forms.AnchorStyles.Left) | |||
| System.Windows.Forms.AnchorStyles.Right))); | |||
this.Channel2Label.AutoSize = true; | |||
this.Channel2Label.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.Channel2Label.Location = new System.Drawing.Point(188, 3); | |||
this.Channel2Label.Name = "Channel2Label"; | |||
this.Channel2Label.Size = new System.Drawing.Size(82, 33); | |||
this.Channel2Label.TabIndex = 1; | |||
this.Channel2Label.Text = "Channel 2"; | |||
this.Channel2Label.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
this.Channel2Label.Click += new System.EventHandler(this.label2_Click_1); | |||
// | |||
// Channel1Label | |||
// | |||
this.Channel1Label.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| System.Windows.Forms.AnchorStyles.Left) | |||
| System.Windows.Forms.AnchorStyles.Right))); | |||
this.Channel1Label.AutoSize = true; | |||
this.Channel1Label.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.Channel1Label.Location = new System.Drawing.Point(97, 3); | |||
this.Channel1Label.Name = "Channel1Label"; | |||
this.Channel1Label.Size = new System.Drawing.Size(82, 33); | |||
this.Channel1Label.TabIndex = 0; | |||
this.Channel1Label.Text = "Channel 1"; | |||
this.Channel1Label.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
this.Channel1Label.Click += new System.EventHandler(this.Channel1Label_Click); | |||
// | |||
// label2 | |||
// | |||
this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| System.Windows.Forms.AnchorStyles.Left) | |||
| System.Windows.Forms.AnchorStyles.Right))); | |||
this.label2.AutoSize = true; | |||
this.label2.Location = new System.Drawing.Point(6, 39); | |||
this.label2.Name = "label2"; | |||
this.label2.Size = new System.Drawing.Size(82, 33); | |||
this.label2.TabIndex = 8; | |||
this.label2.Text = "ma"; | |||
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
this.label2.Click += new System.EventHandler(this.label2_Click_2); | |||
// | |||
// label3 | |||
// | |||
this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| System.Windows.Forms.AnchorStyles.Left) | |||
| System.Windows.Forms.AnchorStyles.Right))); | |||
this.label3.AutoSize = true; | |||
this.label3.Location = new System.Drawing.Point(6, 75); | |||
this.label3.Name = "label3"; | |||
this.label3.Size = new System.Drawing.Size(82, 34); | |||
this.label3.TabIndex = 9; | |||
this.label3.Text = "b"; | |||
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
this.label3.Click += new System.EventHandler(this.label3_Click_1); | |||
// | |||
// FiveVActualTextBox | |||
// | |||
this.FiveVActualTextBox.AcceptsTab = true; | |||
this.FiveVActualTextBox.Location = new System.Drawing.Point(741, 14); | |||
this.FiveVActualTextBox.Name = "FiveVActualTextBox"; | |||
this.FiveVActualTextBox.Size = new System.Drawing.Size(100, 22); | |||
this.FiveVActualTextBox.TabIndex = 8; | |||
this.FiveVActualTextBox.Text = "5.00000"; | |||
// | |||
// FiveVReference | |||
// | |||
this.FiveVReference.AutoSize = true; | |||
this.FiveVReference.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.FiveVReference.Location = new System.Drawing.Point(614, 26); | |||
this.FiveVReference.Name = "FiveVReference"; | |||
this.FiveVReference.Size = new System.Drawing.Size(124, 17); | |||
this.FiveVReference.TabIndex = 9; | |||
this.FiveVReference.Text = "5 V (Reference)"; | |||
// | |||
// RunCalButton | |||
// | |||
this.RunCalButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.RunCalButton.Location = new System.Drawing.Point(617, 64); | |||
this.RunCalButton.Name = "RunCalButton"; | |||
this.RunCalButton.Size = new System.Drawing.Size(145, 50); | |||
this.RunCalButton.TabIndex = 11; | |||
this.RunCalButton.Text = "Run Calibration"; | |||
this.RunCalButton.UseVisualStyleBackColor = true; | |||
this.RunCalButton.Click += new System.EventHandler(this.RunCalButton_Click); | |||
// | |||
// QuadARadioButton | |||
// | |||
this.QuadARadioButton.AutoSize = true; | |||
this.QuadARadioButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.QuadARadioButton.Location = new System.Drawing.Point(617, 142); | |||
this.QuadARadioButton.Name = "QuadARadioButton"; | |||
this.QuadARadioButton.Size = new System.Drawing.Size(83, 21); | |||
this.QuadARadioButton.TabIndex = 12; | |||
this.QuadARadioButton.Text = "Quad A"; | |||
this.QuadARadioButton.UseVisualStyleBackColor = true; | |||
this.QuadARadioButton.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged); | |||
// | |||
// QuadBRadioButton | |||
// | |||
this.QuadBRadioButton.AutoSize = true; | |||
this.QuadBRadioButton.Checked = true; | |||
this.QuadBRadioButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.QuadBRadioButton.Location = new System.Drawing.Point(617, 169); | |||
this.QuadBRadioButton.Name = "QuadBRadioButton"; | |||
this.QuadBRadioButton.Size = new System.Drawing.Size(83, 21); | |||
this.QuadBRadioButton.TabIndex = 13; | |||
this.QuadBRadioButton.TabStop = true; | |||
this.QuadBRadioButton.Text = "Quad B"; | |||
this.QuadBRadioButton.UseVisualStyleBackColor = true; | |||
this.QuadBRadioButton.CheckedChanged += new System.EventHandler(this.radioButton2_CheckedChanged); | |||
// | |||
// QuadCRadioButton | |||
// | |||
this.QuadCRadioButton.AutoSize = true; | |||
this.QuadCRadioButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.QuadCRadioButton.Location = new System.Drawing.Point(617, 197); | |||
this.QuadCRadioButton.Name = "QuadCRadioButton"; | |||
this.QuadCRadioButton.Size = new System.Drawing.Size(83, 21); | |||
this.QuadCRadioButton.TabIndex = 14; | |||
this.QuadCRadioButton.TabStop = true; | |||
this.QuadCRadioButton.Text = "Quad C"; | |||
this.QuadCRadioButton.UseVisualStyleBackColor = true; | |||
this.QuadCRadioButton.CheckedChanged += new System.EventHandler(this.radioButton3_CheckedChanged); | |||
// | |||
// QuadDRadioButton | |||
// | |||
this.QuadDRadioButton.AutoSize = true; | |||
this.QuadDRadioButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.QuadDRadioButton.Location = new System.Drawing.Point(616, 227); | |||
this.QuadDRadioButton.Name = "QuadDRadioButton"; | |||
this.QuadDRadioButton.Size = new System.Drawing.Size(84, 21); | |||
this.QuadDRadioButton.TabIndex = 15; | |||
this.QuadDRadioButton.TabStop = true; | |||
this.QuadDRadioButton.Text = "Quad D"; | |||
this.QuadDRadioButton.UseVisualStyleBackColor = true; | |||
this.QuadDRadioButton.CheckedChanged += new System.EventHandler(this.radioButton4_CheckedChanged); | |||
// | |||
// groupBox1 | |||
// | |||
this.groupBox1.Controls.Add(this.tableLayoutPanel1); | |||
this.groupBox1.Controls.Add(this.FiveVActualTextBox); | |||
this.groupBox1.Location = new System.Drawing.Point(12, 12); | |||
this.groupBox1.Name = "groupBox1"; | |||
this.groupBox1.Size = new System.Drawing.Size(899, 443); | |||
this.groupBox1.TabIndex = 16; | |||
this.groupBox1.TabStop = false; | |||
this.groupBox1.Enter += new System.EventHandler(this.groupBox1_Enter); | |||
// | |||
// Cals | |||
// | |||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); | |||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | |||
this.ClientSize = new System.Drawing.Size(1736, 765); | |||
this.Controls.Add(this.QuadDRadioButton); | |||
this.Controls.Add(this.QuadCRadioButton); | |||
this.Controls.Add(this.QuadBRadioButton); | |||
this.Controls.Add(this.QuadARadioButton); | |||
this.Controls.Add(this.RunCalButton); | |||
this.Controls.Add(this.FiveVReference); | |||
this.Controls.Add(this.CalResultsFileTextBox); | |||
this.Controls.Add(this.ZeroVoltCalFileTextBox); | |||
this.Controls.Add(this.CalLlabel3); | |||
this.Controls.Add(this.CalLabel2); | |||
this.Controls.Add(this.FiveVoltCalFileTextBox); | |||
this.Controls.Add(this.CalLabel1); | |||
this.Controls.Add(this.groupBox1); | |||
this.Name = "Cals"; | |||
this.Text = "Calibration Screen"; | |||
this.Load += new System.EventHandler(this.Calibration_Load); | |||
this.tableLayoutPanel1.ResumeLayout(false); | |||
this.tableLayoutPanel1.PerformLayout(); | |||
this.groupBox1.ResumeLayout(false); | |||
this.groupBox1.PerformLayout(); | |||
this.ResumeLayout(false); | |||
this.PerformLayout(); | |||
} | |||
#endregion | |||
private System.Windows.Forms.Label CalLabel1; | |||
private System.Windows.Forms.TextBox FiveVoltCalFileTextBox; | |||
private System.Windows.Forms.Label CalLabel2; | |||
private System.Windows.Forms.Label CalLlabel3; | |||
private System.Windows.Forms.TextBox ZeroVoltCalFileTextBox; | |||
private System.Windows.Forms.TextBox CalResultsFileTextBox; | |||
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; | |||
private System.Windows.Forms.Label Channel1Label; | |||
private System.Windows.Forms.Label Channel2Label; | |||
private System.Windows.Forms.Label Channel3Label; | |||
private System.Windows.Forms.Label Channel4Label; | |||
private System.Windows.Forms.Label Channel5Label; | |||
private System.Windows.Forms.Label Channel6Label; | |||
private System.Windows.Forms.Label Channel7Label; | |||
private System.Windows.Forms.Label Channel8Label; | |||
private System.Windows.Forms.TextBox FiveVActualTextBox; | |||
private System.Windows.Forms.Label FiveVReference; | |||
private System.Windows.Forms.Button RunCalButton; | |||
private System.Windows.Forms.RadioButton QuadARadioButton; | |||
private System.Windows.Forms.RadioButton QuadBRadioButton; | |||
private System.Windows.Forms.RadioButton QuadCRadioButton; | |||
private System.Windows.Forms.RadioButton QuadDRadioButton; | |||
private System.Windows.Forms.Label label2; | |||
private System.Windows.Forms.Label label3; | |||
private System.Windows.Forms.GroupBox groupBox1; | |||
} | |||
} | |||
@ -0,0 +1,140 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.ComponentModel; | |||
using System.Data; | |||
using System.Drawing; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
using System.Windows.Forms; | |||
namespace WindowsFormsApplication1 | |||
{ | |||
public partial class Cals : Form | |||
{ | |||
public Cals() | |||
{ | |||
InitializeComponent(); | |||
} | |||
private void label1_Click(object sender, EventArgs e) | |||
{ | |||
} | |||
private void Calibrate_CheckedChanged(object sender, EventArgs e) | |||
{ | |||
} | |||
private void label2_Click(object sender, EventArgs e) | |||
{ | |||
} | |||
private void label3_Click(object sender, EventArgs e) | |||
{ | |||
} | |||
private void label2_Click_1(object sender, EventArgs e) | |||
{ | |||
} | |||
private void label4_Click(object sender, EventArgs e) | |||
{ | |||
} | |||
private void label5_Click(object sender, EventArgs e) | |||
{ | |||
} | |||
private void label6_Click(object sender, EventArgs e) | |||
{ | |||
} | |||
private void label7_Click(object sender, EventArgs e) | |||
{ | |||
} | |||
private void label8_Click(object sender, EventArgs e) | |||
{ | |||
} | |||
private void Channel1Label_Click(object sender, EventArgs e) | |||
{ | |||
} | |||
private void Calibration_Load(object sender, EventArgs e) | |||
{ | |||
} | |||
private void radioButton1_CheckedChanged(object sender, EventArgs e) | |||
{ | |||
} | |||
private void radioButton3_CheckedChanged(object sender, EventArgs e) | |||
{ | |||
} | |||
private void radioButton2_CheckedChanged(object sender, EventArgs e) | |||
{ | |||
} | |||
private void radioButton4_CheckedChanged(object sender, EventArgs e) | |||
{ | |||
} | |||
private void label2_Click_2(object sender, EventArgs e) | |||
{ | |||
} | |||
private void ZeroVoltCalFileTextBox_TextChanged(object sender, EventArgs e) | |||
{ | |||
} | |||
private void FiveVoltCalFileTextBox_TextChanged(object sender, EventArgs e) | |||
{ | |||
} | |||
private void label3_Click_1(object sender, EventArgs e) | |||
{ | |||
} | |||
private void tableLayoutPanel1_Paint(object sender, PaintEventArgs e) | |||
{ | |||
} | |||
private void RunCalButton_Click(object sender, EventArgs e) | |||
{ | |||
} | |||
private void CalResultsFileTextBox_TextChanged(object sender, EventArgs e) | |||
{ | |||
} | |||
private void groupBox1_Enter(object sender, EventArgs e) | |||
{ | |||
} | |||
} | |||
} |
@ -0,0 +1,123 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<root> | |||
<!-- | |||
Microsoft ResX Schema | |||
Version 2.0 | |||
The primary goals of this format is to allow a simple XML format | |||
that is mostly human readable. The generation and parsing of the | |||
various data types are done through the TypeConverter classes | |||
associated with the data types. | |||
Example: | |||
... ado.net/XML headers & schema ... | |||
<resheader name="resmimetype">text/microsoft-resx</resheader> | |||
<resheader name="version">2.0</resheader> | |||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |||
<value>[base64 mime encoded serialized .NET Framework object]</value> | |||
</data> | |||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |||
<comment>This is a comment</comment> | |||
</data> | |||
There are any number of "resheader" rows that contain simple | |||
name/value pairs. | |||
Each data row contains a name, and value. The row also contains a | |||
type or mimetype. Type corresponds to a .NET class that support | |||
text/value conversion through the TypeConverter architecture. | |||
Classes that don't support this are serialized and stored with the | |||
mimetype set. | |||
The mimetype is used for serialized objects, and tells the | |||
ResXResourceReader how to depersist the object. This is currently not | |||
extensible. For a given mimetype the value must be set accordingly: | |||
Note - application/x-microsoft.net.object.binary.base64 is the format | |||
that the ResXResourceWriter will generate, however the reader can | |||
read any of the formats listed below. | |||
mimetype: application/x-microsoft.net.object.binary.base64 | |||
value : The object must be serialized with | |||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | |||
: and then encoded with base64 encoding. | |||
mimetype: application/x-microsoft.net.object.soap.base64 | |||
value : The object must be serialized with | |||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |||
: and then encoded with base64 encoding. | |||
mimetype: application/x-microsoft.net.object.bytearray.base64 | |||
value : The object must be serialized into a byte array | |||
: using a System.ComponentModel.TypeConverter | |||
: and then encoded with base64 encoding. | |||
--> | |||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | |||
<xsd:element name="root" msdata:IsDataSet="true"> | |||
<xsd:complexType> | |||
<xsd:choice maxOccurs="unbounded"> | |||
<xsd:element name="metadata"> | |||
<xsd:complexType> | |||
<xsd:sequence> | |||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> | |||
</xsd:sequence> | |||
<xsd:attribute name="name" use="required" type="xsd:string" /> | |||
<xsd:attribute name="type" type="xsd:string" /> | |||
<xsd:attribute name="mimetype" type="xsd:string" /> | |||
<xsd:attribute ref="xml:space" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
<xsd:element name="assembly"> | |||
<xsd:complexType> | |||
<xsd:attribute name="alias" type="xsd:string" /> | |||
<xsd:attribute name="name" type="xsd:string" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
<xsd:element name="data"> | |||
<xsd:complexType> | |||
<xsd:sequence> | |||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |||
</xsd:sequence> | |||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | |||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |||
<xsd:attribute ref="xml:space" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
<xsd:element name="resheader"> | |||
<xsd:complexType> | |||
<xsd:sequence> | |||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
</xsd:sequence> | |||
<xsd:attribute name="name" type="xsd:string" use="required" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
</xsd:choice> | |||
</xsd:complexType> | |||
</xsd:element> | |||
</xsd:schema> | |||
<resheader name="resmimetype"> | |||
<value>text/microsoft-resx</value> | |||
</resheader> | |||
<resheader name="version"> | |||
<value>2.0</value> | |||
</resheader> | |||
<resheader name="reader"> | |||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
</resheader> | |||
<resheader name="writer"> | |||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
</resheader> | |||
<metadata name="tableLayoutPanel1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
<value>True</value> | |||
</metadata> | |||
</root> |
@ -0,0 +1,155 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | |||
<PropertyGroup> | |||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | |||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | |||
<ProjectGuid>{F32A713A-7169-4F43-B254-5445BDB53597}</ProjectGuid> | |||
<OutputType>WinExe</OutputType> | |||
<AppDesignerFolder>Properties</AppDesignerFolder> | |||
<RootNamespace>WindowsFormsApplication1</RootNamespace> | |||
<AssemblyName>WindowsFormsApplication1</AssemblyName> | |||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion> | |||
<FileAlignment>512</FileAlignment> | |||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> | |||
<IsWebBootstrapper>false</IsWebBootstrapper> | |||
<PublishUrl>C:\Users\dlewis4\Documents\beaglebone\Release\</PublishUrl> | |||
<Install>true</Install> | |||
<InstallFrom>Disk</InstallFrom> | |||
<UpdateEnabled>false</UpdateEnabled> | |||
<UpdateMode>Foreground</UpdateMode> | |||
<UpdateInterval>7</UpdateInterval> | |||
<UpdateIntervalUnits>Days</UpdateIntervalUnits> | |||
<UpdatePeriodically>false</UpdatePeriodically> | |||
<UpdateRequired>false</UpdateRequired> | |||
<MapFileExtensions>true</MapFileExtensions> | |||
<ApplicationRevision>2</ApplicationRevision> | |||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion> | |||
<UseApplicationTrust>false</UseApplicationTrust> | |||
<PublishWizardCompleted>true</PublishWizardCompleted> | |||
<BootstrapperEnabled>true</BootstrapperEnabled> | |||
<TargetFrameworkProfile /> | |||
</PropertyGroup> | |||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | |||
<PlatformTarget>AnyCPU</PlatformTarget> | |||
<DebugSymbols>true</DebugSymbols> | |||
<DebugType>full</DebugType> | |||
<Optimize>false</Optimize> | |||
<OutputPath>bin\Debug\</OutputPath> | |||
<DefineConstants>DEBUG;TRACE</DefineConstants> | |||
<ErrorReport>prompt</ErrorReport> | |||
<WarningLevel>4</WarningLevel> | |||
<UseVSHostingProcess>true</UseVSHostingProcess> | |||
</PropertyGroup> | |||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | |||
<PlatformTarget>AnyCPU</PlatformTarget> | |||
<DebugType>pdbonly</DebugType> | |||
<Optimize>true</Optimize> | |||
<OutputPath>bin\Release\</OutputPath> | |||
<DefineConstants>TRACE</DefineConstants> | |||
<ErrorReport>prompt</ErrorReport> | |||
<WarningLevel>4</WarningLevel> | |||
</PropertyGroup> | |||
<PropertyGroup> | |||
<ManifestCertificateThumbprint>DCDDE859845CB0BB1DB59E3040912DFA74E73799</ManifestCertificateThumbprint> | |||
</PropertyGroup> | |||
<PropertyGroup> | |||
<ManifestKeyFile>Cals1_TemporaryKey.pfx</ManifestKeyFile> | |||
</PropertyGroup> | |||
<PropertyGroup> | |||
<GenerateManifests>true</GenerateManifests> | |||
</PropertyGroup> | |||
<PropertyGroup> | |||
<SignManifests>true</SignManifests> | |||
</PropertyGroup> | |||
<ItemGroup> | |||
<Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL"> | |||
<HintPath>..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll</HintPath> | |||
</Reference> | |||
<Reference Include="System" /> | |||
<Reference Include="System.Core" /> | |||
<Reference Include="System.Json, Version=2.0.6.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | |||
<HintPath>..\packages\System.Json.4.5.0\lib\netstandard1.0\System.Json.dll</HintPath> | |||
</Reference> | |||
<Reference Include="System.Windows.Forms.DataVisualization" /> | |||
<Reference Include="System.Xml.Linq" /> | |||
<Reference Include="System.Data.DataSetExtensions" /> | |||
<Reference Include="Microsoft.CSharp" /> | |||
<Reference Include="System.Data" /> | |||
<Reference Include="System.Deployment" /> | |||
<Reference Include="System.Drawing" /> | |||
<Reference Include="System.Net.Http" /> | |||
<Reference Include="System.Windows.Forms" /> | |||
<Reference Include="System.Xml" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<Compile Include="Cal.cs"> | |||
<SubType>Form</SubType> | |||
</Compile> | |||
<Compile Include="Cal.Designer.cs"> | |||
<DependentUpon>Cal.cs</DependentUpon> | |||
</Compile> | |||
<Compile Include="Class1.cs" /> | |||
<Compile Include="daqMsg.cs" /> | |||
<Compile Include="SocketHelper.cs" /> | |||
<Compile Include="ERPSClient.cs" /> | |||
<Compile Include="RecordingControl.cs"> | |||
<SubType>Form</SubType> | |||
</Compile> | |||
<Compile Include="RecordingControl.Designer.cs"> | |||
<DependentUpon>RecordingControl.cs</DependentUpon> | |||
</Compile> | |||
<Compile Include="Program.cs" /> | |||
<Compile Include="Properties\AssemblyInfo.cs" /> | |||
<EmbeddedResource Include="Cal.resx"> | |||
<DependentUpon>Cal.cs</DependentUpon> | |||
</EmbeddedResource> | |||
<EmbeddedResource Include="RecordingControl.resx"> | |||
<DependentUpon>RecordingControl.cs</DependentUpon> | |||
</EmbeddedResource> | |||
<EmbeddedResource Include="Properties\Resources.resx"> | |||
<Generator>PublicResXFileCodeGenerator</Generator> | |||
<LastGenOutput>Resources.Designer.cs</LastGenOutput> | |||
<SubType>Designer</SubType> | |||
</EmbeddedResource> | |||
<Compile Include="Properties\Resources.Designer.cs"> | |||
<AutoGen>True</AutoGen> | |||
<DependentUpon>Resources.resx</DependentUpon> | |||
<DesignTime>True</DesignTime> | |||
</Compile> | |||
<None Include="Cals1_TemporaryKey.pfx" /> | |||
<None Include="packages.config" /> | |||
<None Include="Properties\Settings.settings"> | |||
<Generator>SettingsSingleFileGenerator</Generator> | |||
<LastGenOutput>Settings.Designer.cs</LastGenOutput> | |||
</None> | |||
<Compile Include="Properties\Settings.Designer.cs"> | |||
<AutoGen>True</AutoGen> | |||
<DependentUpon>Settings.settings</DependentUpon> | |||
<DesignTimeSharedInput>True</DesignTimeSharedInput> | |||
</Compile> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<None Include="App.config" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<BootstrapperPackage Include=".NETFramework,Version=v4.5.2"> | |||
<Visible>False</Visible> | |||
<ProductName>Microsoft .NET Framework 4.5.2 %28x86 and x64%29</ProductName> | |||
<Install>true</Install> | |||
</BootstrapperPackage> | |||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1"> | |||
<Visible>False</Visible> | |||
<ProductName>.NET Framework 3.5 SP1</ProductName> | |||
<Install>false</Install> | |||
</BootstrapperPackage> | |||
</ItemGroup> | |||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | |||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. | |||
Other similar extension points exist, see Microsoft.Common.targets. | |||
<Target Name="BeforeBuild"> | |||
</Target> | |||
<Target Name="AfterBuild"> | |||
</Target> | |||
--> | |||
</Project> |
@ -0,0 +1,17 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |||
<PropertyGroup> | |||
<ProjectView>ShowAllFiles</ProjectView> | |||
<PublishUrlHistory /> | |||
<InstallUrlHistory /> | |||
<SupportUrlHistory /> | |||
<UpdateUrlHistory /> | |||
<BootstrapperUrlHistory /> | |||
<ErrorReportUrlHistory /> | |||
<FallbackCulture>en-US</FallbackCulture> | |||
<VerifyUploadedFiles>false</VerifyUploadedFiles> | |||
</PropertyGroup> | |||
<PropertyGroup> | |||
<EnableSecurityDebugging>false</EnableSecurityDebugging> | |||
</PropertyGroup> | |||
</Project> |
@ -0,0 +1,91 @@ | |||
//using System; | |||
//public void averageCalData(FileStream fileStream, UInt32[] average) | |||
//{ | |||
// int i = 0; | |||
// int j = 0; | |||
// UInt32[] s = new UInt32[8]; | |||
// UInt32[] total = new UInt32[8]; | |||
// Byte[] buffer = new Byte[131072]; //128k Recieve Buffer | |||
// UInt32 samplePtr = 32; // We start with the first sample, header is 32 bytes | |||
// int toRead = buffer.Length; | |||
// inLength = fileStream.Read(buffer, totalRead, toRead); | |||
// for (i = 0; i < 8; i++) | |||
// { | |||
// total[i] = 0; | |||
// s[i] = 0; | |||
// average[i] = 0; | |||
// } | |||
// for (i = 0; i < 100; i++) | |||
// { | |||
// for (j = 0; j < 8; j++) | |||
// { | |||
// s[j] = (UInt32)buffer[samplePtr]; | |||
// s[j] |= ((UInt32)buffer[samplePtr + 1] << 8) & 0x00FF00; | |||
// s[j] |= ((UInt32)buffer[samplePtr + 2] << 16) & 0x00FF0000; | |||
// samplePtr += 4; | |||
// total[j] += s[j]; | |||
// } | |||
// } | |||
// for (i = 0; i < 8; i++) | |||
// { | |||
// average[i] = total[i] / 100; | |||
// } | |||
//} | |||
//public void CalibrationCalculate() | |||
//{ | |||
// int i; | |||
// double ma = new double[8]; | |||
// double[] ma = new double[8]; | |||
// UInt32[] b = new UInt32[8]; | |||
// UInt32[] average_5v = new UInt32[8]; | |||
// UInt32[] average_0v = new UInt32[8]; | |||
// UInt32[] b = new double[8]; | |||
// string ZeroVFileName = @"C:\ERPSData\0V_board1_binrecord06302018201157.bin"; | |||
// string FiveVFileName = @"C:\ERPSData\5v_board1_binrecord06302018202901.bin"; | |||
// string calFile = @"C:\ERPSData\goldenCal.dat"; | |||
// var ZeroVStream = new FileStream(ZeroVFileName, FileMode.Open); | |||
// var FiveVStream = new FileStream(FiveVFileName, FileMode.Open); | |||
// var OutFile = new FileStream(calFile, FileMode.Create, FileAccess.Write); | |||
// averageCalData(FiveVStream, average_5v); | |||
// averageCalData(ZeroVStream, average_0v); | |||
// for (i = 0; i < 8; i++) | |||
// { | |||
// // y = mx + b | |||
// //ma = (yH - yL) / (xH - xL) | |||
// if (average_0v[i] & 0x800000) | |||
// { | |||
// ma[i] = (double)(average_5v[i] - (average_0v[i] - 0xFFFFFF)) / 0x7FFFFF; | |||
// } | |||
// else | |||
// ma[i] = (double)(average_5v[i] - average_0v[i]) / 0x7FFFFF; | |||
// if (average_0v[i] & 0x800000) | |||
// { | |||
// (average_0v[i] - 0xFFFFFF) * ma[i]; | |||
// } | |||
// else | |||
// b[i] = average_0v[i] * ma[i]; | |||
// } | |||
// fprintf(write_fd, "%f %f %f %f %f %f %f %f \n", ma[0], ma[1], ma[2], ma[3], ma[4], ma[5], ma[6], ma[7]); | |||
// fprintf(write_fd, "%x %x %x %x %x %x %x %x \n", b[0], b[1], b[2], b[3], b[4], b[5], b[6], b[7]); | |||
// fclose((FILE*)read_5v_fd); | |||
// fclose((FILE*)read_0v_fd); | |||
// fclose((FILE*)write_fd); | |||
// } | |||
@ -0,0 +1,162 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
#if false | |||
//namespace ERPSClient | |||
//{ | |||
public class ERPSClient | |||
{ | |||
string ipAddr; | |||
Int32 port; | |||
public ERPSClient() | |||
{ | |||
//Client = null; | |||
ipAddr = string.Empty; | |||
port = 0; | |||
} | |||
public bool Connect(String ipAddr, Int32 port) | |||
{ | |||
if (this.Client != null) | |||
{ | |||
if (this.Client.Connected == true) | |||
{ | |||
this.Disconnect(); | |||
} | |||
} | |||
Client = new Socket(AddressFamily::InterNetwork, SocketType::Stream, ProtocolType::Tcp); | |||
IAsyncResult result = Client.BeginConnect(ipAddr, port, nullptr, nullptr); | |||
bool success = result.AsyncWaitHandle.WaitOne(5000, true); | |||
if (!success) | |||
{ | |||
return false; | |||
} | |||
Client.ReceiveTimeout = 0; | |||
this.ipAddr = ipAddr; | |||
this.port = port; | |||
return true; | |||
} | |||
public void Disconnect() | |||
{ | |||
if (this.Client == null) | |||
{ | |||
} | |||
else | |||
{ | |||
try | |||
{ | |||
this.ipAddr = ""; | |||
this.port = 0; | |||
if (this.Client.Connected) | |||
{ | |||
this.Client.Shutdown(SocketShutdown::Both); | |||
} | |||
this.Client.Close(); | |||
} | |||
catch //(...) | |||
{ | |||
} | |||
} | |||
} | |||
public bool IsConnected() | |||
{ | |||
return this.Client.Connected; | |||
} | |||
public String Query(String writeString) | |||
{ | |||
//System::Text::Encoding enc = System::Text::Encoding::ASCII; | |||
var writeData = enc.GetBytes(writeString + "\n"); | |||
var readData = new Byte[1024]; | |||
if (this.Client.Connected) | |||
{ | |||
Int32 bytesSent = this.Client.Send(writeData); | |||
Int32 bytesRec = this.Client.Receive(readData); | |||
return enc.GetString(readData, 0, bytesRec); | |||
} | |||
else | |||
{ | |||
throw new InvalidOperationException("TCPIP Socket not connected"); | |||
} | |||
} | |||
public void Write(String writeString) | |||
{ | |||
//System::Text::Encoding ^ enc = System::Text::Encoding::ASCII; | |||
if (this.Client.Connected) | |||
{ | |||
var writeData = enc.GetBytes(writeString + "\n"); | |||
Int32 bytesSent = this.Client.Send(writeData); | |||
} | |||
else | |||
{ | |||
throw new InvalidOperationException("Can not perform TCPIP Write because no connection exists."); | |||
} | |||
} | |||
public void WriteBinary(Byte[] dataToWrite) | |||
{ | |||
if (this.Client.Connected) | |||
{ | |||
Int32 sTimeout = this.Client.SendTimeout; | |||
this.Client.SendTimeout = 0; | |||
UInt32 bytesSent = (UInt32)(this.Client.Send(dataToWrite)); | |||
this.Client.SendTimeout = sTimeout; | |||
} | |||
else | |||
{ | |||
throw new InvalidOperationException("Can not perform TCPIP WriteBinary because no connection exists."); | |||
} | |||
} | |||
public Byte[] ReadBinary(Int32 numBytes) | |||
{ | |||
Byte[] readData = new Byte[numBytes]; | |||
Int32 bytesRec = 0; | |||
Int32 bytesLeft = numBytes; | |||
if (this.Client.Connected) | |||
{ | |||
do | |||
{ | |||
bytesRec += this.client.Receive(readData, bytesRec, bytesLeft - bytesRec, SocketFlags::None); | |||
} while (bytesRec < numBytes); | |||
} | |||
else | |||
{ | |||
throw new InvalidOperationException("TCPIP Socket not connected"); | |||
} | |||
return readData; | |||
} | |||
public String Read() | |||
{ | |||
if (this.Client.Connected) | |||
{ | |||
//System::Text::Encoding enc = System::Text::Encoding::ASCII; | |||
var writeData = new Byte[1024]; | |||
Int32 bytesRec = this.Client.Receive(readData); | |||
return enc.GetString(readData, 0, bytesRec); | |||
} | |||
else | |||
{ | |||
throw new InvalidOperationException("Can not perform TCPIP read because no connection exists."); | |||
} | |||
} | |||
} | |||
#endif |
@ -0,0 +1,27 @@ | |||
| |||
Microsoft Visual Studio Solution File, Format Version 12.00 | |||
# Visual Studio 14 | |||
VisualStudioVersion = 14.0.25420.1 | |||
MinimumVisualStudioVersion = 10.0.40219.1 | |||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cals1", "WindowsFormsApplication1\Cals1.csproj", "{F32A713A-7169-4F43-B254-5445BDB53597}" | |||
EndProject | |||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{CA5E9AB4-00F7-4C56-86BC-67FC96B12C5D}" | |||
ProjectSection(SolutionItems) = preProject | |||
Class1.cs = Class1.cs | |||
EndProjectSection | |||
EndProject | |||
Global | |||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | |||
Debug|Any CPU = Debug|Any CPU | |||
Release|Any CPU = Release|Any CPU | |||
EndGlobalSection | |||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | |||
{F32A713A-7169-4F43-B254-5445BDB53597}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | |||
{F32A713A-7169-4F43-B254-5445BDB53597}.Debug|Any CPU.Build.0 = Debug|Any CPU | |||
{F32A713A-7169-4F43-B254-5445BDB53597}.Release|Any CPU.ActiveCfg = Release|Any CPU | |||
{F32A713A-7169-4F43-B254-5445BDB53597}.Release|Any CPU.Build.0 = Release|Any CPU | |||
EndGlobalSection | |||
GlobalSection(SolutionProperties) = preSolution | |||
HideSolutionNode = FALSE | |||
EndGlobalSection | |||
EndGlobal |
@ -0,0 +1,23 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Threading.Tasks; | |||
using System.Windows.Forms; | |||
namespace WindowsFormsApplication1 | |||
{ | |||
static class Program | |||
{ | |||
/// <summary> | |||
/// The main entry point for the application. | |||
/// </summary> | |||
[STAThread] | |||
static void Main() | |||
{ | |||
Application.EnableVisualStyles(); | |||
Application.SetCompatibleTextRenderingDefault(false); | |||
// Application.Run(new Cals()); | |||
Application.Run(new RecordingControl()); | |||
} | |||
} | |||
} |
@ -0,0 +1,36 @@ | |||
using System.Reflection; | |||
using System.Runtime.CompilerServices; | |||
using System.Runtime.InteropServices; | |||
// General Information about an assembly is controlled through the following | |||
// set of attributes. Change these attribute values to modify the information | |||
// associated with an assembly. | |||
[assembly: AssemblyTitle("WindowsFormsApplication1")] | |||
[assembly: AssemblyDescription("")] | |||
[assembly: AssemblyConfiguration("")] | |||
[assembly: AssemblyCompany("Microsoft")] | |||
[assembly: AssemblyProduct("WindowsFormsApplication1")] | |||
[assembly: AssemblyCopyright("Copyright © Microsoft 2018")] | |||
[assembly: AssemblyTrademark("")] | |||
[assembly: AssemblyCulture("")] | |||
// Setting ComVisible to false makes the types in this assembly not visible | |||
// to COM components. If you need to access a type in this assembly from | |||
// COM, set the ComVisible attribute to true on that type. | |||
[assembly: ComVisible(false)] | |||
// The following GUID is for the ID of the typelib if this project is exposed to COM | |||
[assembly: Guid("f32a713a-7169-4f43-b254-5445bdb53597")] | |||
// Version information for an assembly consists of the following four values: | |||
// | |||
// Major Version | |||
// Minor Version | |||
// Build Number | |||
// Revision | |||
// | |||
// You can specify all the values or you can default the Build and Revision Numbers | |||
// by using the '*' as shown below: | |||
// [assembly: AssemblyVersion("1.0.*")] | |||
[assembly: AssemblyVersion("1.0.0.0")] | |||
[assembly: AssemblyFileVersion("1.0.0.0")] |
@ -0,0 +1,81 @@ | |||
//------------------------------------------------------------------------------ | |||
// <auto-generated> | |||
// This code was generated by a tool. | |||
// Runtime Version:4.0.30319.42000 | |||
// | |||
// Changes to this file may cause incorrect behavior and will be lost if | |||
// the code is regenerated. | |||
// </auto-generated> | |||
//------------------------------------------------------------------------------ | |||
namespace WindowsFormsApplication1.Properties { | |||
using System; | |||
/// <summary> | |||
/// A strongly-typed resource class, for looking up localized strings, etc. | |||
/// </summary> | |||
// This class was auto-generated by the StronglyTypedResourceBuilder | |||
// class via a tool like ResGen or Visual Studio. | |||
// To add or remove a member, edit your .ResX file then rerun ResGen | |||
// with the /str option, or rebuild your VS project. | |||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] | |||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] | |||
public class Resources { | |||
private static global::System.Resources.ResourceManager resourceMan; | |||
private static global::System.Globalization.CultureInfo resourceCulture; | |||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] | |||
internal Resources() { | |||
} | |||
/// <summary> | |||
/// Returns the cached ResourceManager instance used by this class. | |||
/// </summary> | |||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | |||
public static global::System.Resources.ResourceManager ResourceManager { | |||
get { | |||
if (object.ReferenceEquals(resourceMan, null)) { | |||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WindowsFormsApplication1.Properties.Resources", typeof(Resources).Assembly); | |||
resourceMan = temp; | |||
} | |||
return resourceMan; | |||
} | |||
} | |||
/// <summary> | |||
/// Overrides the current thread's CurrentUICulture property for all | |||
/// resource lookups using this strongly typed resource class. | |||
/// </summary> | |||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | |||
public static global::System.Globalization.CultureInfo Culture { | |||
get { | |||
return resourceCulture; | |||
} | |||
set { | |||
resourceCulture = value; | |||
} | |||
} | |||
/// <summary> | |||
/// Looks up a localized string similar to 5 V Cal File. | |||
/// </summary> | |||
public static string label1 { | |||
get { | |||
return ResourceManager.GetString("label1", resourceCulture); | |||
} | |||
} | |||
/// <summary> | |||
/// Looks up a localized string similar to 5 V Cal File. | |||
/// </summary> | |||
public static string String1 { | |||
get { | |||
return ResourceManager.GetString("String1", resourceCulture); | |||
} | |||
} | |||
} | |||
} |
@ -0,0 +1,126 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<root> | |||
<!-- | |||
Microsoft ResX Schema | |||
Version 2.0 | |||
The primary goals of this format is to allow a simple XML format | |||
that is mostly human readable. The generation and parsing of the | |||
various data types are done through the TypeConverter classes | |||
associated with the data types. | |||
Example: | |||
... ado.net/XML headers & schema ... | |||
<resheader name="resmimetype">text/microsoft-resx</resheader> | |||
<resheader name="version">2.0</resheader> | |||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |||
<value>[base64 mime encoded serialized .NET Framework object]</value> | |||
</data> | |||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |||
<comment>This is a comment</comment> | |||
</data> | |||
There are any number of "resheader" rows that contain simple | |||
name/value pairs. | |||
Each data row contains a name, and value. The row also contains a | |||
type or mimetype. Type corresponds to a .NET class that support | |||
text/value conversion through the TypeConverter architecture. | |||
Classes that don't support this are serialized and stored with the | |||
mimetype set. | |||
The mimetype is used for serialized objects, and tells the | |||
ResXResourceReader how to depersist the object. This is currently not | |||
extensible. For a given mimetype the value must be set accordingly: | |||
Note - application/x-microsoft.net.object.binary.base64 is the format | |||
that the ResXResourceWriter will generate, however the reader can | |||
read any of the formats listed below. | |||
mimetype: application/x-microsoft.net.object.binary.base64 | |||
value : The object must be serialized with | |||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | |||
: and then encoded with base64 encoding. | |||
mimetype: application/x-microsoft.net.object.soap.base64 | |||
value : The object must be serialized with | |||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |||
: and then encoded with base64 encoding. | |||
mimetype: application/x-microsoft.net.object.bytearray.base64 | |||
value : The object must be serialized into a byte array | |||
: using a System.ComponentModel.TypeConverter | |||
: and then encoded with base64 encoding. | |||
--> | |||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | |||
<xsd:element name="root" msdata:IsDataSet="true"> | |||
<xsd:complexType> | |||
<xsd:choice maxOccurs="unbounded"> | |||
<xsd:element name="metadata"> | |||
<xsd:complexType> | |||
<xsd:sequence> | |||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> | |||
</xsd:sequence> | |||
<xsd:attribute name="name" use="required" type="xsd:string" /> | |||
<xsd:attribute name="type" type="xsd:string" /> | |||
<xsd:attribute name="mimetype" type="xsd:string" /> | |||
<xsd:attribute ref="xml:space" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
<xsd:element name="assembly"> | |||
<xsd:complexType> | |||
<xsd:attribute name="alias" type="xsd:string" /> | |||
<xsd:attribute name="name" type="xsd:string" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
<xsd:element name="data"> | |||
<xsd:complexType> | |||
<xsd:sequence> | |||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |||
</xsd:sequence> | |||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | |||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |||
<xsd:attribute ref="xml:space" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
<xsd:element name="resheader"> | |||
<xsd:complexType> | |||
<xsd:sequence> | |||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
</xsd:sequence> | |||
<xsd:attribute name="name" type="xsd:string" use="required" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
</xsd:choice> | |||
</xsd:complexType> | |||
</xsd:element> | |||
</xsd:schema> | |||
<resheader name="resmimetype"> | |||
<value>text/microsoft-resx</value> | |||
</resheader> | |||
<resheader name="version"> | |||
<value>2.0</value> | |||
</resheader> | |||
<resheader name="reader"> | |||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
</resheader> | |||
<resheader name="writer"> | |||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
</resheader> | |||
<data name="label1" xml:space="preserve"> | |||
<value>5 V Cal File</value> | |||
</data> | |||
<data name="String1" xml:space="preserve"> | |||
<value>5 V Cal File</value> | |||
</data> | |||
</root> |
@ -0,0 +1,30 @@ | |||
//------------------------------------------------------------------------------ | |||
// <auto-generated> | |||
// This code was generated by a tool. | |||
// Runtime Version:4.0.30319.42000 | |||
// | |||
// Changes to this file may cause incorrect behavior and will be lost if | |||
// the code is regenerated. | |||
// </auto-generated> | |||
//------------------------------------------------------------------------------ | |||
namespace WindowsFormsApplication1.Properties | |||
{ | |||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] | |||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] | |||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase | |||
{ | |||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); | |||
public static Settings Default | |||
{ | |||
get | |||
{ | |||
return defaultInstance; | |||
} | |||
} | |||
} | |||
} |
@ -0,0 +1,7 @@ | |||
<?xml version='1.0' encoding='utf-8'?> | |||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)"> | |||
<Profiles> | |||
<Profile Name="(Default)" /> | |||
</Profiles> | |||
<Settings /> | |||
</SettingsFile> |
@ -0,0 +1,126 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<root> | |||
<!-- | |||
Microsoft ResX Schema | |||
Version 2.0 | |||
The primary goals of this format is to allow a simple XML format | |||
that is mostly human readable. The generation and parsing of the | |||
various data types are done through the TypeConverter classes | |||
associated with the data types. | |||
Example: | |||
... ado.net/XML headers & schema ... | |||
<resheader name="resmimetype">text/microsoft-resx</resheader> | |||
<resheader name="version">2.0</resheader> | |||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |||
<value>[base64 mime encoded serialized .NET Framework object]</value> | |||
</data> | |||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |||
<comment>This is a comment</comment> | |||
</data> | |||
There are any number of "resheader" rows that contain simple | |||
name/value pairs. | |||
Each data row contains a name, and value. The row also contains a | |||
type or mimetype. Type corresponds to a .NET class that support | |||
text/value conversion through the TypeConverter architecture. | |||
Classes that don't support this are serialized and stored with the | |||
mimetype set. | |||
The mimetype is used for serialized objects, and tells the | |||
ResXResourceReader how to depersist the object. This is currently not | |||
extensible. For a given mimetype the value must be set accordingly: | |||
Note - application/x-microsoft.net.object.binary.base64 is the format | |||
that the ResXResourceWriter will generate, however the reader can | |||
read any of the formats listed below. | |||
mimetype: application/x-microsoft.net.object.binary.base64 | |||
value : The object must be serialized with | |||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | |||
: and then encoded with base64 encoding. | |||
mimetype: application/x-microsoft.net.object.soap.base64 | |||
value : The object must be serialized with | |||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |||
: and then encoded with base64 encoding. | |||
mimetype: application/x-microsoft.net.object.bytearray.base64 | |||
value : The object must be serialized into a byte array | |||
: using a System.ComponentModel.TypeConverter | |||
: and then encoded with base64 encoding. | |||
--> | |||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | |||
<xsd:element name="root" msdata:IsDataSet="true"> | |||
<xsd:complexType> | |||
<xsd:choice maxOccurs="unbounded"> | |||
<xsd:element name="metadata"> | |||
<xsd:complexType> | |||
<xsd:sequence> | |||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> | |||
</xsd:sequence> | |||
<xsd:attribute name="name" use="required" type="xsd:string" /> | |||
<xsd:attribute name="type" type="xsd:string" /> | |||
<xsd:attribute name="mimetype" type="xsd:string" /> | |||
<xsd:attribute ref="xml:space" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
<xsd:element name="assembly"> | |||
<xsd:complexType> | |||
<xsd:attribute name="alias" type="xsd:string" /> | |||
<xsd:attribute name="name" type="xsd:string" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
<xsd:element name="data"> | |||
<xsd:complexType> | |||
<xsd:sequence> | |||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |||
</xsd:sequence> | |||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | |||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |||
<xsd:attribute ref="xml:space" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
<xsd:element name="resheader"> | |||
<xsd:complexType> | |||
<xsd:sequence> | |||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
</xsd:sequence> | |||
<xsd:attribute name="name" type="xsd:string" use="required" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
</xsd:choice> | |||
</xsd:complexType> | |||
</xsd:element> | |||
</xsd:schema> | |||
<resheader name="resmimetype"> | |||
<value>text/microsoft-resx</value> | |||
</resheader> | |||
<resheader name="version"> | |||
<value>2.0</value> | |||
</resheader> | |||
<resheader name="reader"> | |||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
</resheader> | |||
<resheader name="writer"> | |||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
</resheader> | |||
<metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | |||
<value>17, 17</value> | |||
</metadata> | |||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
<value>32</value> | |||
</metadata> | |||
</root> |
@ -0,0 +1,35 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
using System.Net.Sockets; | |||
namespace WindowsFormsApplication1 | |||
{ | |||
class SocketHelper | |||
{ | |||
TcpClient mscClient; | |||
string mstrMessage; | |||
string mstrResponse; | |||
byte[] bytesSent; | |||
public void processMsg(TcpClient client, NetworkStream stream, byte[] bytesReceived) | |||
{ | |||
// Handle the message received and | |||
// send a response back to the client. | |||
mstrMessage = Encoding.ASCII.GetString(bytesReceived, 0, bytesReceived.Length); | |||
mscClient = client; | |||
mstrMessage = mstrMessage.Substring(0, 5); | |||
if (mstrMessage.Equals("Hello")) | |||
{ | |||
mstrResponse = "Goodbye"; | |||
} | |||
else | |||
{ | |||
mstrResponse = "What?"; | |||
} | |||
bytesSent = Encoding.ASCII.GetBytes(mstrResponse); | |||
stream.Write(bytesSent, 0, bytesSent.Length); | |||
} | |||
} | |||
} |
@ -0,0 +1,6 @@ | |||
<stylecopresultscache> | |||
<version>12</version> | |||
<project key="780630672"> | |||
<configuration>DEBUG;TRACE</configuration> | |||
</project> | |||
</stylecopresultscache> |
@ -0,0 +1,6 @@ | |||
<?xml version="1.0" encoding="utf-8" ?> | |||
<configuration> | |||
<startup> | |||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" /> | |||
</startup> | |||
</configuration> |
@ -0,0 +1,447 @@ | |||
namespace WindowsFormsApplication1 | |||
{ | |||
partial class Cals | |||
{ | |||
/// <summary> | |||
/// Required designer variable. | |||
/// </summary> | |||
private System.ComponentModel.IContainer components = null; | |||
/// <summary> | |||
/// Clean up any resources being used. | |||
/// </summary> | |||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> | |||
protected override void Dispose(bool disposing) | |||
{ | |||
if (disposing && (components != null)) | |||
{ | |||
components.Dispose(); | |||
} | |||
base.Dispose(disposing); | |||
} | |||
#region Windows Form Designer generated code | |||
/// <summary> | |||
/// Required method for Designer support - do not modify | |||
/// the contents of this method with the code editor. | |||
/// </summary> | |||
private void InitializeComponent() | |||
{ | |||
this.CalLabel1 = new System.Windows.Forms.Label(); | |||
this.FiveVoltCalFileTextBox = new System.Windows.Forms.TextBox(); | |||
this.CalLabel2 = new System.Windows.Forms.Label(); | |||
this.CalLlabel3 = new System.Windows.Forms.Label(); | |||
this.ZeroVoltCalFileTextBox = new System.Windows.Forms.TextBox(); | |||
this.CalResultsFileTextBox = new System.Windows.Forms.TextBox(); | |||
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); | |||
this.Channel8Label = new System.Windows.Forms.Label(); | |||
this.Channel7Label = new System.Windows.Forms.Label(); | |||
this.Channel6Label = new System.Windows.Forms.Label(); | |||
this.Channel5Label = new System.Windows.Forms.Label(); | |||
this.Channel4Label = new System.Windows.Forms.Label(); | |||
this.Channel3Label = new System.Windows.Forms.Label(); | |||
this.Channel2Label = new System.Windows.Forms.Label(); | |||
this.Channel1Label = new System.Windows.Forms.Label(); | |||
this.label2 = new System.Windows.Forms.Label(); | |||
this.label3 = new System.Windows.Forms.Label(); | |||
this.FiveVActualTextBox = new System.Windows.Forms.TextBox(); | |||
this.FiveVReference = new System.Windows.Forms.Label(); | |||
this.RunCalButton = new System.Windows.Forms.Button(); | |||
this.QuadARadioButton = new System.Windows.Forms.RadioButton(); | |||
this.QuadBRadioButton = new System.Windows.Forms.RadioButton(); | |||
this.QuadCRadioButton = new System.Windows.Forms.RadioButton(); | |||
this.QuadDRadioButton = new System.Windows.Forms.RadioButton(); | |||
this.groupBox1 = new System.Windows.Forms.GroupBox(); | |||
this.tableLayoutPanel1.SuspendLayout(); | |||
this.groupBox1.SuspendLayout(); | |||
this.SuspendLayout(); | |||
// | |||
// CalLabel1 | |||
// | |||
this.CalLabel1.AutoSize = true; | |||
this.CalLabel1.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.CalLabel1.Location = new System.Drawing.Point(34, 26); | |||
this.CalLabel1.Name = "CalLabel1"; | |||
this.CalLabel1.Size = new System.Drawing.Size(86, 17); | |||
this.CalLabel1.TabIndex = 0; | |||
this.CalLabel1.Text = "5V Cal File"; | |||
this.CalLabel1.Click += new System.EventHandler(this.label1_Click); | |||
// | |||
// FiveVoltCalFileTextBox | |||
// | |||
this.FiveVoltCalFileTextBox.Location = new System.Drawing.Point(161, 21); | |||
this.FiveVoltCalFileTextBox.Name = "FiveVoltCalFileTextBox"; | |||
this.FiveVoltCalFileTextBox.Size = new System.Drawing.Size(380, 22); | |||
this.FiveVoltCalFileTextBox.TabIndex = 1; | |||
this.FiveVoltCalFileTextBox.TextChanged += new System.EventHandler(this.FiveVoltCalFileTextBox_TextChanged); | |||
// | |||
// CalLabel2 | |||
// | |||
this.CalLabel2.AutoSize = true; | |||
this.CalLabel2.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.CalLabel2.Location = new System.Drawing.Point(34, 97); | |||
this.CalLabel2.Name = "CalLabel2"; | |||
this.CalLabel2.Size = new System.Drawing.Size(86, 17); | |||
this.CalLabel2.TabIndex = 2; | |||
this.CalLabel2.Text = "0V Cal File"; | |||
this.CalLabel2.Click += new System.EventHandler(this.label2_Click); | |||
// | |||
// CalLlabel3 | |||
// | |||
this.CalLlabel3.AutoSize = true; | |||
this.CalLlabel3.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.CalLlabel3.Location = new System.Drawing.Point(34, 174); | |||
this.CalLlabel3.Name = "CalLlabel3"; | |||
this.CalLlabel3.Size = new System.Drawing.Size(121, 17); | |||
this.CalLlabel3.TabIndex = 3; | |||
this.CalLlabel3.Text = "Cal Results File"; | |||
this.CalLlabel3.Click += new System.EventHandler(this.label3_Click); | |||
// | |||
// ZeroVoltCalFileTextBox | |||
// | |||
this.ZeroVoltCalFileTextBox.Location = new System.Drawing.Point(161, 92); | |||
this.ZeroVoltCalFileTextBox.Name = "ZeroVoltCalFileTextBox"; | |||
this.ZeroVoltCalFileTextBox.Size = new System.Drawing.Size(380, 22); | |||
this.ZeroVoltCalFileTextBox.TabIndex = 4; | |||
this.ZeroVoltCalFileTextBox.TextChanged += new System.EventHandler(this.ZeroVoltCalFileTextBox_TextChanged); | |||
// | |||
// CalResultsFileTextBox | |||
// | |||
this.CalResultsFileTextBox.Location = new System.Drawing.Point(161, 175); | |||
this.CalResultsFileTextBox.Name = "CalResultsFileTextBox"; | |||
this.CalResultsFileTextBox.Size = new System.Drawing.Size(380, 22); | |||
this.CalResultsFileTextBox.TabIndex = 5; | |||
this.CalResultsFileTextBox.TextChanged += new System.EventHandler(this.CalResultsFileTextBox_TextChanged); | |||
// | |||
// tableLayoutPanel1 | |||
// | |||
this.tableLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| System.Windows.Forms.AnchorStyles.Left) | |||
| System.Windows.Forms.AnchorStyles.Right))); | |||
this.tableLayoutPanel1.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.InsetDouble; | |||
this.tableLayoutPanel1.ColumnCount = 9; | |||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F)); | |||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F)); | |||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F)); | |||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F)); | |||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F)); | |||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F)); | |||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F)); | |||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F)); | |||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F)); | |||
this.tableLayoutPanel1.Controls.Add(this.Channel8Label, 8, 0); | |||
this.tableLayoutPanel1.Controls.Add(this.Channel7Label, 7, 0); | |||
this.tableLayoutPanel1.Controls.Add(this.Channel6Label, 6, 0); | |||
this.tableLayoutPanel1.Controls.Add(this.Channel5Label, 5, 0); | |||
this.tableLayoutPanel1.Controls.Add(this.Channel4Label, 4, 0); | |||
this.tableLayoutPanel1.Controls.Add(this.Channel3Label, 3, 0); | |||
this.tableLayoutPanel1.Controls.Add(this.Channel2Label, 2, 0); | |||
this.tableLayoutPanel1.Controls.Add(this.Channel1Label, 1, 0); | |||
this.tableLayoutPanel1.Controls.Add(this.label2, 0, 1); | |||
this.tableLayoutPanel1.Controls.Add(this.label3, 0, 2); | |||
this.tableLayoutPanel1.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.tableLayoutPanel1.Location = new System.Drawing.Point(25, 261); | |||
this.tableLayoutPanel1.Name = "tableLayoutPanel1"; | |||
this.tableLayoutPanel1.RowCount = 3; | |||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F)); | |||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F)); | |||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F)); | |||
this.tableLayoutPanel1.Size = new System.Drawing.Size(822, 112); | |||
this.tableLayoutPanel1.TabIndex = 6; | |||
this.tableLayoutPanel1.Paint += new System.Windows.Forms.PaintEventHandler(this.tableLayoutPanel1_Paint); | |||
// | |||
// Channel8Label | |||
// | |||
this.Channel8Label.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| System.Windows.Forms.AnchorStyles.Left) | |||
| System.Windows.Forms.AnchorStyles.Right))); | |||
this.Channel8Label.AutoSize = true; | |||
this.Channel8Label.Location = new System.Drawing.Point(734, 3); | |||
this.Channel8Label.Name = "Channel8Label"; | |||
this.Channel8Label.Size = new System.Drawing.Size(82, 33); | |||
this.Channel8Label.TabIndex = 7; | |||
this.Channel8Label.Text = "Channel 8"; | |||
this.Channel8Label.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
this.Channel8Label.Click += new System.EventHandler(this.label8_Click); | |||
// | |||
// Channel7Label | |||
// | |||
this.Channel7Label.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| System.Windows.Forms.AnchorStyles.Left) | |||
| System.Windows.Forms.AnchorStyles.Right))); | |||
this.Channel7Label.AutoSize = true; | |||
this.Channel7Label.Location = new System.Drawing.Point(643, 3); | |||
this.Channel7Label.Name = "Channel7Label"; | |||
this.Channel7Label.Size = new System.Drawing.Size(82, 33); | |||
this.Channel7Label.TabIndex = 6; | |||
this.Channel7Label.Text = "Channel 7"; | |||
this.Channel7Label.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
this.Channel7Label.Click += new System.EventHandler(this.label7_Click); | |||
// | |||
// Channel6Label | |||
// | |||
this.Channel6Label.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| System.Windows.Forms.AnchorStyles.Left) | |||
| System.Windows.Forms.AnchorStyles.Right))); | |||
this.Channel6Label.AutoSize = true; | |||
this.Channel6Label.Location = new System.Drawing.Point(552, 3); | |||
this.Channel6Label.Name = "Channel6Label"; | |||
this.Channel6Label.Size = new System.Drawing.Size(82, 33); | |||
this.Channel6Label.TabIndex = 5; | |||
this.Channel6Label.Text = "Channel 6"; | |||
this.Channel6Label.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
this.Channel6Label.Click += new System.EventHandler(this.label6_Click); | |||
// | |||
// Channel5Label | |||
// | |||
this.Channel5Label.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| System.Windows.Forms.AnchorStyles.Left) | |||
| System.Windows.Forms.AnchorStyles.Right))); | |||
this.Channel5Label.AutoSize = true; | |||
this.Channel5Label.Location = new System.Drawing.Point(461, 3); | |||
this.Channel5Label.Name = "Channel5Label"; | |||
this.Channel5Label.Size = new System.Drawing.Size(82, 33); | |||
this.Channel5Label.TabIndex = 4; | |||
this.Channel5Label.Text = "Channel 5"; | |||
this.Channel5Label.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
this.Channel5Label.Click += new System.EventHandler(this.label5_Click); | |||
// | |||
// Channel4Label | |||
// | |||
this.Channel4Label.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| System.Windows.Forms.AnchorStyles.Left) | |||
| System.Windows.Forms.AnchorStyles.Right))); | |||
this.Channel4Label.AutoSize = true; | |||
this.Channel4Label.Location = new System.Drawing.Point(370, 3); | |||
this.Channel4Label.Name = "Channel4Label"; | |||
this.Channel4Label.Size = new System.Drawing.Size(82, 33); | |||
this.Channel4Label.TabIndex = 3; | |||
this.Channel4Label.Text = "Channel 4"; | |||
this.Channel4Label.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
this.Channel4Label.Click += new System.EventHandler(this.label4_Click); | |||
// | |||
// Channel3Label | |||
// | |||
this.Channel3Label.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| System.Windows.Forms.AnchorStyles.Left) | |||
| System.Windows.Forms.AnchorStyles.Right))); | |||
this.Channel3Label.AutoSize = true; | |||
this.Channel3Label.Location = new System.Drawing.Point(279, 3); | |||
this.Channel3Label.Name = "Channel3Label"; | |||
this.Channel3Label.Size = new System.Drawing.Size(82, 33); | |||
this.Channel3Label.TabIndex = 2; | |||
this.Channel3Label.Text = "Channel 3"; | |||
this.Channel3Label.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
// | |||
// Channel2Label | |||
// | |||
this.Channel2Label.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| System.Windows.Forms.AnchorStyles.Left) | |||
| System.Windows.Forms.AnchorStyles.Right))); | |||
this.Channel2Label.AutoSize = true; | |||
this.Channel2Label.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.Channel2Label.Location = new System.Drawing.Point(188, 3); | |||
this.Channel2Label.Name = "Channel2Label"; | |||
this.Channel2Label.Size = new System.Drawing.Size(82, 33); | |||
this.Channel2Label.TabIndex = 1; | |||
this.Channel2Label.Text = "Channel 2"; | |||
this.Channel2Label.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
this.Channel2Label.Click += new System.EventHandler(this.label2_Click_1); | |||
// | |||
// Channel1Label | |||
// | |||
this.Channel1Label.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| System.Windows.Forms.AnchorStyles.Left) | |||
| System.Windows.Forms.AnchorStyles.Right))); | |||
this.Channel1Label.AutoSize = true; | |||
this.Channel1Label.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.Channel1Label.Location = new System.Drawing.Point(97, 3); | |||
this.Channel1Label.Name = "Channel1Label"; | |||
this.Channel1Label.Size = new System.Drawing.Size(82, 33); | |||
this.Channel1Label.TabIndex = 0; | |||
this.Channel1Label.Text = "Channel 1"; | |||
this.Channel1Label.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
this.Channel1Label.Click += new System.EventHandler(this.Channel1Label_Click); | |||
// | |||
// label2 | |||
// | |||
this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| System.Windows.Forms.AnchorStyles.Left) | |||
| System.Windows.Forms.AnchorStyles.Right))); | |||
this.label2.AutoSize = true; | |||
this.label2.Location = new System.Drawing.Point(6, 39); | |||
this.label2.Name = "label2"; | |||
this.label2.Size = new System.Drawing.Size(82, 33); | |||
this.label2.TabIndex = 8; | |||
this.label2.Text = "ma"; | |||
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
this.label2.Click += new System.EventHandler(this.label2_Click_2); | |||
// | |||
// label3 | |||
// | |||
this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |||
| System.Windows.Forms.AnchorStyles.Left) | |||
| System.Windows.Forms.AnchorStyles.Right))); | |||
this.label3.AutoSize = true; | |||
this.label3.Location = new System.Drawing.Point(6, 75); | |||
this.label3.Name = "label3"; | |||
this.label3.Size = new System.Drawing.Size(82, 34); | |||
this.label3.TabIndex = 9; | |||
this.label3.Text = "b"; | |||
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; | |||
this.label3.Click += new System.EventHandler(this.label3_Click_1); | |||
// | |||
// FiveVActualTextBox | |||
// | |||
this.FiveVActualTextBox.AcceptsTab = true; | |||
this.FiveVActualTextBox.Location = new System.Drawing.Point(741, 14); | |||
this.FiveVActualTextBox.Name = "FiveVActualTextBox"; | |||
this.FiveVActualTextBox.Size = new System.Drawing.Size(100, 22); | |||
this.FiveVActualTextBox.TabIndex = 8; | |||
this.FiveVActualTextBox.Text = "5.00000"; | |||
// | |||
// FiveVReference | |||
// | |||
this.FiveVReference.AutoSize = true; | |||
this.FiveVReference.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.FiveVReference.Location = new System.Drawing.Point(614, 26); | |||
this.FiveVReference.Name = "FiveVReference"; | |||
this.FiveVReference.Size = new System.Drawing.Size(124, 17); | |||
this.FiveVReference.TabIndex = 9; | |||
this.FiveVReference.Text = "5 V (Reference)"; | |||
// | |||
// RunCalButton | |||
// | |||
this.RunCalButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.RunCalButton.Location = new System.Drawing.Point(617, 64); | |||
this.RunCalButton.Name = "RunCalButton"; | |||
this.RunCalButton.Size = new System.Drawing.Size(145, 50); | |||
this.RunCalButton.TabIndex = 11; | |||
this.RunCalButton.Text = "Run Calibration"; | |||
this.RunCalButton.UseVisualStyleBackColor = true; | |||
this.RunCalButton.Click += new System.EventHandler(this.RunCalButton_Click); | |||
// | |||
// QuadARadioButton | |||
// | |||
this.QuadARadioButton.AutoSize = true; | |||
this.QuadARadioButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.QuadARadioButton.Location = new System.Drawing.Point(617, 142); | |||
this.QuadARadioButton.Name = "QuadARadioButton"; | |||
this.QuadARadioButton.Size = new System.Drawing.Size(83, 21); | |||
this.QuadARadioButton.TabIndex = 12; | |||
this.QuadARadioButton.Text = "Quad A"; | |||
this.QuadARadioButton.UseVisualStyleBackColor = true; | |||
this.QuadARadioButton.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged); | |||
// | |||
// QuadBRadioButton | |||
// | |||
this.QuadBRadioButton.AutoSize = true; | |||
this.QuadBRadioButton.Checked = true; | |||
this.QuadBRadioButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.QuadBRadioButton.Location = new System.Drawing.Point(617, 169); | |||
this.QuadBRadioButton.Name = "QuadBRadioButton"; | |||
this.QuadBRadioButton.Size = new System.Drawing.Size(83, 21); | |||
this.QuadBRadioButton.TabIndex = 13; | |||
this.QuadBRadioButton.TabStop = true; | |||
this.QuadBRadioButton.Text = "Quad B"; | |||
this.QuadBRadioButton.UseVisualStyleBackColor = true; | |||
this.QuadBRadioButton.CheckedChanged += new System.EventHandler(this.radioButton2_CheckedChanged); | |||
// | |||
// QuadCRadioButton | |||
// | |||
this.QuadCRadioButton.AutoSize = true; | |||
this.QuadCRadioButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.QuadCRadioButton.Location = new System.Drawing.Point(617, 197); | |||
this.QuadCRadioButton.Name = "QuadCRadioButton"; | |||
this.QuadCRadioButton.Size = new System.Drawing.Size(83, 21); | |||
this.QuadCRadioButton.TabIndex = 14; | |||
this.QuadCRadioButton.TabStop = true; | |||
this.QuadCRadioButton.Text = "Quad C"; | |||
this.QuadCRadioButton.UseVisualStyleBackColor = true; | |||
this.QuadCRadioButton.CheckedChanged += new System.EventHandler(this.radioButton3_CheckedChanged); | |||
// | |||
// QuadDRadioButton | |||
// | |||
this.QuadDRadioButton.AutoSize = true; | |||
this.QuadDRadioButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |||
this.QuadDRadioButton.Location = new System.Drawing.Point(616, 227); | |||
this.QuadDRadioButton.Name = "QuadDRadioButton"; | |||
this.QuadDRadioButton.Size = new System.Drawing.Size(84, 21); | |||
this.QuadDRadioButton.TabIndex = 15; | |||
this.QuadDRadioButton.TabStop = true; | |||
this.QuadDRadioButton.Text = "Quad D"; | |||
this.QuadDRadioButton.UseVisualStyleBackColor = true; | |||
this.QuadDRadioButton.CheckedChanged += new System.EventHandler(this.radioButton4_CheckedChanged); | |||
// | |||
// groupBox1 | |||
// | |||
this.groupBox1.Controls.Add(this.tableLayoutPanel1); | |||
this.groupBox1.Controls.Add(this.FiveVActualTextBox); | |||
this.groupBox1.Location = new System.Drawing.Point(12, 12); | |||
this.groupBox1.Name = "groupBox1"; | |||
this.groupBox1.Size = new System.Drawing.Size(899, 443); | |||
this.groupBox1.TabIndex = 16; | |||
this.groupBox1.TabStop = false; | |||
this.groupBox1.Enter += new System.EventHandler(this.groupBox1_Enter); | |||
// | |||
// Cals | |||
// | |||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); | |||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | |||
this.ClientSize = new System.Drawing.Size(1736, 765); | |||
this.Controls.Add(this.QuadDRadioButton); | |||
this.Controls.Add(this.QuadCRadioButton); | |||
this.Controls.Add(this.QuadBRadioButton); | |||
this.Controls.Add(this.QuadARadioButton); | |||
this.Controls.Add(this.RunCalButton); | |||
this.Controls.Add(this.FiveVReference); | |||
this.Controls.Add(this.CalResultsFileTextBox); | |||
this.Controls.Add(this.ZeroVoltCalFileTextBox); | |||
this.Controls.Add(this.CalLlabel3); | |||
this.Controls.Add(this.CalLabel2); | |||
this.Controls.Add(this.FiveVoltCalFileTextBox); | |||
this.Controls.Add(this.CalLabel1); | |||
this.Controls.Add(this.groupBox1); | |||
this.Name = "Cals"; | |||
this.Text = "Calibration Screen"; | |||
this.Load += new System.EventHandler(this.Calibration_Load); | |||
this.tableLayoutPanel1.ResumeLayout(false); | |||
this.tableLayoutPanel1.PerformLayout(); | |||
this.groupBox1.ResumeLayout(false); | |||
this.groupBox1.PerformLayout(); | |||
this.ResumeLayout(false); | |||
this.PerformLayout(); | |||
} | |||
#endregion | |||
private System.Windows.Forms.Label CalLabel1; | |||
private System.Windows.Forms.TextBox FiveVoltCalFileTextBox; | |||
private System.Windows.Forms.Label CalLabel2; | |||
private System.Windows.Forms.Label CalLlabel3; | |||
private System.Windows.Forms.TextBox ZeroVoltCalFileTextBox; | |||
private System.Windows.Forms.TextBox CalResultsFileTextBox; | |||
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; | |||
private System.Windows.Forms.Label Channel1Label; | |||
private System.Windows.Forms.Label Channel2Label; | |||
private System.Windows.Forms.Label Channel3Label; | |||
private System.Windows.Forms.Label Channel4Label; | |||
private System.Windows.Forms.Label Channel5Label; | |||
private System.Windows.Forms.Label Channel6Label; | |||
private System.Windows.Forms.Label Channel7Label; | |||
private System.Windows.Forms.Label Channel8Label; | |||
private System.Windows.Forms.TextBox FiveVActualTextBox; | |||
private System.Windows.Forms.Label FiveVReference; | |||
private System.Windows.Forms.Button RunCalButton; | |||
private System.Windows.Forms.RadioButton QuadARadioButton; | |||
private System.Windows.Forms.RadioButton QuadBRadioButton; | |||
private System.Windows.Forms.RadioButton QuadCRadioButton; | |||
private System.Windows.Forms.RadioButton QuadDRadioButton; | |||
private System.Windows.Forms.Label label2; | |||
private System.Windows.Forms.Label label3; | |||
private System.Windows.Forms.GroupBox groupBox1; | |||
} | |||
} | |||
@ -0,0 +1,140 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.ComponentModel; | |||
using System.Data; | |||
using System.Drawing; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
using System.Windows.Forms; | |||
namespace WindowsFormsApplication1 | |||
{ | |||
public partial class Cals : Form | |||
{ | |||
public Cals() | |||
{ | |||
InitializeComponent(); | |||
} | |||
private void label1_Click(object sender, EventArgs e) | |||
{ | |||
} | |||
private void Calibrate_CheckedChanged(object sender, EventArgs e) | |||
{ | |||
} | |||
private void label2_Click(object sender, EventArgs e) | |||
{ | |||
} | |||
private void label3_Click(object sender, EventArgs e) | |||
{ | |||
} | |||
private void label2_Click_1(object sender, EventArgs e) | |||
{ | |||
} | |||
private void label4_Click(object sender, EventArgs e) | |||
{ | |||
} | |||
private void label5_Click(object sender, EventArgs e) | |||
{ | |||
} | |||
private void label6_Click(object sender, EventArgs e) | |||
{ | |||
} | |||
private void label7_Click(object sender, EventArgs e) | |||
{ | |||
} | |||
private void label8_Click(object sender, EventArgs e) | |||
{ | |||
} | |||
private void Channel1Label_Click(object sender, EventArgs e) | |||
{ | |||
} | |||
private void Calibration_Load(object sender, EventArgs e) | |||
{ | |||
} | |||
private void radioButton1_CheckedChanged(object sender, EventArgs e) | |||
{ | |||
} | |||
private void radioButton3_CheckedChanged(object sender, EventArgs e) | |||
{ | |||
} | |||
private void radioButton2_CheckedChanged(object sender, EventArgs e) | |||
{ | |||
} | |||
private void radioButton4_CheckedChanged(object sender, EventArgs e) | |||
{ | |||
} | |||
private void label2_Click_2(object sender, EventArgs e) | |||
{ | |||
} | |||
private void ZeroVoltCalFileTextBox_TextChanged(object sender, EventArgs e) | |||
{ | |||
} | |||
private void FiveVoltCalFileTextBox_TextChanged(object sender, EventArgs e) | |||
{ | |||
} | |||
private void label3_Click_1(object sender, EventArgs e) | |||
{ | |||
} | |||
private void tableLayoutPanel1_Paint(object sender, PaintEventArgs e) | |||
{ | |||
} | |||
private void RunCalButton_Click(object sender, EventArgs e) | |||
{ | |||
} | |||
private void CalResultsFileTextBox_TextChanged(object sender, EventArgs e) | |||
{ | |||
} | |||
private void groupBox1_Enter(object sender, EventArgs e) | |||
{ | |||
} | |||
} | |||
} |
@ -0,0 +1,123 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<root> | |||
<!-- | |||
Microsoft ResX Schema | |||
Version 2.0 | |||
The primary goals of this format is to allow a simple XML format | |||
that is mostly human readable. The generation and parsing of the | |||
various data types are done through the TypeConverter classes | |||
associated with the data types. | |||
Example: | |||
... ado.net/XML headers & schema ... | |||
<resheader name="resmimetype">text/microsoft-resx</resheader> | |||
<resheader name="version">2.0</resheader> | |||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |||
<value>[base64 mime encoded serialized .NET Framework object]</value> | |||
</data> | |||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |||
<comment>This is a comment</comment> | |||
</data> | |||
There are any number of "resheader" rows that contain simple | |||
name/value pairs. | |||
Each data row contains a name, and value. The row also contains a | |||
type or mimetype. Type corresponds to a .NET class that support | |||
text/value conversion through the TypeConverter architecture. | |||
Classes that don't support this are serialized and stored with the | |||
mimetype set. | |||
The mimetype is used for serialized objects, and tells the | |||
ResXResourceReader how to depersist the object. This is currently not | |||
extensible. For a given mimetype the value must be set accordingly: | |||
Note - application/x-microsoft.net.object.binary.base64 is the format | |||
that the ResXResourceWriter will generate, however the reader can | |||
read any of the formats listed below. | |||
mimetype: application/x-microsoft.net.object.binary.base64 | |||
value : The object must be serialized with | |||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | |||
: and then encoded with base64 encoding. | |||
mimetype: application/x-microsoft.net.object.soap.base64 | |||
value : The object must be serialized with | |||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |||
: and then encoded with base64 encoding. | |||
mimetype: application/x-microsoft.net.object.bytearray.base64 | |||
value : The object must be serialized into a byte array | |||
: using a System.ComponentModel.TypeConverter | |||
: and then encoded with base64 encoding. | |||
--> | |||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | |||
<xsd:element name="root" msdata:IsDataSet="true"> | |||
<xsd:complexType> | |||
<xsd:choice maxOccurs="unbounded"> | |||
<xsd:element name="metadata"> | |||
<xsd:complexType> | |||
<xsd:sequence> | |||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> | |||
</xsd:sequence> | |||
<xsd:attribute name="name" use="required" type="xsd:string" /> | |||
<xsd:attribute name="type" type="xsd:string" /> | |||
<xsd:attribute name="mimetype" type="xsd:string" /> | |||
<xsd:attribute ref="xml:space" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
<xsd:element name="assembly"> | |||
<xsd:complexType> | |||
<xsd:attribute name="alias" type="xsd:string" /> | |||
<xsd:attribute name="name" type="xsd:string" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
<xsd:element name="data"> | |||
<xsd:complexType> | |||
<xsd:sequence> | |||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |||
</xsd:sequence> | |||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | |||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |||
<xsd:attribute ref="xml:space" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
<xsd:element name="resheader"> | |||
<xsd:complexType> | |||
<xsd:sequence> | |||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
</xsd:sequence> | |||
<xsd:attribute name="name" type="xsd:string" use="required" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
</xsd:choice> | |||
</xsd:complexType> | |||
</xsd:element> | |||
</xsd:schema> | |||
<resheader name="resmimetype"> | |||
<value>text/microsoft-resx</value> | |||
</resheader> | |||
<resheader name="version"> | |||
<value>2.0</value> | |||
</resheader> | |||
<resheader name="reader"> | |||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
</resheader> | |||
<resheader name="writer"> | |||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
</resheader> | |||
<metadata name="tableLayoutPanel1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
<value>True</value> | |||
</metadata> | |||
</root> |
@ -0,0 +1,147 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | |||
<PropertyGroup> | |||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | |||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | |||
<ProjectGuid>{F32A713A-7169-4F43-B254-5445BDB53597}</ProjectGuid> | |||
<OutputType>WinExe</OutputType> | |||
<AppDesignerFolder>Properties</AppDesignerFolder> | |||
<RootNamespace>WindowsFormsApplication1</RootNamespace> | |||
<AssemblyName>WindowsFormsApplication1</AssemblyName> | |||
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion> | |||
<FileAlignment>512</FileAlignment> | |||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> | |||
<IsWebBootstrapper>false</IsWebBootstrapper> | |||
<PublishUrl>C:\Users\dlewis4\Documents\beaglebone\Release\</PublishUrl> | |||
<Install>true</Install> | |||
<InstallFrom>Disk</InstallFrom> | |||
<UpdateEnabled>false</UpdateEnabled> | |||
<UpdateMode>Foreground</UpdateMode> | |||
<UpdateInterval>7</UpdateInterval> | |||
<UpdateIntervalUnits>Days</UpdateIntervalUnits> | |||
<UpdatePeriodically>false</UpdatePeriodically> | |||
<UpdateRequired>false</UpdateRequired> | |||
<MapFileExtensions>true</MapFileExtensions> | |||
<ApplicationRevision>2</ApplicationRevision> | |||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion> | |||
<UseApplicationTrust>false</UseApplicationTrust> | |||
<PublishWizardCompleted>true</PublishWizardCompleted> | |||
<BootstrapperEnabled>true</BootstrapperEnabled> | |||
</PropertyGroup> | |||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | |||
<PlatformTarget>AnyCPU</PlatformTarget> | |||
<DebugSymbols>true</DebugSymbols> | |||
<DebugType>full</DebugType> | |||
<Optimize>false</Optimize> | |||
<OutputPath>bin\Debug\</OutputPath> | |||
<DefineConstants>DEBUG;TRACE</DefineConstants> | |||
<ErrorReport>prompt</ErrorReport> | |||
<WarningLevel>4</WarningLevel> | |||
<UseVSHostingProcess>true</UseVSHostingProcess> | |||
</PropertyGroup> | |||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | |||
<PlatformTarget>AnyCPU</PlatformTarget> | |||
<DebugType>pdbonly</DebugType> | |||
<Optimize>true</Optimize> | |||
<OutputPath>bin\Release\</OutputPath> | |||
<DefineConstants>TRACE</DefineConstants> | |||
<ErrorReport>prompt</ErrorReport> | |||
<WarningLevel>4</WarningLevel> | |||
</PropertyGroup> | |||
<PropertyGroup> | |||
<ManifestCertificateThumbprint>DCDDE859845CB0BB1DB59E3040912DFA74E73799</ManifestCertificateThumbprint> | |||
</PropertyGroup> | |||
<PropertyGroup> | |||
<ManifestKeyFile>Cals1_TemporaryKey.pfx</ManifestKeyFile> | |||
</PropertyGroup> | |||
<PropertyGroup> | |||
<GenerateManifests>true</GenerateManifests> | |||
</PropertyGroup> | |||
<PropertyGroup> | |||
<SignManifests>true</SignManifests> | |||
</PropertyGroup> | |||
<ItemGroup> | |||
<Reference Include="System" /> | |||
<Reference Include="System.Core" /> | |||
<Reference Include="System.Windows.Forms.DataVisualization" /> | |||
<Reference Include="System.Xml.Linq" /> | |||
<Reference Include="System.Data.DataSetExtensions" /> | |||
<Reference Include="Microsoft.CSharp" /> | |||
<Reference Include="System.Data" /> | |||
<Reference Include="System.Deployment" /> | |||
<Reference Include="System.Drawing" /> | |||
<Reference Include="System.Net.Http" /> | |||
<Reference Include="System.Windows.Forms" /> | |||
<Reference Include="System.Xml" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<Compile Include="Cal.cs"> | |||
<SubType>Form</SubType> | |||
</Compile> | |||
<Compile Include="Cal.Designer.cs"> | |||
<DependentUpon>Cal.cs</DependentUpon> | |||
</Compile> | |||
<Compile Include="Class1.cs" /> | |||
<Compile Include="daqMsg.cs" /> | |||
<Compile Include="SocketHelper.cs" /> | |||
<Compile Include="ERPSClient.cs" /> | |||
<Compile Include="RecordingControl.cs"> | |||
<SubType>Form</SubType> | |||
</Compile> | |||
<Compile Include="RecordingControl.Designer.cs"> | |||
<DependentUpon>RecordingControl.cs</DependentUpon> | |||
</Compile> | |||
<Compile Include="Program.cs" /> | |||
<Compile Include="Properties\AssemblyInfo.cs" /> | |||
<EmbeddedResource Include="Cal.resx"> | |||
<DependentUpon>Cal.cs</DependentUpon> | |||
</EmbeddedResource> | |||
<EmbeddedResource Include="RecordingControl.resx"> | |||
<DependentUpon>RecordingControl.cs</DependentUpon> | |||
</EmbeddedResource> | |||
<EmbeddedResource Include="Properties\Resources.resx"> | |||
<Generator>PublicResXFileCodeGenerator</Generator> | |||
<LastGenOutput>Resources.Designer.cs</LastGenOutput> | |||
<SubType>Designer</SubType> | |||
</EmbeddedResource> | |||
<Compile Include="Properties\Resources.Designer.cs"> | |||
<AutoGen>True</AutoGen> | |||
<DependentUpon>Resources.resx</DependentUpon> | |||
<DesignTime>True</DesignTime> | |||
</Compile> | |||
<None Include="Cals1_TemporaryKey.pfx" /> | |||
<None Include="Properties\Settings.settings"> | |||
<Generator>SettingsSingleFileGenerator</Generator> | |||
<LastGenOutput>Settings.Designer.cs</LastGenOutput> | |||
</None> | |||
<Compile Include="Properties\Settings.Designer.cs"> | |||
<AutoGen>True</AutoGen> | |||
<DependentUpon>Settings.settings</DependentUpon> | |||
<DesignTimeSharedInput>True</DesignTimeSharedInput> | |||
</Compile> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<None Include="App.config" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<BootstrapperPackage Include=".NETFramework,Version=v4.5.2"> | |||
<Visible>False</Visible> | |||
<ProductName>Microsoft .NET Framework 4.5.2 %28x86 and x64%29</ProductName> | |||
<Install>true</Install> | |||
</BootstrapperPackage> | |||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1"> | |||
<Visible>False</Visible> | |||
<ProductName>.NET Framework 3.5 SP1</ProductName> | |||
<Install>false</Install> | |||
</BootstrapperPackage> | |||
</ItemGroup> | |||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | |||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. | |||
Other similar extension points exist, see Microsoft.Common.targets. | |||
<Target Name="BeforeBuild"> | |||
</Target> | |||
<Target Name="AfterBuild"> | |||
</Target> | |||
--> | |||
</Project> |
@ -0,0 +1,17 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |||
<PropertyGroup> | |||
<ProjectView>ShowAllFiles</ProjectView> | |||
<PublishUrlHistory /> | |||
<InstallUrlHistory /> | |||
<SupportUrlHistory /> | |||
<UpdateUrlHistory /> | |||
<BootstrapperUrlHistory /> | |||
<ErrorReportUrlHistory /> | |||
<FallbackCulture>en-US</FallbackCulture> | |||
<VerifyUploadedFiles>false</VerifyUploadedFiles> | |||
</PropertyGroup> | |||
<PropertyGroup> | |||
<EnableSecurityDebugging>false</EnableSecurityDebugging> | |||
</PropertyGroup> | |||
</Project> |
@ -0,0 +1,89 @@ | |||
//using System; | |||
//namespace Cals | |||
//{ | |||
//public void averageCalData(FileStream fileStream, UInt32[] average) | |||
//{ | |||
// int i = 0; | |||
// int j = 0; | |||
// UInt32[] s = new UInt32[8]; | |||
// UInt32[] total = new UInt32[8]; | |||
// Byte[] buffer = new Byte[131072]; //128k Recieve Buffer | |||
// UInt32 samplePtr = 32; // We start with the first sample, header is 32 bytes | |||
// int toRead = buffer.Length; | |||
// inLength = fileStream.Read(buffer, totalRead, toRead); | |||
// for (i = 0; i < 8; i++) | |||
// { | |||
// total[i] = 0; | |||
// s[i] = 0; | |||
// average[i] = 0; | |||
// } | |||
// for (i = 0; i < 100; i++) | |||
// { | |||
// for (j = 0; j < 8; j++) | |||
// { | |||
// s[j] = (UInt32)buffer[samplePtr]; | |||
// s[j] |= ((UInt32)buffer[samplePtr + 1] << 8) & 0x00FF00; | |||
// s[j] |= ((UInt32)buffer[samplePtr + 2] << 16) & 0x00FF0000; | |||
// samplePtr += +4; | |||
// total[j] += s[j]; | |||
// } | |||
// } | |||
// for (i = 0; i < 8; i++) | |||
// { | |||
// average[i] = total[i] / 100; | |||
// } | |||
//} | |||
//public void CalibrationCalculate() | |||
//{ | |||
// public double[] ma = new double[8]; | |||
// public UInt32[] b = new UInt32[8]; | |||
// public UInt32[] average_5v = new UInt32[8]; | |||
// public UInt32[] average_0v = new UInt32[8]; | |||
// public double ma = new double[8]; | |||
// public UInt32[] b = new double[8]; | |||
// int i; | |||
// string ZeroVFileName = @"C:\ERPSData\0V_board1_binrecord06302018201157.bin"; | |||
// string FiveVFileName = @"C:\ERPSData\5v_board1_binrecord06302018202901.bin"; | |||
// string calFile = @"C:\ERPSData\goldenCal.dat"; | |||
// var ZeroVStream = new FileStream(ZeroVFileName, FileMode.Open); | |||
// var FiveVStream = new FileStream(FiveVFileName, FileMode.Open); | |||
// var OutFile = new FileStream(calFile, FileMode.Create, FileAccess.Write); | |||
// averageCalData(FiveVStream, average_5v); | |||
// averageCalData(ZeroVStream, average_0v); | |||
// for (int i = 0; i < 8; i++) | |||
// { | |||
// // y = mx + b | |||
// //ma = (yH - yL) / (xH - xL) | |||
// if (average_0v[i] & 0x800000) | |||
// { | |||
// ma[i] = (double)(average_5v[i] - (average_0v[i] - 0xFFFFFF)) / 0x7FFFFF; | |||
// } | |||
// else | |||
// ma[i] = (double)(average_5v[i] - average_0v[i]) / 0x7FFFFF; | |||
// if (average_0v[i] & 0x800000) | |||
// { | |||
// (average_0v[i] - 0xFFFFFF) * ma[i]; | |||
// } | |||
// else | |||
// b[i] = average_0v[i] * ma[i]; | |||
// } | |||
// fprintf(write_fd, "%f %f %f %f %f %f %f %f \n", ma[0], ma[1], ma[2], ma[3], ma[4], ma[5], ma[6], ma[7]); | |||
// fprintf(write_fd, "%x %x %x %x %x %x %x %x \n", b[0], b[1], b[2], b[3], b[4], b[5], b[6], b[7]); | |||
// fclose((FILE*)read_5v_fd); | |||
// fclose((FILE*)read_0v_fd); | |||
// fclose((FILE*)write_fd); | |||
// } | |||
@ -0,0 +1,162 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
#if false | |||
//namespace ERPSClient | |||
//{ | |||
public class ERPSClient | |||
{ | |||
string ipAddr; | |||
Int32 port; | |||
public ERPSClient() | |||
{ | |||
//Client = null; | |||
ipAddr = string.Empty; | |||
port = 0; | |||
} | |||
public bool Connect(String ipAddr, Int32 port) | |||
{ | |||
if (this.Client != null) | |||
{ | |||
if (this.Client.Connected == true) | |||
{ | |||
this.Disconnect(); | |||
} | |||
} | |||
Client = new Socket(AddressFamily::InterNetwork, SocketType::Stream, ProtocolType::Tcp); | |||
IAsyncResult result = Client.BeginConnect(ipAddr, port, nullptr, nullptr); | |||
bool success = result.AsyncWaitHandle.WaitOne(5000, true); | |||
if (!success) | |||
{ | |||
return false; | |||
} | |||
Client.ReceiveTimeout = 0; | |||
this.ipAddr = ipAddr; | |||
this.port = port; | |||
return true; | |||
} | |||
public void Disconnect() | |||
{ | |||
if (this.Client == null) | |||
{ | |||
} | |||
else | |||
{ | |||
try | |||
{ | |||
this.ipAddr = ""; | |||
this.port = 0; | |||
if (this.Client.Connected) | |||
{ | |||
this.Client.Shutdown(SocketShutdown::Both); | |||
} | |||
this.Client.Close(); | |||
} | |||
catch //(...) | |||
{ | |||
} | |||
} | |||
} | |||
public bool IsConnected() | |||
{ | |||
return this.Client.Connected; | |||
} | |||
public String Query(String writeString) | |||
{ | |||
//System::Text::Encoding enc = System::Text::Encoding::ASCII; | |||
var writeData = enc.GetBytes(writeString + "\n"); | |||
var readData = new Byte[1024]; | |||
if (this.Client.Connected) | |||
{ | |||
Int32 bytesSent = this.Client.Send(writeData); | |||
Int32 bytesRec = this.Client.Receive(readData); | |||
return enc.GetString(readData, 0, bytesRec); | |||
} | |||
else | |||
{ | |||
throw new InvalidOperationException("TCPIP Socket not connected"); | |||
} | |||
} | |||
public void Write(String writeString) | |||
{ | |||
//System::Text::Encoding ^ enc = System::Text::Encoding::ASCII; | |||
if (this.Client.Connected) | |||
{ | |||
var writeData = enc.GetBytes(writeString + "\n"); | |||
Int32 bytesSent = this.Client.Send(writeData); | |||
} | |||
else | |||
{ | |||
throw new InvalidOperationException("Can not perform TCPIP Write because no connection exists."); | |||
} | |||
} | |||
public void WriteBinary(Byte[] dataToWrite) | |||
{ | |||
if (this.Client.Connected) | |||
{ | |||
Int32 sTimeout = this.Client.SendTimeout; | |||
this.Client.SendTimeout = 0; | |||
UInt32 bytesSent = (UInt32)(this.Client.Send(dataToWrite)); | |||
this.Client.SendTimeout = sTimeout; | |||
} | |||
else | |||
{ | |||
throw new InvalidOperationException("Can not perform TCPIP WriteBinary because no connection exists."); | |||
} | |||
} | |||
public Byte[] ReadBinary(Int32 numBytes) | |||
{ | |||
Byte[] readData = new Byte[numBytes]; | |||
Int32 bytesRec = 0; | |||
Int32 bytesLeft = numBytes; | |||
if (this.Client.Connected) | |||
{ | |||
do | |||
{ | |||
bytesRec += this.client.Receive(readData, bytesRec, bytesLeft - bytesRec, SocketFlags::None); | |||
} while (bytesRec < numBytes); | |||
} | |||
else | |||
{ | |||
throw new InvalidOperationException("TCPIP Socket not connected"); | |||
} | |||
return readData; | |||
} | |||
public String Read() | |||
{ | |||
if (this.Client.Connected) | |||
{ | |||
//System::Text::Encoding enc = System::Text::Encoding::ASCII; | |||
var writeData = new Byte[1024]; | |||
Int32 bytesRec = this.Client.Receive(readData); | |||
return enc.GetString(readData, 0, bytesRec); | |||
} | |||
else | |||
{ | |||
throw new InvalidOperationException("Can not perform TCPIP read because no connection exists."); | |||
} | |||
} | |||
} | |||
#endif |
@ -0,0 +1,23 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Threading.Tasks; | |||
using System.Windows.Forms; | |||
namespace WindowsFormsApplication1 | |||
{ | |||
static class Program | |||
{ | |||
/// <summary> | |||
/// The main entry point for the application. | |||
/// </summary> | |||
[STAThread] | |||
static void Main() | |||
{ | |||
Application.EnableVisualStyles(); | |||
Application.SetCompatibleTextRenderingDefault(false); | |||
// Application.Run(new Cals()); | |||
Application.Run(new RecordingControl()); | |||
} | |||
} | |||
} |
@ -0,0 +1,36 @@ | |||
using System.Reflection; | |||
using System.Runtime.CompilerServices; | |||
using System.Runtime.InteropServices; | |||
// General Information about an assembly is controlled through the following | |||
// set of attributes. Change these attribute values to modify the information | |||
// associated with an assembly. | |||
[assembly: AssemblyTitle("WindowsFormsApplication1")] | |||
[assembly: AssemblyDescription("")] | |||
[assembly: AssemblyConfiguration("")] | |||
[assembly: AssemblyCompany("Microsoft")] | |||
[assembly: AssemblyProduct("WindowsFormsApplication1")] | |||
[assembly: AssemblyCopyright("Copyright © Microsoft 2018")] | |||
[assembly: AssemblyTrademark("")] | |||
[assembly: AssemblyCulture("")] | |||
// Setting ComVisible to false makes the types in this assembly not visible | |||
// to COM components. If you need to access a type in this assembly from | |||
// COM, set the ComVisible attribute to true on that type. | |||
[assembly: ComVisible(false)] | |||
// The following GUID is for the ID of the typelib if this project is exposed to COM | |||
[assembly: Guid("f32a713a-7169-4f43-b254-5445bdb53597")] | |||
// Version information for an assembly consists of the following four values: | |||
// | |||
// Major Version | |||
// Minor Version | |||
// Build Number | |||
// Revision | |||
// | |||
// You can specify all the values or you can default the Build and Revision Numbers | |||
// by using the '*' as shown below: | |||
// [assembly: AssemblyVersion("1.0.*")] | |||
[assembly: AssemblyVersion("1.0.0.0")] | |||
[assembly: AssemblyFileVersion("1.0.0.0")] |
@ -0,0 +1,81 @@ | |||
//------------------------------------------------------------------------------ | |||
// <auto-generated> | |||
// This code was generated by a tool. | |||
// Runtime Version:4.0.30319.42000 | |||
// | |||
// Changes to this file may cause incorrect behavior and will be lost if | |||
// the code is regenerated. | |||
// </auto-generated> | |||
//------------------------------------------------------------------------------ | |||
namespace WindowsFormsApplication1.Properties { | |||
using System; | |||
/// <summary> | |||
/// A strongly-typed resource class, for looking up localized strings, etc. | |||
/// </summary> | |||
// This class was auto-generated by the StronglyTypedResourceBuilder | |||
// class via a tool like ResGen or Visual Studio. | |||
// To add or remove a member, edit your .ResX file then rerun ResGen | |||
// with the /str option, or rebuild your VS project. | |||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] | |||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] | |||
public class Resources { | |||
private static global::System.Resources.ResourceManager resourceMan; | |||
private static global::System.Globalization.CultureInfo resourceCulture; | |||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] | |||
internal Resources() { | |||
} | |||
/// <summary> | |||
/// Returns the cached ResourceManager instance used by this class. | |||
/// </summary> | |||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | |||
public static global::System.Resources.ResourceManager ResourceManager { | |||
get { | |||
if (object.ReferenceEquals(resourceMan, null)) { | |||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WindowsFormsApplication1.Properties.Resources", typeof(Resources).Assembly); | |||
resourceMan = temp; | |||
} | |||
return resourceMan; | |||
} | |||
} | |||
/// <summary> | |||
/// Overrides the current thread's CurrentUICulture property for all | |||
/// resource lookups using this strongly typed resource class. | |||
/// </summary> | |||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | |||
public static global::System.Globalization.CultureInfo Culture { | |||
get { | |||
return resourceCulture; | |||
} | |||
set { | |||
resourceCulture = value; | |||
} | |||
} | |||
/// <summary> | |||
/// Looks up a localized string similar to 5 V Cal File. | |||
/// </summary> | |||
public static string label1 { | |||
get { | |||
return ResourceManager.GetString("label1", resourceCulture); | |||
} | |||
} | |||
/// <summary> | |||
/// Looks up a localized string similar to 5 V Cal File. | |||
/// </summary> | |||
public static string String1 { | |||
get { | |||
return ResourceManager.GetString("String1", resourceCulture); | |||
} | |||
} | |||
} | |||
} |
@ -0,0 +1,126 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<root> | |||
<!-- | |||
Microsoft ResX Schema | |||
Version 2.0 | |||
The primary goals of this format is to allow a simple XML format | |||
that is mostly human readable. The generation and parsing of the | |||
various data types are done through the TypeConverter classes | |||
associated with the data types. | |||
Example: | |||
... ado.net/XML headers & schema ... | |||
<resheader name="resmimetype">text/microsoft-resx</resheader> | |||
<resheader name="version">2.0</resheader> | |||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |||
<value>[base64 mime encoded serialized .NET Framework object]</value> | |||
</data> | |||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |||
<comment>This is a comment</comment> | |||
</data> | |||
There are any number of "resheader" rows that contain simple | |||
name/value pairs. | |||
Each data row contains a name, and value. The row also contains a | |||
type or mimetype. Type corresponds to a .NET class that support | |||
text/value conversion through the TypeConverter architecture. | |||
Classes that don't support this are serialized and stored with the | |||
mimetype set. | |||
The mimetype is used for serialized objects, and tells the | |||
ResXResourceReader how to depersist the object. This is currently not | |||
extensible. For a given mimetype the value must be set accordingly: | |||
Note - application/x-microsoft.net.object.binary.base64 is the format | |||
that the ResXResourceWriter will generate, however the reader can | |||
read any of the formats listed below. | |||
mimetype: application/x-microsoft.net.object.binary.base64 | |||
value : The object must be serialized with | |||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | |||
: and then encoded with base64 encoding. | |||
mimetype: application/x-microsoft.net.object.soap.base64 | |||
value : The object must be serialized with | |||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |||
: and then encoded with base64 encoding. | |||
mimetype: application/x-microsoft.net.object.bytearray.base64 | |||
value : The object must be serialized into a byte array | |||
: using a System.ComponentModel.TypeConverter | |||
: and then encoded with base64 encoding. | |||
--> | |||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | |||
<xsd:element name="root" msdata:IsDataSet="true"> | |||
<xsd:complexType> | |||
<xsd:choice maxOccurs="unbounded"> | |||
<xsd:element name="metadata"> | |||
<xsd:complexType> | |||
<xsd:sequence> | |||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> | |||
</xsd:sequence> | |||
<xsd:attribute name="name" use="required" type="xsd:string" /> | |||
<xsd:attribute name="type" type="xsd:string" /> | |||
<xsd:attribute name="mimetype" type="xsd:string" /> | |||
<xsd:attribute ref="xml:space" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
<xsd:element name="assembly"> | |||
<xsd:complexType> | |||
<xsd:attribute name="alias" type="xsd:string" /> | |||
<xsd:attribute name="name" type="xsd:string" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
<xsd:element name="data"> | |||
<xsd:complexType> | |||
<xsd:sequence> | |||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |||
</xsd:sequence> | |||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | |||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |||
<xsd:attribute ref="xml:space" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
<xsd:element name="resheader"> | |||
<xsd:complexType> | |||
<xsd:sequence> | |||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
</xsd:sequence> | |||
<xsd:attribute name="name" type="xsd:string" use="required" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
</xsd:choice> | |||
</xsd:complexType> | |||
</xsd:element> | |||
</xsd:schema> | |||
<resheader name="resmimetype"> | |||
<value>text/microsoft-resx</value> | |||
</resheader> | |||
<resheader name="version"> | |||
<value>2.0</value> | |||
</resheader> | |||
<resheader name="reader"> | |||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
</resheader> | |||
<resheader name="writer"> | |||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
</resheader> | |||
<data name="label1" xml:space="preserve"> | |||
<value>5 V Cal File</value> | |||
</data> | |||
<data name="String1" xml:space="preserve"> | |||
<value>5 V Cal File</value> | |||
</data> | |||
</root> |
@ -0,0 +1,30 @@ | |||
//------------------------------------------------------------------------------ | |||
// <auto-generated> | |||
// This code was generated by a tool. | |||
// Runtime Version:4.0.30319.42000 | |||
// | |||
// Changes to this file may cause incorrect behavior and will be lost if | |||
// the code is regenerated. | |||
// </auto-generated> | |||
//------------------------------------------------------------------------------ | |||
namespace WindowsFormsApplication1.Properties | |||
{ | |||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] | |||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] | |||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase | |||
{ | |||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); | |||
public static Settings Default | |||
{ | |||
get | |||
{ | |||
return defaultInstance; | |||
} | |||
} | |||
} | |||
} |
@ -0,0 +1,7 @@ | |||
<?xml version='1.0' encoding='utf-8'?> | |||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)"> | |||
<Profiles> | |||
<Profile Name="(Default)" /> | |||
</Profiles> | |||
<Settings /> | |||
</SettingsFile> |
@ -0,0 +1,126 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<root> | |||
<!-- | |||
Microsoft ResX Schema | |||
Version 2.0 | |||
The primary goals of this format is to allow a simple XML format | |||
that is mostly human readable. The generation and parsing of the | |||
various data types are done through the TypeConverter classes | |||
associated with the data types. | |||
Example: | |||
... ado.net/XML headers & schema ... | |||
<resheader name="resmimetype">text/microsoft-resx</resheader> | |||
<resheader name="version">2.0</resheader> | |||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |||
<value>[base64 mime encoded serialized .NET Framework object]</value> | |||
</data> | |||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |||
<comment>This is a comment</comment> | |||
</data> | |||
There are any number of "resheader" rows that contain simple | |||
name/value pairs. | |||
Each data row contains a name, and value. The row also contains a | |||
type or mimetype. Type corresponds to a .NET class that support | |||
text/value conversion through the TypeConverter architecture. | |||
Classes that don't support this are serialized and stored with the | |||
mimetype set. | |||
The mimetype is used for serialized objects, and tells the | |||
ResXResourceReader how to depersist the object. This is currently not | |||
extensible. For a given mimetype the value must be set accordingly: | |||
Note - application/x-microsoft.net.object.binary.base64 is the format | |||
that the ResXResourceWriter will generate, however the reader can | |||
read any of the formats listed below. | |||
mimetype: application/x-microsoft.net.object.binary.base64 | |||
value : The object must be serialized with | |||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | |||
: and then encoded with base64 encoding. | |||
mimetype: application/x-microsoft.net.object.soap.base64 | |||
value : The object must be serialized with | |||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |||
: and then encoded with base64 encoding. | |||
mimetype: application/x-microsoft.net.object.bytearray.base64 | |||
value : The object must be serialized into a byte array | |||
: using a System.ComponentModel.TypeConverter | |||
: and then encoded with base64 encoding. | |||
--> | |||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | |||
<xsd:element name="root" msdata:IsDataSet="true"> | |||
<xsd:complexType> | |||
<xsd:choice maxOccurs="unbounded"> | |||
<xsd:element name="metadata"> | |||
<xsd:complexType> | |||
<xsd:sequence> | |||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> | |||
</xsd:sequence> | |||
<xsd:attribute name="name" use="required" type="xsd:string" /> | |||
<xsd:attribute name="type" type="xsd:string" /> | |||
<xsd:attribute name="mimetype" type="xsd:string" /> | |||
<xsd:attribute ref="xml:space" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
<xsd:element name="assembly"> | |||
<xsd:complexType> | |||
<xsd:attribute name="alias" type="xsd:string" /> | |||
<xsd:attribute name="name" type="xsd:string" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
<xsd:element name="data"> | |||
<xsd:complexType> | |||
<xsd:sequence> | |||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |||
</xsd:sequence> | |||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | |||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |||
<xsd:attribute ref="xml:space" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
<xsd:element name="resheader"> | |||
<xsd:complexType> | |||
<xsd:sequence> | |||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |||
</xsd:sequence> | |||
<xsd:attribute name="name" type="xsd:string" use="required" /> | |||
</xsd:complexType> | |||
</xsd:element> | |||
</xsd:choice> | |||
</xsd:complexType> | |||
</xsd:element> | |||
</xsd:schema> | |||
<resheader name="resmimetype"> | |||
<value>text/microsoft-resx</value> | |||
</resheader> | |||
<resheader name="version"> | |||
<value>2.0</value> | |||
</resheader> | |||
<resheader name="reader"> | |||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
</resheader> | |||
<resheader name="writer"> | |||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |||
</resheader> | |||
<metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | |||
<value>17, 17</value> | |||
</metadata> | |||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |||
<value>25</value> | |||
</metadata> | |||
</root> |
@ -0,0 +1,35 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Text; | |||
using System.Threading.Tasks; | |||
using System.Net.Sockets; | |||
namespace WindowsFormsApplication1 | |||
{ | |||
class SocketHelper | |||
{ | |||
TcpClient mscClient; | |||
string mstrMessage; | |||
string mstrResponse; | |||
byte[] bytesSent; | |||
public void processMsg(TcpClient client, NetworkStream stream, byte[] bytesReceived) | |||
{ | |||
// Handle the message received and | |||
// send a response back to the client. | |||
mstrMessage = Encoding.ASCII.GetString(bytesReceived, 0, bytesReceived.Length); | |||
mscClient = client; | |||
mstrMessage = mstrMessage.Substring(0, 5); | |||
if (mstrMessage.Equals("Hello")) | |||
{ | |||
mstrResponse = "Goodbye"; | |||
} | |||
else | |||
{ | |||
mstrResponse = "What?"; | |||
} | |||
bytesSent = Encoding.ASCII.GetBytes(mstrResponse); | |||
stream.Write(bytesSent, 0, bytesSent.Length); | |||
} | |||
} | |||
} |
@ -0,0 +1,6 @@ | |||
<stylecopresultscache> | |||
<version>12</version> | |||
<project key="780630672"> | |||
<configuration>DEBUG;TRACE</configuration> | |||
</project> | |||
</stylecopresultscache> |
@ -0,0 +1,21 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<asmv1:assembly xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd" manifestVersion="1.0" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns="urn:schemas-microsoft-com:asm.v2" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xrml="urn:mpeg:mpeg21:2003:01-REL-R-NS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1" xmlns:co.v2="urn:schemas-microsoft-com:clickonce.v2"> | |||
<assemblyIdentity name="WindowsFormsApplication1.application" version="1.0.0.2" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" xmlns="urn:schemas-microsoft-com:asm.v1" /> | |||
<description asmv2:publisher="WindowsFormsApplication1" asmv2:product="WindowsFormsApplication1" xmlns="urn:schemas-microsoft-com:asm.v1" /> | |||
<deployment install="true" mapFileExtensions="true" /> | |||
<compatibleFrameworks xmlns="urn:schemas-microsoft-com:clickonce.v2"> | |||
<framework targetVersion="4.5.2" profile="Full" supportedRuntime="4.0.30319" /> | |||
</compatibleFrameworks> | |||
<dependency> | |||
<dependentAssembly dependencyType="install" codebase="WindowsFormsApplication1.exe.manifest" size="3554"> | |||
<assemblyIdentity name="WindowsFormsApplication1.exe" version="1.0.0.2" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" type="win32" /> | |||
<hash> | |||
<dsig:Transforms> | |||
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> | |||
</dsig:Transforms> | |||
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" /> | |||
<dsig:DigestValue>ThjPDuCSKdT4o6Iy25C+rXXFW1tIk7rkuhWIcnsKkF8=</dsig:DigestValue> | |||
</hash> | |||
</dependentAssembly> | |||
</dependency> | |||
</asmv1:assembly> |
@ -0,0 +1,6 @@ | |||
<?xml version="1.0" encoding="utf-8" ?> | |||
<configuration> | |||
<startup> | |||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" /> | |||
</startup> | |||
</configuration> |
@ -0,0 +1,65 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<asmv1:assembly xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd" manifestVersion="1.0" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns="urn:schemas-microsoft-com:asm.v2" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:co.v2="urn:schemas-microsoft-com:clickonce.v2"> | |||
<asmv1:assemblyIdentity name="WindowsFormsApplication1.exe" version="1.0.0.2" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" type="win32" /> | |||
<application /> | |||
<entryPoint> | |||
<assemblyIdentity name="WindowsFormsApplication1" version="1.0.0.0" language="neutral" processorArchitecture="msil" /> | |||
<commandLine file="WindowsFormsApplication1.exe" parameters="" /> | |||
</entryPoint> | |||
<trustInfo> | |||
<security> | |||
<applicationRequestMinimum> | |||
<PermissionSet Unrestricted="true" ID="Custom" SameSite="site" /> | |||
<defaultAssemblyRequest permissionSetReference="Custom" /> | |||
</applicationRequestMinimum> | |||
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3"> | |||
<!-- | |||
UAC Manifest Options | |||
If you want to change the Windows User Account Control level replace the | |||
requestedExecutionLevel node with one of the following. | |||
<requestedExecutionLevel level="asInvoker" uiAccess="false" /> | |||
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> | |||
<requestedExecutionLevel level="highestAvailable" uiAccess="false" /> | |||
If you want to utilize File and Registry Virtualization for backward | |||
compatibility then delete the requestedExecutionLevel node. | |||
--> | |||
<requestedExecutionLevel level="asInvoker" uiAccess="false" /> | |||
</requestedPrivileges> | |||
</security> | |||
</trustInfo> | |||
<dependency> | |||
<dependentOS> | |||
<osVersionInfo> | |||
<os majorVersion="5" minorVersion="1" buildNumber="2600" servicePackMajor="0" /> | |||
</osVersionInfo> | |||
</dependentOS> | |||
</dependency> | |||
<dependency> | |||
<dependentAssembly dependencyType="preRequisite" allowDelayedBinding="true"> | |||
<assemblyIdentity name="Microsoft.Windows.CommonLanguageRuntime" version="4.0.30319.0" /> | |||
</dependentAssembly> | |||
</dependency> | |||
<dependency> | |||
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="WindowsFormsApplication1.exe" size="57784"> | |||
<assemblyIdentity name="WindowsFormsApplication1" version="1.0.0.0" language="neutral" processorArchitecture="msil" /> | |||
<hash> | |||
<dsig:Transforms> | |||
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> | |||
</dsig:Transforms> | |||
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" /> | |||
<dsig:DigestValue>e8rGVicV5lrecD3p0LCDBYFgYcIifNoAyIcCeS7dMvw=</dsig:DigestValue> | |||
</hash> | |||
</dependentAssembly> | |||
</dependency> | |||
<file name="WindowsFormsApplication1.exe.config" size="189"> | |||
<hash> | |||
<dsig:Transforms> | |||
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> | |||
</dsig:Transforms> | |||
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" /> | |||
<dsig:DigestValue>6N7MliNbVJSIAIPrecIshMbZ7zEoKLr5SQvud4LDUOw=</dsig:DigestValue> | |||
</hash> | |||
</file> | |||
</asmv1:assembly> |
@ -0,0 +1,21 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<asmv1:assembly xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd" manifestVersion="1.0" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns="urn:schemas-microsoft-com:asm.v2" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xrml="urn:mpeg:mpeg21:2003:01-REL-R-NS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1" xmlns:co.v2="urn:schemas-microsoft-com:clickonce.v2"> | |||
<assemblyIdentity name="WindowsFormsApplication1.application" version="1.0.0.2" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" xmlns="urn:schemas-microsoft-com:asm.v1" /> | |||
<description asmv2:publisher="Microsoft" asmv2:product="WindowsFormsApplication1" xmlns="urn:schemas-microsoft-com:asm.v1" /> | |||
<deployment install="true" mapFileExtensions="true" /> | |||
<compatibleFrameworks xmlns="urn:schemas-microsoft-com:clickonce.v2"> | |||
<framework targetVersion="4.5.2" profile="Full" supportedRuntime="4.0.30319" /> | |||
</compatibleFrameworks> | |||
<dependency> | |||
<dependentAssembly dependencyType="install" codebase="WindowsFormsApplication1.exe.manifest" size="3554"> | |||
<assemblyIdentity name="WindowsFormsApplication1.exe" version="1.0.0.2" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" type="win32" /> | |||
<hash> | |||
<dsig:Transforms> | |||
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> | |||
</dsig:Transforms> | |||
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" /> | |||
<dsig:DigestValue>V1T4f2pYJA+h67CaRp8l8Ur++egOHWH6f9rh/KyVSqU=</dsig:DigestValue> | |||
</hash> | |||
</dependentAssembly> | |||
</dependency> | |||
</asmv1:assembly> |
@ -0,0 +1,6 @@ | |||
<?xml version="1.0" encoding="utf-8" ?> | |||
<configuration> | |||
<startup> | |||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" /> | |||
</startup> | |||
</configuration> |
@ -0,0 +1,65 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<asmv1:assembly xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd" manifestVersion="1.0" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns="urn:schemas-microsoft-com:asm.v2" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:co.v2="urn:schemas-microsoft-com:clickonce.v2"> | |||
<asmv1:assemblyIdentity name="WindowsFormsApplication1.exe" version="1.0.0.2" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" type="win32" /> | |||
<application /> | |||
<entryPoint> | |||
<assemblyIdentity name="WindowsFormsApplication1" version="1.0.0.0" language="neutral" processorArchitecture="msil" /> | |||
<commandLine file="WindowsFormsApplication1.exe" parameters="" /> | |||
</entryPoint> | |||
<trustInfo> | |||
<security> | |||
<applicationRequestMinimum> | |||
<PermissionSet Unrestricted="true" ID="Custom" SameSite="site" /> | |||
<defaultAssemblyRequest permissionSetReference="Custom" /> | |||
</applicationRequestMinimum> | |||
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3"> | |||
<!-- | |||
UAC Manifest Options | |||
If you want to change the Windows User Account Control level replace the | |||
requestedExecutionLevel node with one of the following. | |||
<requestedExecutionLevel level="asInvoker" uiAccess="false" /> | |||
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> | |||
<requestedExecutionLevel level="highestAvailable" uiAccess="false" /> | |||
If you want to utilize File and Registry Virtualization for backward | |||
compatibility then delete the requestedExecutionLevel node. | |||
--> | |||
<requestedExecutionLevel level="asInvoker" uiAccess="false" /> | |||
</requestedPrivileges> | |||
</security> | |||
</trustInfo> | |||
<dependency> | |||
<dependentOS> | |||
<osVersionInfo> | |||
<os majorVersion="5" minorVersion="1" buildNumber="2600" servicePackMajor="0" /> | |||
</osVersionInfo> | |||
</dependentOS> | |||
</dependency> | |||
<dependency> | |||
<dependentAssembly dependencyType="preRequisite" allowDelayedBinding="true"> | |||
<assemblyIdentity name="Microsoft.Windows.CommonLanguageRuntime" version="4.0.30319.0" /> | |||
</dependentAssembly> | |||
</dependency> | |||
<dependency> | |||
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="WindowsFormsApplication1.exe" size="55224"> | |||
<assemblyIdentity name="WindowsFormsApplication1" version="1.0.0.0" language="neutral" processorArchitecture="msil" /> | |||
<hash> | |||
<dsig:Transforms> | |||
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> | |||
</dsig:Transforms> | |||
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" /> | |||
<dsig:DigestValue>f3LlMSbB7E6Rmo4L8/abgU8NKxPyxntlIY8val0CVKw=</dsig:DigestValue> | |||
</hash> | |||
</dependentAssembly> | |||
</dependency> | |||
<file name="WindowsFormsApplication1.exe.config" size="189"> | |||
<hash> | |||
<dsig:Transforms> | |||
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> | |||
</dsig:Transforms> | |||
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" /> | |||
<dsig:DigestValue>6N7MliNbVJSIAIPrecIshMbZ7zEoKLr5SQvud4LDUOw=</dsig:DigestValue> | |||
</hash> | |||
</file> | |||
</asmv1:assembly> |