12-15-2009 02:25 PM
I have a CVI TestStand UI and a sequence with PostMessageUI for updating some indicators.
If it is up and running (but no sequence executing), but instead the sequence is run from the TestStand sequence editor I'd like to have the indicators updated - even though the sequence is executing on another TestStand process.
To summarize, what needs to be done to make my TestStand CVI UI capable of handling posted messages when they are posted from a different TestStand process?
Thanks!
Ronnie
12-15-2009 04:26 PM
It's been since version 3.1 or 3.5 since I checked this out, but UIMessages only go to one OI, and that is the one that created the TestStand process, in your case the SeqEditor.
You might try an alternative messaging mechanism, for example ques can be shared between TestStand instances, or between TestStand and LabVIEW (or CVI I assume) processes. Check out the activeX library NI TestStand Synchronization, SyncManager. You'd have to enque in the SeqEditor process, and have a loop in the CVI OI to deque messages, or a loop in the TestStand (CVI) process that copied messages from the que and then created UIMsgs for the CVI OI. Just an idea.
cc
12-16-2009 01:28 AM
Hi,
An other idea is using of Spy++, if you just want to "see" the messages that are fired from TS
http://msdn.microsoft.com/en-us/library/aa265988(VS.60).aspx
maybe this helps
Juergen
12-16-2009 11:16 AM
Thanks for your comments guys. - to clarify - I want a general TestStand Operator Interface which can see and process custom UIMessages wherever they are sent from - i.e. any TestStand sequence execution on any TestStand application. I know in Windows, you can do a PostMessage from an app which can be general allowing any other app to pick it up if they want to.
I'll continue to think about it.
Thanks,
Ronnie
12-16-2009 11:20 AM
omygawd - I gave looking for something to monitor these messages several years ago. This could come in handy for troubleshooting hard stuff, thanks!
cc