11-29-2023 12:14 PM
I have incorporated UserMessage calls into my built GUI app.
However, I when coding and running from SeqEditor, I want to open a window that receives and shows all the messages.
How can I obtain the Application Manager in order to register the event callback?
Solved! Go to Solution.
11-29-2023 12:17 PM - edited 11-29-2023 12:31 PM
OK, I thought I figured it out but I didn't.
What is handling UserMessages when running inside the Sequence Editor? How can I register for those messages?
11-29-2023 01:19 PM
FWIW, from when I worked with TestStand years ago I vaguely remember a customer implementing a panel where they used a code module in some callback like Login and it would display a dialog and register a UserMessages callback and the messages would appear in the floating panel. Then they would shutdown the panel in reverse, like a Logout callback. The key was that the panel implementation could not rely on an execution continuing to run in the background. I do not remember what language they were using though.
11-29-2023 01:25 PM - edited 11-29-2023 01:28 PM
Hello,
I get some code module running in parallel of a sequence (code module call from a sequence in a NewThread for instance), reacting to UIMessages.
I used the following kind of code:
The trick is the constant for the Variant To Data VI. Then, you can register a callback on the App Manager reference.
Hope this helps,