aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Stubs Collection/stubs/Scripts/Jig_Tester
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Stubs Collection/stubs/Scripts/Jig_Tester')
-rw-r--r--Software/Stubs Collection/stubs/Scripts/Jig_Tester/JIG_TESTER.cs291
-rw-r--r--Software/Stubs Collection/stubs/Scripts/Jig_Tester/Jig-TesterV 1.0.docxbin0 -> 2159500 bytes
-rw-r--r--Software/Stubs Collection/stubs/Scripts/Jig_Tester/Jig-TesterV 1.1.docxbin0 -> 3989402 bytes
-rw-r--r--Software/Stubs Collection/stubs/Scripts/Jig_Tester/LTFU_Jig.cs10
-rw-r--r--Software/Stubs Collection/stubs/Scripts/Jig_Tester/MidTank_Jig.cs4
-rw-r--r--Software/Stubs Collection/stubs/Scripts/Jig_Tester/RTFU_Jig.cs4
6 files changed, 243 insertions, 66 deletions
diff --git a/Software/Stubs Collection/stubs/Scripts/Jig_Tester/JIG_TESTER.cs b/Software/Stubs Collection/stubs/Scripts/Jig_Tester/JIG_TESTER.cs
index 7841b09eb..a90acd902 100644
--- a/Software/Stubs Collection/stubs/Scripts/Jig_Tester/JIG_TESTER.cs
+++ b/Software/Stubs Collection/stubs/Scripts/Jig_Tester/JIG_TESTER.cs
@@ -28,6 +28,7 @@ System.Timers.Timer timer;
string [,] Units_status = new string[50,2];
+string File_Name2;
string File_Name1 ;
string Status;
@@ -36,7 +37,7 @@ const int Winder =0 ;
const int LTFU =1 ;
string path;
-string path1="C:\\Jig_Log\\";
+string path1="C:\\Jig_Log\\";;
bool BlinkOn = false;
bool timer_started = false;
@@ -47,6 +48,10 @@ int UNIT_UNDER_TEST ;
public void OnExecute(StubManager stubManager)
{
+ string u =System.Environment.UserName;
+
+
+
Label Run_text = new Label ()
{
Width = 110,
@@ -219,7 +224,7 @@ public void OnExecute(StubManager stubManager)
Height = 20,
Text =" S/N"
};
- SN_lbl.Location = new Point (30, 10);
+ SN_lbl.Location = new Point (40, 10);
form1.Controls.Add(SN_lbl);
TextBox SN_TexstBox = new TextBox ()
{
@@ -229,6 +234,27 @@ public void OnExecute(StubManager stubManager)
};
SN_TexstBox.Location = new Point (40, 40);
form1.Controls.Add(SN_TexstBox);
+ //-----Create Lable to Part Number -----------
+
+ Label PN_lbl = new Label ()
+ {
+ Width = 150,
+ Height = 20,
+ Text =" P/N"
+ };
+ PN_lbl.Location = new Point (190, 10);
+ form1.Controls.Add(PN_lbl);
+
+ TextBox PN_TexstBox = new TextBox ()
+ {
+ Width = 150,
+ Height = 20,
+ Text =""
+ };
+ PN_TexstBox.Location = new Point (190, 40);
+ PN_TexstBox.CharacterCasing = CharacterCasing.Upper;
+
+ form1.Controls.Add(PN_TexstBox);
//----------Create Lable to LOCATION----------
Label Location_lbl = new Label ()
{
@@ -236,7 +262,7 @@ public void OnExecute(StubManager stubManager)
Height = 20,
Text ="LOCATION"
};
- Location_lbl.Location = new Point (300, 10);
+ Location_lbl.Location = new Point (440, 10);
form1.Controls.Add(Location_lbl);
TextBox Location_TexstBox = new TextBox ()
@@ -245,7 +271,7 @@ public void OnExecute(StubManager stubManager)
Height = 20,
Text =Location_str
};
- Location_TexstBox.Location = new Point (300, 40);
+ Location_TexstBox.Location = new Point (440, 40);
form1.Controls.Add(Location_TexstBox);
Run_text.Location = new System.Drawing.Point(300, 100);
@@ -254,6 +280,25 @@ public void OnExecute(StubManager stubManager)
Run_text.Font = new Font("Areal", 16, System.Drawing.FontStyle.Bold);
form1.Controls.Add(Run_text);
//--------------------------------------------------------------------------------
+ Button Open_Log_btm = new Button()
+ {
+ Width = 100,
+ Height = 40,
+ };
+ Open_Log_btm.Text = "Open Log File";
+ Open_Log_btm.BackColor = System.Drawing.Color.Red;
+ Open_Log_btm.Location = new System.Drawing.Point(300, 286);
+ Open_Log_btm.Enabled= false;
+ form1.Controls.Add(Open_Log_btm);
+
+
+ Open_Log_btm.Click += (_, __) =>
+ {
+ System.Diagnostics.Process.Start(File_Name2 );
+ };
+
+
+//--------------------------------------------------------------------------------
Button Stop_btm = new Button()
{
Width = 260,
@@ -263,6 +308,10 @@ public void OnExecute(StubManager stubManager)
Stop_btm.BackColor = System.Drawing.Color.Red;
Stop_btm.Location = new System.Drawing.Point(4, 286);
Stop_btm.Enabled= false;
+
+
+
+
Stop_btm.Click += (_, __) =>
{
timer.Stop();
@@ -273,7 +322,7 @@ public void OnExecute(StubManager stubManager)
};
form1.Controls.Add(Stop_btm);
-
+ disable_test();
void disable_test()
{
Winder_btm.Enabled = false;
@@ -286,23 +335,23 @@ public void OnExecute(StubManager stubManager)
Mixer_btm.Enabled= false;
NewMixer_btm.Enabled= false;
NewDyeHead_btm.Enabled= false;
- Stop_btm.Enabled= true;
- }
-
- void enable_test()
- {
- Winder_btm.Enabled = true;
- LTFU_btm.Enabled = true;
- RTFU_btm.Enabled = true;
- Dryer_btm.Enabled = true;
- MidTank_btm.Enabled= true;
- DyeHead_btm.Enabled= true;
- WHS_btm.Enabled= true;
- Mixer_btm.Enabled= true;
- NewMixer_btm.Enabled= true;
- NewDyeHead_btm.Enabled= true;
Stop_btm.Enabled= false;
}
+
+// void enable_test()
+// {
+// Winder_btm.Enabled = true;
+// LTFU_btm.Enabled = true;
+// RTFU_btm.Enabled = true;
+// Dryer_btm.Enabled = true;
+// MidTank_btm.Enabled= true;
+// DyeHead_btm.Enabled= true;
+// WHS_btm.Enabled= true;
+// Mixer_btm.Enabled= true;
+// NewMixer_btm.Enabled= true;
+// NewDyeHead_btm.Enabled= true;
+// Stop_btm.Enabled= false;
+// }
void Timer_en()
{
if (timer_started == false)
@@ -320,9 +369,11 @@ public void OnExecute(StubManager stubManager)
}
}
void end_test()
- { enable_test();
+ { disable_test();
+ //enable_test();
+
Timer_dis();
-
+ Open_Log_btm.Enabled= true;
Run_text.Text = Status;
if (Status=="Pass")
{
@@ -337,22 +388,126 @@ public void OnExecute(StubManager stubManager)
}
}
+PN_TexstBox.TextChanged += (_,__)=>
+
+ {
+ string temp;
+
+ if (SN_TexstBox.Text.Length!=15)
+ {
+ disable_test();
+ return;
+ }
+
+ if (PN_TexstBox.Text.Contains("-"))
+
+ {
+ temp=PN_TexstBox.Text.Substring(0, PN_TexstBox.Text.IndexOf("-"));
+ switch (temp)
+ {
+ case "AM00315": //DyeHead
+ NewDyeHead_btm.Enabled= true;
+ break;
+ case "AM00103": //Winder
+ Winder_btm.Enabled = true;
+ break;
+ case "AM00087": //MidTank
+ MidTank_btm.Enabled = true;
+ break;
+ case "AM00031": //LTFU
+ LTFU_btm.Enabled = true;
+ break;
+ case "AM00007": //Dryer
+ Dryer_btm.Enabled = true;
+ break;
+ case "AM00030": //RTFU
+ RTFU_btm.Enabled = true;
+ break;
+ case "AM00281": //New Mixer
+ NewMixer_btm.Enabled= true;
+ break;
+ // case "AM00281": // Mixer
+ // Mixer_btm.Enabled= true;
+ // break;
+ default:
+ disable_test();
+ break;
+ }
+ }
+ else
+ disable_test();
+
+
+ };
+ SN_TexstBox.TextChanged += (_,__)=>
+
+ {
+ string temp;
+ if (SN_TexstBox.Text.Length!=15)
+ {
+ disable_test();
+ return;
+ }
+ if (PN_TexstBox.Text.Contains("-"))
+ {
+
+ temp=PN_TexstBox.Text.Substring(0, PN_TexstBox.Text.IndexOf("-"));
+
+ switch (temp)
+ {
+ case "AM00315": //DyeHead
+ NewDyeHead_btm.Enabled= true;
+ break;
+ case "AM00103": //Winder
+ Winder_btm.Enabled = true;
+ break;
+ case "AM00087": //MidTank
+ MidTank_btm.Enabled = true;
+ break;
+ case "AM00031": //LTFU
+ LTFU_btm.Enabled = true;
+ break;
+ case "AM00007": //Dryer
+ Dryer_btm.Enabled = true;
+ break;
+ case "AM00030": //RTFU
+ RTFU_btm.Enabled = true;
+ break;
+ case "AM00286": //New Mixer
+ NewMixer_btm.Enabled= true;
+ break;
+ default:
+ disable_test();
+ break;
+// case "AM00281": // Mixer
+// Mixer_btm.Enabled= true;
+// break;
+ }
+ }
+ else
+ disable_test();
+ };
//-----------------------------------------
Winder_btm.Click += async(_,__) =>
{
+ Open_Log_btm.Enabled= false;
Run_text.Text = "Run";
stubManager.WriteLine("DUT- Winder ");
- path="C:\\Users\\lp4\\Dropbox\\"+Location_TexstBox.Text +"_Bench_Tester"+"\\Winder\\" ;
+// path="C:\\Users\\" + u + "\\Dropbox\\"+Location_TexstBox.Text +"_Bench_Tester"+"\\Winder\\" ;
+ path="C:\\Users\\" + u + "\\Dropbox\\"+Location_TexstBox.Text +"_Bench_Tester"+"\\Winder\\" ;
+
Timer_en();
_cancellationTokenSource = new CancellationTokenSource();
try
{
- disable_test();
+ // disable_test();
+ Winder_btm.Enabled = false;
+ Stop_btm.Enabled= true;
var longRunningTask = await Winder_test(setLabel1TextSafe, _cancellationTokenSource.Token, SN_TexstBox.Text ,Location_TexstBox.Text );
}
catch (OperationCanceledException)
{
- enable_test();
+ disable_test();
Status="Cancel";
stubManager.Run<StubMotorStopResponse>("StubMotorStopRequest" ,WINDER_Motor,3); //stop motor
stubManager.Run<StubMotorStopResponse>("StubMotorStopRequest" ,SCREW,3); //stop motor
@@ -368,23 +523,27 @@ public void OnExecute(StubManager stubManager)
//-----------------------------------------
LTFU_btm.Click += async(_,__) =>
{
+ Open_Log_btm.Enabled= false;
Run_text.Text = "Run";
stubManager.WriteLine("DUT- LTFU ");
- path="C:\\Users\\lp4\\Dropbox\\"+Location_TexstBox.Text +"_Bench_Tester"+"\\LTFU\\" ;
+ path="C:\\Users\\" + u + "\\Dropbox\\"+Location_TexstBox.Text +"_Bench_Tester"+"\\LTFU\\" ;
Timer_en();
_cancellationTokenSource = new CancellationTokenSource();
try
{
- disable_test();
+// disable_test();
+ LTFU_btm.Enabled = false;
+ Stop_btm.Enabled= true;
var longRunningTask = await LTFU_test(setLabel1TextSafe, _cancellationTokenSource.Token, SN_TexstBox.Text ,Location_TexstBox.Text );
}
catch (OperationCanceledException)
{
- enable_test();
+ disable_test();
Status="Cancel";
stubManager.Run<StubMotorStopResponse>("StubMotorStopRequest" ,LLOADING_Motor, 3); //hold LRoading high z
stubManager.Run<StubMotorStopResponse>("StubMotorStopRequest" ,LDANCER1_Motor, 3); //hold Lloading high z
+ stubManager.Run<StubMotorStopResponse>("StubMotorStopRequest" ,LDANCER2_Motor, 3); //hold Lloading high z
stubManager.Run<StubMotorStopResponse>("StubMotorStopRequest" ,LDRIVING_Motor,3); //stop motor
Thread.Sleep(100);
@@ -402,21 +561,24 @@ public void OnExecute(StubManager stubManager)
//-----------------------------------------
Dryer_btm.Click += async(_,__) =>
{
+ Open_Log_btm.Enabled= false;
Run_text.Text = "Run";
stubManager.WriteLine("DUT- Dryer ");
- path="C:\\Users\\lp4\\Dropbox\\"+Location_TexstBox.Text +"_Bench_Tester"+"\\Dryer\\" ;
+ path="C:\\Users\\" + u + "\\Dropbox\\"+Location_TexstBox.Text +"_Bench_Tester"+"\\Dryer\\" ;
Timer_en();
_cancellationTokenSource = new CancellationTokenSource();
try
{
- disable_test();
- var longRunningTask = await Dryer_test(setLabel1TextSafe, _cancellationTokenSource.Token, SN_TexstBox.Text ,Location_TexstBox.Text );
+// disable_test();
+ Dryer_btm.Enabled = false;
+ Stop_btm.Enabled= true;
+ var longRunningTask = await Dryer_test(setLabel1TextSafe, _cancellationTokenSource.Token, SN_TexstBox.Text ,Location_TexstBox.Text );
}
catch (OperationCanceledException)
{
- enable_test();
+ disable_test();
Status="Cancel";
stubManager.Run<StubMotorStopResponse>("StubMotorStopRequest" ,DryerLid_Motor, 2); //Hard stop hiZ motor
stubManager.Run<StubMotorStopResponse>("StubMotorStopRequest" ,DryerMain_Motor,3); //stop motor
@@ -436,20 +598,23 @@ public void OnExecute(StubManager stubManager)
//-----------------------------------------
DyeHead_btm.Click += async(_,__) =>
{
+ Open_Log_btm.Enabled= false;
Run_text.Text = "Run";
stubManager.WriteLine("DUT- DyeHead ");
- path="C:\\Users\\lp4\\Dropbox\\"+Location_TexstBox.Text +"_Bench_Tester"+"\\DyeHead\\" ;
+ path="C:\\Users\\" + u + "\\Dropbox\\"+Location_TexstBox.Text +"_Bench_Tester"+"\\DyeHead\\" ;
Timer_en();
_cancellationTokenSource = new CancellationTokenSource();
try
{
- disable_test();
- var longRunningTask = await DyeHead_test(setLabel1TextSafe, _cancellationTokenSource.Token, SN_TexstBox.Text ,Location_TexstBox.Text );
+// disable_test();
+ DyeHead_btm.Enabled= false;
+ Stop_btm.Enabled= true;
+ var longRunningTask = await DyeHead_test(setLabel1TextSafe, _cancellationTokenSource.Token, SN_TexstBox.Text ,Location_TexstBox.Text );
}
catch (OperationCanceledException)
{
- enable_test();
+ disable_test();
Status="Cancel";
stubManager.Run<StubMotorStopResponse>("StubMotorStopRequest" ,MAGNET_Driver,3); //stop magnet
stubManager.Run<StubMotorStopResponse>("StubMotorStopRequest" ,DyeingHeadLid_Motor,3); //stop motor
@@ -472,28 +637,29 @@ public void OnExecute(StubManager stubManager)
//-----------------------------------------
NewDyeHead_btm.Click += async(_,__) =>
{
+ Open_Log_btm.Enabled= false;
Run_text.Text = "Run";
stubManager.WriteLine("DUT- New DyeHead ");
-// path="C:\\Users\\lp4\\Dropbox\\"+Location_TexstBox.Text +"_Bench_Tester"+"\\NewDyeHead\\" ;
- path="C:\\Users\\lp4\\Dropbox\\"+Location_TexstBox.Text +"_Bench_Tester"+"\\DyeHead\\" ;
+ path="C:\\Users\\" + u + "\\Dropbox\\"+Location_TexstBox.Text +"_Bench_Tester"+"\\NewDyeHead\\" ;
Timer_en();
_cancellationTokenSource = new CancellationTokenSource();
try
{
- disable_test();
-//mf var longRunningTask = await NewDyeHead_test(setLabel1TextSafe, _cancellationTokenSource.Token, SN_TexstBox.Text ,Location_TexstBox.Text );
+// disable_test();
+ NewDyeHead_btm.Enabled= false;
+ Stop_btm.Enabled= true;
+ var longRunningTask = await NewDyeHead_test(setLabel1TextSafe, _cancellationTokenSource.Token, SN_TexstBox.Text ,Location_TexstBox.Text );
}
catch (OperationCanceledException)
{
- enable_test();
+ disable_test();
Status="Cancel";
stubManager.Run<StubMotorStopResponse>("StubMotorStopRequest" ,MAGNET_Driver,3); //stop magnet
stubManager.Run<StubMotorStopResponse>("StubMotorStopRequest" ,DyeingHeadLid_Motor,3); //stop motor
for (Int32 i = 0; i < 12; i++) //???MF
{
-
stubManager.Run<ProgressResponse>("ProgressRequest" ,0x0EAD,0x40F000 + i*0x100); // turn all heaters OFF
Thread.Sleep(10);
}
@@ -509,19 +675,22 @@ public void OnExecute(StubManager stubManager)
//-----------------------------------------
RTFU_btm.Click += async(_,__) =>
{
+ Open_Log_btm.Enabled= false;
Run_text.Text = "Run";
stubManager.WriteLine("DUT- RTFU ");
- path="C:\\Users\\lp4\\Dropbox\\"+Location_TexstBox.Text +"_Bench_Tester"+"\\RTFU\\" ;
+ path="C:\\Users\\" + u + "\\Dropbox\\"+Location_TexstBox.Text +"_Bench_Tester"+"\\RTFU\\" ;
Timer_en();
_cancellationTokenSource = new CancellationTokenSource();
try
{
- disable_test();
+// disable_test();
+ RTFU_btm.Enabled= false;
+ Stop_btm.Enabled= true;
var longRunningTask = await RTFU_test(setLabel1TextSafe, _cancellationTokenSource.Token, SN_TexstBox.Text ,Location_TexstBox.Text );
}
catch (OperationCanceledException)
{
- enable_test();
+ disable_test();
Status="Cancel";
stubManager.Run<StubMotorStopResponse>("StubMotorStopRequest" ,RLOADING_Motor, 3); //hold Rloading high z
Thread.Sleep(100);
@@ -539,19 +708,22 @@ public void OnExecute(StubManager stubManager)
//-----------------------------------------
MidTank_btm.Click += async(_,__) =>
{
+ Open_Log_btm.Enabled= false;
Run_text.Text = "Run";
stubManager.WriteLine("DUT- MidTank ");
- path="C:\\Users\\lp4\\Dropbox\\"+Location_TexstBox.Text +"_Bench_Tester"+"\\MidTank\\" ;
+ path="C:\\Users\\" + u + "\\Dropbox\\"+Location_TexstBox.Text +"_Bench_Tester"+"\\MidTank\\" ;
Timer_en();
_cancellationTokenSource = new CancellationTokenSource();
try
{
- disable_test();
+// disable_test();
+ MidTank_btm.Enabled= false;
+ Stop_btm.Enabled= true;
var longRunningTask = await MidTank_test(setLabel1TextSafe, _cancellationTokenSource.Token, SN_TexstBox.Text ,Location_TexstBox.Text );
}
catch (OperationCanceledException)
{
- enable_test();
+ disable_test();
Status="Cancel";
stubManager.Run<StubFpgaWriteRegResponse>("StubFpgaWriteRegRequest" ,F3_VALVE_OUT, 0); //close all valve
@@ -566,20 +738,23 @@ public void OnExecute(StubManager stubManager)
//---------------------------Mixer--------------
Mixer_btm.Click += async(_,__) =>
{
+ Open_Log_btm.Enabled= false;
Run_text.Text = "Run";
stubManager.WriteLine("DUT- Mixer ");
- path="C:\\Users\\lp4\\Dropbox\\"+Location_TexstBox.Text +"_Bench_Tester"+"\\Mixer\\" ;
+ path="C:\\Users\\" + u + "\\Dropbox\\"+Location_TexstBox.Text +"_Bench_Tester"+"\\Mixer\\" ;
Timer_en();
_cancellationTokenSource = new CancellationTokenSource();
try
{
- disable_test();
+// disable_test();
+ Mixer_btm.Enabled= false;
+ Stop_btm.Enabled= true;
var longRunningTask = await Mixer_test(setLabel1TextSafe, _cancellationTokenSource.Token, SN_TexstBox.Text ,Location_TexstBox.Text );
}
catch (OperationCanceledException)
{
- enable_test();
+ disable_test();
Status="Cancel";
SetBit (F1_gpo_01, 7, 0); //clear bit F1_VALVE_MIXCHIP_WASTECH
SetBit (F2_CTRL, 7, 0); //clear bit mixer SSR
@@ -594,20 +769,23 @@ public void OnExecute(StubManager stubManager)
//---------------------------new Mixer--------------
NewMixer_btm.Click += async(_,__) =>
{
+ Open_Log_btm.Enabled= false;
Run_text.Text = "Run";
stubManager.WriteLine("DUT- New Mixer ");
- path="C:\\Users\\lp4\\Dropbox\\"+Location_TexstBox.Text +"_Bench_Tester"+"\\Mixer\\" ;
+ path="C:\\Users\\" + u + "\\Dropbox\\"+Location_TexstBox.Text +"_Bench_Tester"+"\\Mixer\\" ;
Timer_en();
_cancellationTokenSource = new CancellationTokenSource();
try
{
- disable_test();
- var longRunningTask = await New_Mixer_test(setLabel1TextSafe, _cancellationTokenSource.Token, SN_TexstBox.Text ,Location_TexstBox.Text );
+// disable_test();
+ NewMixer_btm.Enabled= false;
+ Stop_btm.Enabled= true;
+ var longRunningTask = await New_Mixer_test(setLabel1TextSafe, _cancellationTokenSource.Token, SN_TexstBox.Text ,Location_TexstBox.Text );
}
catch (OperationCanceledException)
{
- enable_test();
+ disable_test();
Status="Cancel";
// SetBit (F1_gpo_01, 7, 0); ????????????//clear bit F1_VALVE_MIXCHIP_WASTECH
// SetBit (F2_CTRL, 7, 0); //????????????clear bit mixer SSR
@@ -630,7 +808,6 @@ public void OnExecute(StubManager stubManager)
form1.Controls.Add(_calc_text);
// stubManager.WriteLine("Start dialog!");
form1.ShowDialog();
-
return ;
@@ -661,7 +838,7 @@ if (!Directory.Exists(path))
-string File_Name2=Environment.ExpandEnvironmentVariables(path +Stemp1+"_"+ s_n +"_"+DUT +"_"+ DateTime.Now.ToString("MM_dd_yyyy_HH_mm_ss")+".log" );
+ File_Name2=Environment.ExpandEnvironmentVariables(path +Stemp1+"_"+ s_n +"_"+DUT +"_"+ DateTime.Now.ToString("MM_dd_yyyy_HH_mm_ss")+".log" );
stubManager.Write(File_Name2 +"\n");
diff --git a/Software/Stubs Collection/stubs/Scripts/Jig_Tester/Jig-TesterV 1.0.docx b/Software/Stubs Collection/stubs/Scripts/Jig_Tester/Jig-TesterV 1.0.docx
new file mode 100644
index 000000000..f7aa53997
--- /dev/null
+++ b/Software/Stubs Collection/stubs/Scripts/Jig_Tester/Jig-TesterV 1.0.docx
Binary files differ
diff --git a/Software/Stubs Collection/stubs/Scripts/Jig_Tester/Jig-TesterV 1.1.docx b/Software/Stubs Collection/stubs/Scripts/Jig_Tester/Jig-TesterV 1.1.docx
new file mode 100644
index 000000000..948efd86b
--- /dev/null
+++ b/Software/Stubs Collection/stubs/Scripts/Jig_Tester/Jig-TesterV 1.1.docx
Binary files differ
diff --git a/Software/Stubs Collection/stubs/Scripts/Jig_Tester/LTFU_Jig.cs b/Software/Stubs Collection/stubs/Scripts/Jig_Tester/LTFU_Jig.cs
index 3f9f2a346..ba072b955 100644
--- a/Software/Stubs Collection/stubs/Scripts/Jig_Tester/LTFU_Jig.cs
+++ b/Software/Stubs Collection/stubs/Scripts/Jig_Tester/LTFU_Jig.cs
@@ -52,7 +52,7 @@ public Task<decimal> LTFU_test( Action<string> settext, CancellationToken cancel
Test_LLOADING_LTFU();
stubManager.Run<StubMotorStopResponse>("StubMotorStopRequest" ,LLOADING_Motor, 3); //hold LRoading high z
delay(100);
- Motor_SetParam(F1_MOTO_LLOADING_TX1,F1_MOTO_LLOADING_TX0,0x0a,0x14000000); //set kval ran to 0x14,0.65A
+// Motor_SetParam(F1_MOTO_LLOADING_TX1,F1_MOTO_LLOADING_TX0,0x0a,0x14000000); //set kval ran to 0x14,0.65A
settext("Test LDRIVING LTFU");
Test_LDRIVING_LTFU();
@@ -355,9 +355,9 @@ int Test_DANCER_LTFU()
}
- if (temp_right_after>temp_right_before)
- temp_right_before=temp_right_before+0x4000;
- temp_right_before=temp_right_before-temp_right_after;
+ if (temp_right_after<temp_right_before)
+ temp_right_after=temp_right_after+0x4000;
+ temp_right_before=temp_right_after-temp_right_before;
if ((temp_right_before< 5000) && (temp_right_before >200))
{
Units_status[8,1]="Pass";
@@ -465,7 +465,7 @@ int Test_DANCER_LTFU()
return 12;
}
Units_status[8,1]="Fail";
- stubManager.Write("LDANCER2_SSI\tFail\n");
+ stubManager.Write("LDANCER_Right_SSI\tFail\n");
return 12;
diff --git a/Software/Stubs Collection/stubs/Scripts/Jig_Tester/MidTank_Jig.cs b/Software/Stubs Collection/stubs/Scripts/Jig_Tester/MidTank_Jig.cs
index 27e17ed93..16139df2c 100644
--- a/Software/Stubs Collection/stubs/Scripts/Jig_Tester/MidTank_Jig.cs
+++ b/Software/Stubs Collection/stubs/Scripts/Jig_Tester/MidTank_Jig.cs
@@ -143,9 +143,9 @@ int open_valve (int valve_nm,int valve_type,int check_valve) //valve_type=0 is
if (check_valve!=0)
{
- temp="Air";
+ temp="Air ";
if (valve_type==1)
- temp="Ink";
+ temp="Ink ";
DialogResult result = MessageBox.Show("Did " + temp + "Valve of Midtank " + valve_nm +" open?", "Warning",MessageBoxButtons.YesNo);
if(result == DialogResult.No)
diff --git a/Software/Stubs Collection/stubs/Scripts/Jig_Tester/RTFU_Jig.cs b/Software/Stubs Collection/stubs/Scripts/Jig_Tester/RTFU_Jig.cs
index 9863a2ea1..4f47a1cd0 100644
--- a/Software/Stubs Collection/stubs/Scripts/Jig_Tester/RTFU_Jig.cs
+++ b/Software/Stubs Collection/stubs/Scripts/Jig_Tester/RTFU_Jig.cs
@@ -76,7 +76,7 @@ int Test_RLOADING_RTFU()
int temp=1;
int counter;
-// Motor_SetParam(F1_MOTO_RLOADING_TX1,F1_MOTO_RLOADING_TX0,0x0a,0x40000000); //set kval ran to 0x40- 1.9A
+// Motor_SetParam(F1_MOTO_RLOADING_TX1,F1_MOTO_RLOADING_TX0,0x0a,0x2c000000); //set kval ran to 0x40- 1.9A
delay(100);
stubManager.Run<StubMotorRunResponse>("StubMotorRunRequest" ,RLOADING_Motor, true,200); //move Rloading down
delay(3000);
@@ -317,7 +317,7 @@ int Test_DANCER_RTFU()
stubManager.Write("temp="+temp + "\temp1="+temp1 +"\n");
- DialogResult result = MessageBox.Show("SSI Dancer led is Green(not blinking)?", "Warning",MessageBoxButtons.YesNo);
+ DialogResult result = MessageBox.Show("SSI Dancer led is Green(Not blinking)?", "Warning",MessageBoxButtons.YesNo);
if(result == DialogResult.No)
{
Units_status[8,1]="Fail";