- Posts: 6803
- Thank you received: 0
qtvcp issues
auto-mation-assist wrote: Chris,
I have been working on getting some things copied to the computer that actually controls my machine.
I commented out all the hal pins that are not available yet so that it would load. Now working on eliminating some minor errors.
A file is attached with the errors I need to resolve. It is finding the macros now.
In my original post I had listed the qtvcp_plugin.py file as not compiling by error. I later removed it from my post.
I have attached it just in case and the versa_probe_plugin.py which does not compile. I can also try to figure why that is.
I don't see the file qtvcp_plugin.py here?
Please Log in to join the conversation.
JT
Please Log in to join the conversation.
If the button is checkable, it connects a 'toggled' signal.
If it's a momentary button, it connects to 'pressed' and 'released' signals.
The code was not doing this properly
Chris M
Please Log in to join the conversation.
I see it uses HAL pins for setting data in the probe routines.
I'm not sure why that way was chosen.
I eliminated that on my port, but then thought I should ask about that.
Chris M
Please Log in to join the conversation.
I big red LED which shows the current probe-state. I like to manually test my probe prior to running an automatic probe routine, in case something has gone wrong such that the probe will drive all the way through the part...
Please Log in to join the conversation.
Chris
Please Log in to join the conversation.
- auto-mation-assist
- Offline
- Platinum Member
-
- Posts: 425
- Thank you received: 0
Please Log in to join the conversation.
- auto-mation-assist
- Offline
- Platinum Member
-
- Posts: 425
- Thank you received: 0
I have verified that you last fix cured the problem I was seeing with the state of the hal pins.
In relation to hal pins there will be time when a user like myself will want to add custom functions that are not needed by everyone and thus may need to be able to generate hal pins in a handler. Can you provide some input on the best way to do that and give a sample of the required code?
Please Log in to join the conversation.
- auto-mation-assist
- Offline
- Platinum Member
-
- Posts: 425
- Thank you received: 0
/qtvcp/plugins/qtvcp_plugin.py
/qtvcp/plugins/versa_probe_plugin.py
/qtvcp/widgets/versa_probe.py
I have manually compiled all three and each is able to be compiled without errors. It seems to me that the last item in the list within qtvcp_plugin.py that worked correctly was for the macro widget. Thus in order for that to add macro widget it would have been able to run the /qtvcp/plugins/qtvcp_plugin.py file in order for that to happen. I recall that one of the files may have had /usr/bin/env python3 on its top entry.
I'm not sure yet what is supposed to wake up the /qtvcp/plugins/qtvcp_plugin.py file and execute it but will try to find some text in some file that relates to that. I will need to copy the qt5vcp_py2 folder to one of my windows based computers to use a search routine that may work for such a search.
Please Log in to join the conversation.
There should be a link to it from...
Usr/....../designer/....plugin/python plug in.
Sorry I'm at work so can,t be specific.
There is a README in
Lib/qtvcp/designer I think that explains things better.
Chris
Please Log in to join the conversation.
