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; const Int32 FPGA1 = 0x60000000; const UInt32 F1_LS_SCREW_LEFT = 0x02; const UInt32 F1_LS_SCREW_RIGHT = 0x01; const Int32 F1_GPI_LS3_D = 0x40; Int32 loop = 1; public void OnExecute(StubManager stubManager) { while(loop == 1) { var response = stubManager.Run("StubFpgaReadRegRequest" , FPGA1 + F1_GPI_LS3_D); Thread.Sleep(1000); stubManager.WriteLineHex(response.Value,4); } }