NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

PostUIMessageEx in ProcessModelPostStep is not working.. Need help

Inkedapplication manager UIMsg_LI.jpg

Inkedprocess model_LI.jpg

ui message event handler.PNG

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.

0 Kudos
Message 1 of 3
(2,136 Views)

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,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 3
(2,053 Views)

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

 

 

0 Kudos
Message 3 of 3
(2,048 Views)