Need help in running a simple 3 button UI using Glade

More
4 years 1 month ago #251029 by vkhargwanshi
I am using 2.9 version. Synched latest and built code 3 days back

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

More
4 years 1 month ago #251031 by cmorley
you list of errors was not attached.
Gladevcp in master uses GLADE3 and python3

I take it you want to build a completely custom ui - not a panel attached to an existing screen.
Gladevcp or Qtvcp would be capable of this.

How will the user be expected to home machine - do they need to set an origin?

Chris

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

More
4 years 1 month ago #251047 by vkhargwanshi
Sorry didn't observe that file didn't get attached.. Just added in original message.

I will provide a small GCode to bring the machine to home. So basically to move one gcode to allow movement in predefined manner. Then emergency stop and another gcode for bringing machine to home.

As you said gladevcp can be used, but I couldn't get it working as expected and I couldn't understand which command to use for running GCode.. I believe EMC Run should work.. but couldn't find details on how to pass an argument and how the HAL file is connected to this custom UI..

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

More
4 years 1 month ago #251051 by cmorley
I would use the new gladevcp libraries to do this:
linuxcnc.org/docs/devel/html/gui/gladevcp-libraries.html
Should be more straight forward.
So a gladevcp panel with a few buttons that connect to a python handler file that calls the functions such as
ACTION.OPEN_PROGRAM()
ACTION.RUN()

Surely lots of details left out.

Again if it was I, i would develop this as a side panel on AXIS untill you get it to the point that you can do everything from the panel then use the panel directly instead of AXIS.

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

More
4 years 1 month ago #251052 by cmorley
file still not applied.

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

More
4 years 1 month ago #251072 by vkhargwanshi
Thank you so much cmorley.

As you said i should first develop as side panel till I get a complete hold.

I checked again, i can see the file as part of my 1st question. Attached is screenshot of how i m able to see.. it's attached 2 times 

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

Moderators: HansU
Time to create page: 0.305 seconds
Powered by Kunena Forum