Output from hal user component

More
2 years 4 months ago #303650 by ississ
I think I have asked this before but couln't find the question or the answer...

Still running debian 10 with linuxcnc 2.8.4.
I have a python hal component (hal_serialtoolchange) which I wrote quite long ago for my lathe tool changer.
I don't remember which version of linuxcnc was used in the development but then everything printed from code (stdout) was prionted to terminal if linuxcnc was started fron command line. Maybe it was 2.7 or 2.6
Now I need to make some changes to the code but the output is not visible so it's quite hard to debug. If linuxcnc crashes the output can be seen but that does not help.
Is there some flag or other setting to enable output ?
Of course it's possible to open a file from python and write an own log...

Please Log in to join the conversation.

More
2 years 4 months ago #303670 by Aciera
Could you post your python hal component?

Please Log in to join the conversation.

More
2 years 4 months ago #303690 by ississ
The code is already here: forum.linuxcnc.org/24-hal-components/364...trol?start=20#151315

That version has the print lines commented out, they were used only to debug while developing.

Please Log in to join the conversation.

More
2 years 4 months ago #303840 by ississ
My bad, I found the cause for this.

My startup script started linuxcnc on background and that will prevent the output.

Please Log in to join the conversation.

Time to create page: 0.077 seconds
Powered by Kunena Forum