Calling Hal_Action_MDI from Glade VCP

More
28 Dec 2021 00:59 #230103 by slammers
I created a Glade VCP to call an action_mdi widget after pressing a button. Although this seems to work, a side affect seems to be that it sets the gmoccapy user interface to MDI mode. I have to press the manual button to close MDI mode and get back to manual mode.

Is there a way to prevent the UI from switching to MDI mode?

If not can you create an event after the MDI action completes and run code that switches the UI back to manual mode?

Can you run python code to execute mdi commands without using action widgets?

 

Please Log in or Create an account to join the conversation.

More
28 Dec 2021 02:44 #230105 by rodw
there are halui pins to select the mode. You could incorporate them into your action widget.

Please Log in or Create an account to join the conversation.

More
28 Dec 2021 02:56 #230106 by cmorley
You would typically check the mode before then call the action wait to complete then set the original mode.
If you know the mode after should always be say auto you could skip the checking mode part.
But it all needs to be done in python code in a handler file.

Or as Rod said, hack in some HAL code to call after.

Please Log in or Create an account to join the conversation.

Moderators: newbynobi
Time to create page: 0.109 seconds
Powered by Kunena Forum