08-14-2013 09:25 PM
I'm using TS to run a verification sequence of ni scope and want to display measurement in UI developed with LV. I just want to fresh my UI waveform graph after one measurement is completed so i use postusermessageex method as attatch file. The question is that the UI will not responding to this message and i think something is wrong with my UI code. Can anyone pls look at my code and give me suggestions, thanks very much.
Solved! Go to Solution.
08-19-2013 11:07 PM - edited 08-19-2013 11:08 PM
From a brief look at the code I noticed the following issues:
I am unable to run your code due to missing dependencies, so please let me know if you are still having trouble after implementing the above.
08-23-2013 02:10 AM
Thanks very much for you reply.
I tried your suggestions about changing ActiveX Container to ActiveX control, but get no results. Actually, the AppManger control is just used to setup callbacks. And what the UI monitor.vi expects is still the SequenceContext which is passed in the sequence step " Pre Set" by RunState.Thread.PostUIMessageEx(UIMsg_UserMessageBase +1,0,"",ThisContext,True)
Attatched is the whole file
08-23-2013 03:01 AM
Thanks again!
Problem solved by passing RunState.Engine.GetInternalOption(InternalOption_ApplicationManager) to the UI Monitor.vi