Output from hal user component
- ississ
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 68
- Thank you received: 25
23 Jun 2024 19:11 #303650
by ississ
Output from hal user component was created 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...
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 or Create an account to join the conversation.
- Aciera
- Offline
- Administrator
Less
More
- Posts: 3982
- Thank you received: 1723
24 Jun 2024 06:24 #303670
by Aciera
Replied by Aciera on topic Output from hal user component
Could you post your python hal component?
Please Log in or Create an account to join the conversation.
- ississ
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 68
- Thank you received: 25
24 Jun 2024 13:17 #303690
by ississ
Replied by ississ on topic Output from hal user component
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.
That version has the print lines commented out, they were used only to debug while developing.
Please Log in or Create an account to join the conversation.
- ississ
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 68
- Thank you received: 25
26 Jun 2024 19:12 #303840
by ississ
Replied by ississ on topic Output from hal user component
My bad, I found the cause for this.
My startup script started linuxcnc on background and that will prevent the output.
My startup script started linuxcnc on background and that will prevent the output.
Please Log in or Create an account to join the conversation.
Time to create page: 0.059 seconds