07-06-2016 12:58 AM
Hi,
I've managed to send my message by PostUIMessageEx from TS sequence and handle it in my OI.
Is it way to send same PostUIMessageEx message from C# dll?
I'm trying to do following but not succseeded
public void UDPConnect (SequenceContext seqContext, out bool result, out String reportText, out bool errorOccurred, out int errorCode, out String errorMsg)
{
PropertyObject propertyObject = seqContext.AsPropertyObject();
Thread.PostUIMessageEx(NationalInstruments.TestStand.Interop.API.UIMessageCodes.UIMsg_UserMessageBase + 3, 0.0, "Hello", propertyObject.GetValInterface("Locals.Thread", 0), true);
}
Please find attachment.
Thanks a lot
Solved! Go to Solution.
07-06-2016 09:43 AM
Where is "Thread" coming from? You need to get it from the sequence context. Thread is an object you need to make the call on.
Hope this helps,
-Doug