03-23-2020 04:13 AM
Hi all,
I am trying to get test step status, step name, sub sequence name from client sequence using ProcessModelPostStep by PostUIMessageEX.
and in the Full Featured operator interface i configured Application Manager to receive the user message as in attached snapshot. But this is not working? Anything wrong in this approach? Please help.
03-24-2020 09:57 AM
So the first issue I see is that you are running it asynchronously. That's fine if you are just sending data to the UI and don't care what the UI does with it. In this case you are using the sequence context and iterating through it for some results (it looks like). The sequence context could go out of scope if you are asynchronous like this. I would set that to false.
Also, I would recommend sending the sequence context as the ActiveX data. Or even better yet, for your case, the step reference as the ActiveX data. In LabVIEW you can use the Variant to Data node to convert it back to a TS reference.
Or if you insist on doing it the way you are currently doing it then reference this thread: https://forums.ni.com/t5/NI-TestStand/How-To-Use-UI-Message-activeXDataParam/td-p/1176203
Hope this helps,
03-24-2020 11:06 AM
Thanks for your response.
My bad the actual issue was I put a probe in the Event handler VI and expecting to see some data on probe. But I have not noticed that Callback VI created are pre allocated clone re-entrant execution, So I thought ProcessModelPostStep in my process model was not posting any message. Actually it is working in the same approach.
The information in your post is very helpful which I could use it to improve my TestStand UI.
Thanks Again.
Regards,
Sridhar