qtvcp issues

More
20 Nov 2018 13:51 #121048 by cmorley
Replied by cmorley on topic 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 or Create an account to join the conversation.

More
20 Nov 2018 13:54 #121049 by BigJohnT
Replied by BigJohnT on topic qtvcp issues
In PyQt the pressed, clicked, and released only fire one time. pressed fires when down and clicked and released fire when the button is released. Not sure what is passing the pressed to your method.

JT

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

More
20 Nov 2018 14:20 #121057 by cmorley
Replied by cmorley on topic qtvcp issues
I think I got it fixed - pushed.

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 or Create an account to join the conversation.

More
20 Nov 2018 14:23 #121058 by cmorley
Replied by cmorley on topic qtvcp issues
I'm not familiar with versa probe.
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 or Create an account to join the conversation.

More
20 Nov 2018 15:12 #121063 by andypugh
Replied by andypugh on topic qtvcp issues
Can I make a suggestion for the probe screen?

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 or Create an account to join the conversation.

More
20 Nov 2018 21:12 #121088 by cmorley
Replied by cmorley on topic qtvcp issues
I was thinking that too Andy :)

Chris

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

More
21 Nov 2018 02:07 #121093 by auto-mation-assist
Replied by auto-mation-assist on topic qtvcp issues
It is always nice to be able to verify that a probe is working properly before using it. So a test led is a good idea. All the probes that I have built for my self have such an led built in which has proved to be very useful.

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

More
21 Nov 2018 02:35 #121095 by auto-mation-assist
Replied by auto-mation-assist on topic qtvcp issues
Chris,

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 or Create an account to join the conversation.

More
21 Nov 2018 02:51 - 21 Nov 2018 02:51 #121096 by auto-mation-assist
Replied by auto-mation-assist on topic qtvcp issues
I have also been trying to resolve to problem with your work on the versa-probe widget not showing up for me. There are three files that are never called and not compiling.

/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.
Last edit: 21 Nov 2018 02:51 by auto-mation-assist.

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

More
21 Nov 2018 03:08 #121097 by cmorley
Replied by cmorley on topic qtvcp issues
Qtvcp_plugin is actually the first file to be called.
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 or Create an account to join the conversation.

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