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; public void OnExecute(StubManager stubManager) { // FALSE - to the body //TRUE out // Request ---- // UInt32 : ValveId // UInt32 : Inkflow // Boolean : ValveOn // Request ---- // UInt32 : ADCDevice // Response ---- // UInt32 : ADCDevice // Int32 : SamplingInBits // Int32 : VoltageSamplingMv // String : Status // UInt32 : StatusWord //var response = stubManager.Run("StubIntADCReadRequest" ,UInt32); // Response ---- // String : Status // UInt32 : StatusWord //open valve toward the mixer, run dispenser 7 //var response3 = stubManager.Run("StubValveRequest" ,6, 10, true); //var response = stubManager.Run("StubMotorRunRequest" ,3, true, 800); //Thread.Sleep(3000); //open valve toward the midtank, stop dispenser 7 //var response3 = stubManager.Run("StubValveRequest" ,6, 10, false); var response2 = stubManager.Run("StubMotorStopRequest" ,3,0); //Thread.Sleep(10); //var response1 = stubManager.Run("StubMotorMovRequest" ,12, false, 150); // Request ---- // UInt32 : Address // Response ---- // UInt32 : Address // UInt32 : Value // String : Status // UInt32 : StatusWord /*{ var response = stubManager.Run("StubMotorRunRequest" ,14, false, 20); Thread.Sleep(600); var response1 = stubManager.Run("StubMotorRunRequest" ,14, true, 20); Thread.Sleep(600); } //var response1 = stubManager.Run("StubMotorStatusRequest" ,14, true); //Thread.Sleep(1000); // var response = stubManager.Run("StubMotorRunRequest" ,24, false, 20); // Thread.Sleep(700); var response2 = stubManager.Run("StubMotorStopRequest" ,15, 0); var response4 = stubManager.Run("StubMotorStopRequest" ,14, 0);*/ // Request ---- // UInt32 : Address // UInt32 : Value // Response ---- // String : Status // UInt32 : StatusWord //var response = stubManager.Run("StubFpgaWriteRegRequest" ,0x600008e2, 0); // Request ---- // UInt32 : Address // Response ---- // UInt32 : Address // UInt32 : Value // String : Status // UInt32 : StatusWord //var response1 = stubManager.Run("StubFpgaReadRegRequest" ,0x600008e2); }