Axis Position Logger

More
12 Feb 2021 23:42 #198614 by BigJohnT
Replied by BigJohnT on topic Axis Position Logger
Actually I have a Position Logger V2 that can record positions automaticity...

JT
The following user(s) said Thank You: Bari

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

More
13 Feb 2021 00:30 - 13 Feb 2021 00:31 #198626 by Bari
Replied by Bari on topic Axis Position Logger
Look like a keyboard action interrupts the capture.

except KeyboardIntrrupt:
raise SystemExit

@JT Yes, just posting this other script here for future reference.

Thanks!
Last edit: 13 Feb 2021 00:31 by Bari.

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

More
21 Feb 2021 14:42 #199618 by BigJohnT
Replied by BigJohnT on topic Axis Position Logger
I've been working on the Position Logger and well it's not just for Axis, it's for LinuxCNC

jethornton.github.io/emclog/index.html

I've added a timer based capture for positions.

I've added a context menu to delete lines.

I've added Save and Open menu items.

JT
The following user(s) said Thank You: tommylight

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

More
23 Apr 2022 08:53 - 26 Apr 2022 10:12 #240979 by jurod
Replied by jurod on topic Axis Position Logger
Hi, please help.
I can't install your Position Logger correctly in master version 2.9.0. 
The installation process will run correctly, but unable to start Logger.

hcnc@IS7XM:~$ sudo dpkg -i /home/hcnc/emclog_1.0.0_all.deb
[sudo] heslo pre uzivatela hcnc: 
(spus­ta sa databaza ... momentalne je nainstalovanych 100440 suborov alebo adresarov.
Preparing to unpack .../home/hcnc/emclog_1.0.0_all.deb ...
Unpacking emclog (1.0.0) over (1.0.0) ...
Nastavuje sa balí­k emclog (1.0.0) ...
Processing triggers for desktop-file-utils (0.23-4) ...
Processing triggers for mime-support (3.62) ...
Processing triggers for man-db (2.8.5-2) ...
hcnc@IS7XM:~$ 

 

Error from terminal:
hcnc@DELL9010:~$ emclog
Traceback (most recent call last):
  File "/usr/bin/emclog", line 9, in <module>
    import linuxcnc
ImportError: No module named linuxcnc
hcnc@DELL9010:~$
Attachments:
Last edit: 26 Apr 2022 10:12 by jurod.

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

More
26 Apr 2022 10:40 #241277 by andypugh
Replied by andypugh on topic Axis Position Logger
You might need to also install linuxcnc-uspace-dev

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

More
28 Apr 2022 11:13 #241455 by jurod
Replied by jurod on topic Axis Position Logger
I have it installed.
OK works for version 2.8.2, but switches to 2.9.0 it can't find the "linuxcnc" module.
This works correctly when switched to 2.8.2 again without any reinstallation of Position Logger.
In version 2.9.0 it still looks for some !linuxcnc! module.
Is it called something else in the 2.9.0?

From emclog.py:
#! /usr/bin/python

import os, sys, math

if sys.version_info[0] > 2:
    raise Exception("Python 2 is required.")

import ConfigParser
import linuxcnc

from PyQt5 import uic
from PyQt5.QtWidgets import (QApplication, QMainWindow, QCheckBox, QRadioButton,
QMessageBox, QFileDialog, QMenu)
from PyQt5.QtCore import Qt, QTimer, QEvent

IN_AXIS = os.environ.has_key("AXIS_PROGRESS_BAR")

if os.path.split(sys.argv[0])[0] == '/usr/bin':
    GUI_PATH = '/usr/lib/python3/dist-packages/libemclog'
    print('Installed')

if os.path.split(sys.argv[0])[0] == '.':
    GUI_PATH = os.path.split(os.path.realpath(sys.argv[0]))[0]
    print('In Development')
.......
......

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

More
28 Apr 2022 11:40 #241458 by jurod
Replied by jurod on topic Axis Position Logger
or it has something to do with python2.7 and python3

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

More
30 Apr 2022 16:56 #241723 by cakeslob
Replied by cakeslob on topic Axis Position Logger
Hey jurod, offtopic, but I have seen you and user domi appear to have a czech(?) modified version of axis, I was wondering where you found it

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

More
01 May 2022 17:33 - 01 May 2022 17:36 #241802 by jurod
Replied by jurod on topic Axis Position Logger
I didn't find it, but I did it. Slovak language.
forum.strojirenstvi.cz/viewtopic.php?t=31115
Last edit: 01 May 2022 17:36 by jurod.
The following user(s) said Thank You: tommylight, cakeslob

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

More
09 May 2022 09:05 #242365 by jurod
Replied by jurod on topic Axis Position Logger
I've been working on it for a week. Does anyone know why it can't find the linuxcnc module?

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

Time to create page: 0.212 seconds
Powered by Kunena Forum