Сustomization QTvcp

More
17 Apr 2020 18:27 #164288 by cmorley
Replied by cmorley on topic Сustomization QTvcp

The subroutine path is wrong in the ini.
remove ~ and add /home/jura
And why is it looking for probe_basic files there?
You are using QtVCP, not PyQtVCP.


qtdragon has a basic probe.

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

More
17 Apr 2020 18:31 - 17 Apr 2020 18:31 #164289 by cmorley
Replied by cmorley on topic Сustomization QTvcp
Yes it looks like the dialog loading doesn't catch the filename only the folders.
I'm still thinking this is related to language - as it works properly for me.
I'll see if I can remember how to change languages on my system and try again.

Chris
Last edit: 17 Apr 2020 18:31 by cmorley.
The following user(s) said Thank You: tommylight

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

More
17 Apr 2020 18:31 #164290 by tommylight
Replied by tommylight on topic Сustomization QTvcp
I thought after i wrote that, i vaguely recall using the probe basic name for something else.

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

More
17 Apr 2020 18:33 #164291 by cmorley
Replied by cmorley on topic Сustomization QTvcp

Check what file it is trying to open on startup, it should be in the ini file as
open_file=xxxxxxx


qtvcp doesn't currently support preloading programs.
The following user(s) said Thank You: tommylight

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

More
17 Apr 2020 18:37 #164293 by tommylight
Replied by tommylight on topic Сustomization QTvcp

Check what file it is trying to open on startup, it should be in the ini file as
open_file=xxxxxxx


qtvcp doesn't currently support preloading programs.

Did not know that, thank you for clarifying.

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

More
17 Apr 2020 18:40 #164294 by cmorley
Replied by cmorley on topic Сustomization QTvcp
Please remind me what distribution you are using.

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

More
17 Apr 2020 19:06 #164298 by cmorley
Replied by cmorley on topic Сustomization QTvcp
I see some weirdness:
your log:

2020-04-17 09:54:48,769 - QtDesigner.QTVCP.QT_ACTION - INFO - Homing Joint: -1
2020-04-17 09:54:51,614 - QtDesigner.QTVCP.QT_ACTION - DEBUG - Load program /home/jura/linuxcnc/nc_files
2020-04-17 09:55:05,914 - QTvcp.QTVCP.WIDGETS.OVERLAY_WIDGET - DEBUG - Overlay - Show
2020-04-17 09:55:08,740 - QTvcp.QTVCP.WIDGETS.DIALOG_WIDGET - DEBUG - Button pressed is: &Yes
2020-04-17 09:55:08,741 - QTvcp.QTVCP.WIDGETS.OVERLAY_WIDGET - DEBUG - Overlay - Hide
2020-04-17 09:55:08,742 - QTvcp.QTVCP.WIDGETS.DIALOG_WIDGET - DEBUG - Value of pressed button: 16384
2020-04-17 09:55:08,845 - QTvcp.QTVCP.QT_MAKEPINS - INFO - Closing cleanup on: basicprobe
2020-04-17 09:55:08,846 - QTvcp.QTVCP.WIDGETS.BASIC_PROBE - DEBUG - Saving Basic Probe data to preference file.


Mine:

2020-04-17 11:57:56,248 - QtDesigner.QTVCP.QT_ACTION - INFO - Homing Joint: -1
2020-04-17 11:58:03,842 - QTvcp.QTVCP.WIDGETS.OVERLAY_WIDGET - DEBUG - Overlay - Show
2020-04-17 11:58:14,314 - QTvcp.QTVCP.WIDGETS.OVERLAY_WIDGET - DEBUG - Overlay - Hide
2020-04-17 11:58:14,314 - QTvcp.QTVCP.WIDGETS.DIALOG_WIDGET - DEBUG - Saving FileDialog-geometry data from widget screen_options to file.
2020-04-17 11:58:14,456 - QtDesigner.QTVCP.QT_ACTION - DEBUG - Load program /home/chris/linuxcnc/nc_files/hazzy.ngc
2020-04-17 11:58:14,502 - QTvcp.QTVCP.WIDGETS.GCODE_GRAPHICS - DEBUG - load the display: /home/chris/linuxcnc/nc_files/hazzy.ngc
2020-04-17 12:03:12,493 - QTvcp.QTVCP.WIDGETS.OVERLAY_WIDGET - DEBUG - Overlay - Show
2020-04-17 12:03:14,039 - QTvcp.QTVCP.WIDGETS.DIALOG_WIDGET - DEBUG - Button pressed is: &Yes
2020-04-17 12:03:14,040 - QTvcp.QTVCP.WIDGETS.OVERLAY_WIDGET - DEBUG - Overlay - Hide
2020-04-17 12:03:14,040 - QTvcp.QTVCP.WIDGETS.DIALOG_WIDGET - DEBUG - Value of pressed button: 16384

2020-04-17 12:03:14,139 - QTvcp.QTVCP.QT_MAKEPINS - INFO - Closing cleanup on: basicprobe
2020-04-17 12:03:14,140 - QTvcp.QTVCP.WIDGETS.BASIC_PROBE - DEBUG - Saving Basic Probe data to preference file.


Notice how your's loads the program before the overlay is shown or hidden and before the yes button is pressed.
Also your is missing the actual program name so it can't be actually loading a program I would think.

Chris

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

More
17 Apr 2020 19:26 #164301 by cmorley
Replied by cmorley on topic Сustomization QTvcp

Found where the error is. How are you Chris with this file, load_dialog_action save in
examples and then there he searches for the error too.


Ahh yes I get it now in qtdragon it does preload a program!
I didn't have 'reload program' option selected that is why i didn't get the error.

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

More
17 Apr 2020 19:28 #164302 by cmorley
Replied by cmorley on topic Сustomization QTvcp
In dialog_widget.py line 532 change to:
        if fname and not return_path: 
            if self.PREFS_:
                self.PREFS_.putpref('last_file_path', fname, str, 'BOOK_KEEPING')
            ACTION.OPEN_PROGRAM(fname)
            STATUS.emit('update-machine-log', 'Loaded: ' + fname, 'TIME')
        return fname

Should store the program name properly

Chris
The following user(s) said Thank You: hottabich

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

More
17 Apr 2020 19:29 #164303 by tommylight
Replied by tommylight on topic Сustomization QTvcp
Now i am confused ! :)
All is good, i will continue to monitor from a distance.

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

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