- Posts: 447
- Thank you received: 0
Axis Position Logger
2 years 8 months ago #294417
by Mecanix
Replied by Mecanix on topic Axis Position Logger
Please Log in to join the conversation.
2 years 8 months ago #294424
by Ehsan_R
Replied by Ehsan_R on topic Axis Position Logger
Code:
ehsan@debian:~/Desktop$ python3 emclog.py
File "/home/ehsan/Desktop/emclog.py", line 193
if moveType in :
^
SyntaxError: invalid syntax
Please Log in to join the conversation.
2 years 8 months ago #294425
by Aciera
Replied by Aciera on topic Axis Position Logger
Not sure why that got lost, should be:
[edit]
seems the editor doesn't like the square brackets.
Code:
if moveType in ['G1', 'G2', 'G3']
[edit]
seems the editor doesn't like the square brackets.
Please Log in to join the conversation.
2 years 8 months ago #294426
by Ehsan_R
Replied by Ehsan_R on topic Axis Position Logger
Thanks a lot it works
Please Log in to join the conversation.
2 years 8 months ago #294428
by Ehsan_R
Replied by Ehsan_R on topic Axis Position Logger
How can I create a button in the graphical interface of AXIS to run the program by pressing it?
Or add it as a tab to the GUI
Or add it as a tab to the GUI
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
Less
More
- Posts: 22010
- Thank you received: 3
2 years 8 months ago #294441
by tommylight
Replied by tommylight on topic Axis Position Logger
Probably using VCP panels
linuxcnc.org/docs/html/gui/pyvcp.html
linuxcnc.org/docs/html/gui/pyvcp.html
Please Log in to join the conversation.
2 years 8 months ago #294471
by Mecanix
Replied by Mecanix on topic Axis Position Logger
Aren't those GTK ui Axis Tabs friendly? I could be wrong, and much like Tommy recommended (pyvcp), I think you can also have it all running from inside linuxcnc e.g AXISTAB: [Preview] | [DRO] | [EMCLOG]
Search for GladeVCP if interested in learning new tricks. Something like below, not far off anyway...
INI file
Search for GladeVCP if interested in learning new tricks. Something like below, not far off anyway...
INI file
Code:
[DISPLAY]
EMBED_TAB_NAME = EMCLOG
MBED_TAB_LOCATION = ntb_user_tabs1
EMBED_TAB_COMMAND = halcmd loadusr -Wn gladevcp gladevcp -c gladevcp -x {XID} -u ./emclog/emclog.py ./emclog/emclog.ui
Please Log in to join the conversation.
2 years 8 months ago #294476
by phillc54
Replied by phillc54 on topic Axis Position Logger
Please Log in to join the conversation.
2 years 8 months ago #294497
by Aciera
Replied by Aciera on topic Axis Position Logger
The logger ui uses pyqt not gtk (ie it's not a glade panel).
Please Log in to join the conversation.
2 years 8 months ago #294514
by Aciera
Replied by Aciera on topic Axis Position Logger
You can execute a python script using a custom M-code:
1. I have the folders 'libemclog' and 'mcodes' in my config folder
2. the [RS274NGC] section of the ini file must contain the path to the 'mcodes' folder:
3. Executing 'm129' opens the loggerui window.
I have modified emclog.py so the file handling (Open, Save, SaveAs) is a bit more user friendly.
Note: I'm on a rip installation so I'm not sure the paths are correct for a deb install.
1. I have the folders 'libemclog' and 'mcodes' in my config folder
2. the [RS274NGC] section of the ini file must contain the path to the 'mcodes' folder:
Code:
USER_M_PATH = ./mcodes
3. Executing 'm129' opens the loggerui window.
Attachment not found
I have modified emclog.py so the file handling (Open, Save, SaveAs) is a bit more user friendly.
Note: I'm on a rip installation so I'm not sure the paths are correct for a deb install.
Please Log in to join the conversation.
Time to create page: 0.160 seconds
