Axis Position Logger

More
05 Jan 2021 17:46 - 05 Jan 2021 17:51 #194159 by BigJohnT
Replied by BigJohnT on topic Axis Position Logger
Opps, my guess is I've never tested with more than 3 axes... I see the error is in the ui file I'll fix that in the morning.

JT
Last edit: 05 Jan 2021 17:51 by BigJohnT.
The following user(s) said Thank You: tommylight

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

More
05 Feb 2021 09:37 #197715 by Tady
Replied by Tady on topic Axis Position Logger
Great piece of software. I'm in the process of making a 3d printed arm and this is perfect for teaching the arm some sequential moves. The only thing is can a button be added to copy the points over to the axis screen so the user just presses play and the machine executes the points?
Nice work!

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

More
08 Feb 2021 23:30 #198096 by BigJohnT
Replied by BigJohnT on topic Axis Position Logger
Can you test the changes? I don't have PyQt4 on my development PC...

JT

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

More
09 Feb 2021 07:23 #198125 by Tady
Replied by Tady on topic Axis Position Logger
The Send to Axis button is grayed out

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

More
09 Feb 2021 07:29 #198126 by Tady
Replied by Tady on topic Axis Position Logger
Just for the sake of it I commented out
if IN_AXIS:

As expected the button on not grayed but I have an error
AttributeError: 'MyWindow' object has no attribute 'g_code'

Am I running the program wrong? The Log button logs the commands without problems

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

More
09 Feb 2021 10:32 - 09 Feb 2021 10:42 #198134 by Tady
Replied by Tady on topic Axis Position Logger
I managed to get it working
I changed this
def sendToAxis(self):
		gcode = [str(self.gcodeList.item(i).text()) for i in range(self.gcodeList.count())]
		#sys.stdout.write(self.g_code.get(0.0, END))
		sys.stdout.write('\n'.join(gcode)+"\nM2") # Add M2 to the end so LinuxCNC is happy

The Position logger needs to be opened with LinuxCNC for the button to work. If you run it in a separate terminal it doesn't work. Maybe because it is a separate process..
And you need to use Gmoccapy if you want to move the machine to log different positions. AXIS does not work, it looks like it is frozen while position logger is open
Last edit: 09 Feb 2021 10:42 by Tady.

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

More
09 Feb 2021 17:13 - 09 Feb 2021 17:13 #198164 by BigJohnT
Replied by BigJohnT on topic Axis Position Logger
Axis in LinuxCNC 2.8 works fine with the position logger running. However sys.stdout.write does not work with Axis.

JT
Last edit: 09 Feb 2021 17:13 by BigJohnT.

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

More
09 Feb 2021 19:24 #198187 by Tady
Replied by Tady on topic Axis Position Logger
I'm using 2.9.. And with the above changes and Gmocappy works great.. It would be better if I didn't need to close the program to publish the gcode but hey that is wishfull thinking :)
Thank you for the program. In my opinion it should be integrated in LinuxCNC
The following user(s) said Thank You: BigJohnT

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

More
11 Feb 2021 21:08 #198441 by Bari
Replied by Bari on topic Axis Position Logger
I just wanted to put this other position logger into the same place for future reference:

forum.linuxcnc.org/41-guis/25849-teach-i...m-generation?start=0
forum.linuxcnc.org/media/kunena/attachments/16368/Teachin.txt

Modified teach-in.py "stripped down the part of the gui and added a hal pin to capture the position"
"It is a HAL module with an input pin which appends to a file the actual position when the input is TRUE. It is intended to be used with an edge detector to trigger it."
Attachments:
The following user(s) said Thank You: tommylight, Tady

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

More
12 Feb 2021 23:42 #198613 by Tady
Replied by Tady on topic Axis Position Logger
Nice!
So you use a halpin to trigger the capture... How do you end the teaching?

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

Time to create page: 0.260 seconds
Powered by Kunena Forum