- Posts: 3981
- Thank you received: 994
Axis Position Logger
- BigJohnT
- Offline
- Administrator
-
Less
More
5 years 8 months ago #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
JT
Please Log in or Create an account to join the conversation.
- Tady
- Offline
- Premium Member
-
Less
More
- Posts: 105
- Thank you received: 11
5 years 8 months ago #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.
- Tady
- Offline
- Premium Member
-
Less
More
- Posts: 105
- Thank you received: 11
5 years 8 months ago #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
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.
- Tady
- Offline
- Premium Member
-
Less
More
- Posts: 105
- Thank you received: 11
5 years 8 months ago - 5 years 8 months ago #198134
by Tady
Replied by Tady on topic Axis Position Logger
I managed to get it working
I changed this
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
I changed this
Code:
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: 5 years 8 months ago by Tady.
Please Log in or Create an account to join the conversation.
- BigJohnT
- Offline
- Administrator
-
Less
More
- Posts: 3981
- Thank you received: 994
5 years 8 months ago - 5 years 8 months ago #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
JT
Last edit: 5 years 8 months ago by BigJohnT.
Please Log in or Create an account to join the conversation.
- Tady
- Offline
- Premium Member
-
Less
More
- Posts: 105
- Thank you received: 11
5 years 8 months ago #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
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.
Time to create page: 0.854 seconds