aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Stubs Collection/stubs/Scripts/waste level.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Stubs Collection/stubs/Scripts/waste level.cs')
-rw-r--r--Software/Stubs Collection/stubs/Scripts/waste level.cs71
1 files changed, 0 insertions, 71 deletions
diff --git a/Software/Stubs Collection/stubs/Scripts/waste level.cs b/Software/Stubs Collection/stubs/Scripts/waste level.cs
deleted file mode 100644
index a72f2a512..000000000
--- a/Software/Stubs Collection/stubs/Scripts/waste level.cs
+++ /dev/null
@@ -1,71 +0,0 @@
-using System;
-using System.Text;
-using System.Linq;
-using System.Drawing;
-using System.Diagnostics;
-using System.Windows.Forms;
-using System.Threading;
-using System.Threading.Tasks;
-using System.Collections.Generic;
-using Tango.PMR.Stubs;
-using Tango.Stubs;
-
-//private const string FILE_PATH = "D:\\Waste.txt";
-
-int i = 0;
-bool valve_openclose = false;
-//string temp;
-
-public void OnExecute(StubManager stubManager)
-{
-
- string File_Name2 = "D:\\Waste.txt" ;
-
- Thread.Sleep(1000);
-
- stubManager.WriteToFile(File_Name2,DateTime.Now +" " );
-
- //Open Valve
- stubManager.Run<ProgressResponse>("ProgressRequest" ,0x3EB, 0x0201);
-
- Thread.Sleep(500);
-
- //Close Valve
- var response1 = stubManager.Run<ProgressResponse>("ProgressRequest" ,0x3EB, 0x0200);
-
- Thread.Sleep(2000);
-
- stubManager.AppendToFile(File_Name2," " );
- stubManager.AppendToFile(File_Name2," waste [mili-volts] " );
- stubManager.AppendToFile(File_Name2," " );
-
- for(i=0;i<5;i++)
- {
-
- if(valve_openclose == true)
- {
- //Open Valve
- stubManager.Run<ProgressResponse>("ProgressRequest" ,0x3EB, 0x0201);
-
- Thread.Sleep(500);
-
- //Close Valve
- stubManager.Run<ProgressResponse>("ProgressRequest" ,0x3EB, 0x0200);
-
- Thread.Sleep(2000);
- }
-
- //get waste level in mV
- stubManager.Write("waste [mili volts]: ");
-
- var response = stubManager.Run<ProgressResponse>("ProgressRequest" ,0x3EC, 0x01);
-
- stubManager.WriteLine(response.Progress);
-
- stubManager.AppendToFile(File_Name2,"" + (i+1) + ". " + response.Progress/*.ToString("F4")*/);
-
- Thread.Sleep(2000);
- }
-
-
-} \ No newline at end of file