- Posts: 6803
- Thank you received: 2181
Python Component issueing errors or warnings to LinuxCNC
5 years 6 months ago #207377
by cmorley
Replied by cmorley on topic Python Component issueing errors or warnings to LinuxCNC
We should create a NML message command for this purpose that can be send from python's linuxcnc module. I wonder how hard that would be.
Please Log in or Create an account to join the conversation.
5 years 6 months ago #207452
by Roiki
Replied by Roiki on topic Python Component issueing errors or warnings to LinuxCNC
Afaik it already exists, it's just not included in the python module.
Please Log in or Create an account to join the conversation.
5 years 6 months ago #207458
by cmorley
Replied by cmorley on topic Python Component issueing errors or warnings to LinuxCNC
What makes you say that?
Please Log in or Create an account to join the conversation.
5 years 6 months ago #207577
by andypugh
Replied by andypugh on topic Python Component issueing errors or warnings to LinuxCNC
There do seem to be messages:
github.com/LinuxCNC/linuxcnc/blob/2e75b0..._intf/emc_nml.hh#L33
And emcmodule seems to read them, but not write them?
github.com/LinuxCNC/linuxcnc/blob/2e75b0...s/emcmodule.cc#L1496
github.com/LinuxCNC/linuxcnc/blob/2e75b0..._intf/emc_nml.hh#L33
And emcmodule seems to read them, but not write them?
github.com/LinuxCNC/linuxcnc/blob/2e75b0...s/emcmodule.cc#L1496
Please Log in or Create an account to join the conversation.
5 years 5 months ago #207625
by Roiki
Replied by Roiki on topic Python Component issueing errors or warnings to LinuxCNC
You can read the nml source. There are messages for error messages there. They are used internally by the application but are not included in the linuxcnc.command method for sending them on the command channel to the nml error channel. As Andy Pugh pointed out.
I haven't looked at the source enough to see if these would be difficult to implement or not. Or if they exist on the c++ api that's under the python one.
I haven't looked at the source enough to see if these would be difficult to implement or not. Or if they exist on the c++ api that's under the python one.
Please Log in or Create an account to join the conversation.
5 years 5 months ago #208108
by Stormholt
Replied by Stormholt on topic Python Component issueing errors or warnings to LinuxCNC
I don't know if its a very elegant way but, for my axis tabs I have created a hal pin only to print an error/warning using the "message" hal real time component.
Please Log in or Create an account to join the conversation.
Time to create page: 0.218 seconds