Axis Position Logger

More
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
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
The following user(s) said Thank You: tommylight

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

More
2 years 8 months ago #294476 by phillc54
The following user(s) said Thank You: tommylight

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

  • Aciera
  • Away
  • Administrator
  • Administrator
More
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).
The following user(s) said Thank You: Ehsan_R

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

  • Aciera
  • Away
  • Administrator
  • Administrator
More
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:
Code:
USER_M_PATH = ./mcodes

3. Executing 'm129' opens the loggerui window.


 

File Attachment:

File Name: folders.tar.gz
File Size:5 KB


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.
The following user(s) said Thank You: Ehsan_R

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

  • Aciera
  • Away
  • Administrator
  • Administrator
More
2 years 8 months ago #294516 by Aciera
Replied by Aciera on topic Axis Position Logger
Forgot:
The point was that you can create a button in the gui and connect it to an MDI command in hal.

[HALUI]
MDI_COMMAND = M129

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

  • Aciera
  • Away
  • Administrator
  • Administrator
More
2 years 8 months ago - 2 years 8 months ago #294591 by Aciera
Replied by Aciera on topic Axis Position Logger
Here is my last version.

I removed everything I could not get working and added a bit more functionality to the context menu (right click in the gCode list)

 

 

File Attachment:

File Name: libemclog.tar.gz
File Size:6 KB


[edit]

Update:
- Shows now the current file path above the GCode window
- Creates the Axes CheckBoxes and PositionLabels dynamically from the active axes information
- Fixed the Arc move functionality


Note: Still untested on a deb install.
Last edit: 2 years 8 months ago by Aciera.
The following user(s) said Thank You: Ehsan_R

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

Time to create page: 0.325 seconds
Powered by Kunena Forum