Probe Basic in QTDragon

More
2 years 2 months ago #307610 by cmorley
Replied by cmorley on topic Probe Basic in QTDragon
In your configuration folder, you should see a 'qtvcp' folder.
In that folder add 'images' and 'widgets_ui' folders.

for versa:
in the images folder copy 'probe_icons' from share/qtvcp/images/probe_icons
In the folder widgets_ui copy anything with versa in the name from share/qtvcp/widgets_ui

for basic_probe same idea
in the images folder copy widgets/basic_probe_help and widgets/basic_probe_icons
In the folder widgets_ui copy anything with basic in the name from share/qtvcp/widgets_ui

if you run qtdragon with the - i or -d debugging on you should see text like this in terminal:

[QTvcp.QTVCP.QT_PSTAT][INFO] Using LOCAL widget file from: /home/chris/emc/configs/sim/qtdragon/qtdragon_tool_probe/qtvcp/widgets_ui/ (qt_pstat.py:329)
[QTvcp.QTVCP.QT_PSTAT][INFO] Using LOCAL images path from: /home/chris/emc/configs/sim/qtdragon/qtdragon_tool_probe/qtvcp/images/ (qt_pstat.py:346)

Now you can modify those files in your configuration folder and qtdragon will use them instead.

Chris

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

More
2 years 1 month ago #309227 by Carsten
Replied by Carsten on topic Probe Basic in QTDragon
Hi Chris,

thanks. I tried it.
I had to copy qtdragon.ui to qtvcp/widgets_ui also to get the local directories accepted.

But then, basic probe does not call my front_right_outside.ngc.
Unfortunately  the processing changed from ngc to python image missing /media/kunena/emoticons/sad.png

Property for button in basic_probe.ui is now "probe" instead of "filename".

basic_probe.py:
def probe_btn_clicked(self, button):
        cmd = button.property('probe')
        #print("Button clicked ", cmd)
        self.get_parms()
        self.start_probe(cmd)

probe_routines.py:
    # Front right outside corner
    def probe_outside_xmyp(self):
        # move X+ xy_clearance Y+ edge_length
        s = """G91
        G1 F%s X%f Y%f
        G90""" % (self.data_rapid_vel, self.data_xy_clearance, self.data_side_edge_length )        
        rtn = self.CALL_MDI_WAIT(s, self.timeout) 

Carsten
 



 

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

More
2 years 1 month ago #309689 by Carsten
Replied by Carsten on topic Probe Basic in QTDragon
Hi,

problem solved.

You can have your own qtdragon_{,hd_}handler.py in e.g. qtvcp/screens/qtdragon{,_hd} and have full control over the GUI.

Regards
Carsten

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

More
2 years 1 month ago #309808 by cmorley
Replied by cmorley on topic Probe Basic in QTDragon
ok good. Sorry I forgot that the probe routines were switched from NGC files to python.

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

Moderators: cmorley
Time to create page: 0.173 seconds
Powered by Kunena Forum