Axis Position Logger

More
9 years 4 months ago #94753 by bladekel

BigJohnT wrote: After playing around with the teach-in script I decided to expand on that thought and created a data logger with more options.

Attachment not found



Yet to do is the menu items like Save etc. Anyway I thought I'd share this to see if I get any feedback.

To run make sure postion-logger.py is executable (right click properties) and Axis is running before you start the program.
JT


Thats wonderful BigJohnT.
I modified this script to run as embedded tab on emc.

I defined a hot-key from glade with Properties>Common>Accelerators.
I used your script alone(not as embedded tab) and I can use the hot-key but when I tried to use it as embedded tab, I couldnt use the hot-key.

Is there a solution about this ?

Please Log in to join the conversation.

More
9 years 4 months ago #94762 by BigJohnT
Replied by BigJohnT on topic Axis Position Logger
You might post the code you wrote and someone may know the answer. Without the code we can only guess...

JT

Please Log in to join the conversation.

More
9 years 4 months ago #94765 by bladekel
Replied by bladekel on topic Axis Position Logger

BigJohnT wrote: You might post the code you wrote and someone may know the answer. Without the code we can only guess...

JT


Actually there is no more code than yours.
I only deined an accelerator key to a log button from Properties>Common>Accelerators.

I can use it if I use your script externally but cant with an embedded tab.

Please Log in to join the conversation.

More
9 years 4 months ago #94766 by BigJohnT
Replied by BigJohnT on topic Axis Position Logger
My guess is if the window is not on top the Linux accelerator key won't work, but this has nothing to do with LinuxCNC AFAIK. I use Linux Mint and don't see any place to define an accelerator key and I'm not sure what one is.

JT

Please Log in to join the conversation.

More
9 years 4 months ago #94768 by bladekel
Replied by bladekel on topic Axis Position Logger

BigJohnT wrote: My guess is if the window is not on top the Linux accelerator key won't work, but this has nothing to do with LinuxCNC AFAIK. I use Linux Mint and don't see any place to define an accelerator key and I'm not sure what one is.

JT


What I trying to do is, using your script without mouse. ( only with keyboard ).

So I defined <Alt>KP_1 as accelerator to log button.
When I pressed that keyboard button combination, I can log the coordinates if I run your script externally.

But when I modified it to run as embedded tab in emc, the keyboard combination didnt work.

All of the keyboard shortcuts of emc are working well, but when I open your script's tab and tried that shortcut-key,it didnt work....

I also moved the mouse cursor on the tab, but again didnt work....

Please Log in to join the conversation.

More
9 years 4 months ago #94802 by andypugh
Replied by andypugh on topic Axis Position Logger
I expect that the key events are only seen my the parent gui, You would need to persuade the parent GUI to pass them to the tab. This might be a challenge.

Please Log in to join the conversation.

Time to create page: 0.102 seconds
Powered by Kunena Forum