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) { UInt32 temp ; // Request ---- // UInt32 : Address // Response ---- // UInt32 : Address // UInt32 : Value // String : Status // UInt32 : StatusWord while (true) { var response = stubManager.Run("StubFpgaReadRegRequest" ,0x60000100); var response1 = stubManager.Run("StubFpgaReadRegRequest" ,0x60000102); temp=(response.Value & 0xffff )+((response1.Value & 0xffff )<<16); temp=temp&0x0fffffff; stubManager.WriteHex(temp,8); stubManager.Write("\n"); Thread.Sleep(100); } }