Python Component issueing errors or warnings to LinuxCNC

More
5 years 5 months ago #208679 by cmorley
Ok in master you can use python's linuxcnc module to send messages to the operator.
Code:
import linuxcnc c = linuxcnc.command() c.error_msg('Error') c.text_msg('Text') c.display_msg('Display')

Please let me know if you test it.

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

More
5 years 5 months ago #208737 by mwinterm
Hello @cmorley,

just tried it out. Works like a charm :)

Exactly what I was looking for.

Thank you very much!

Regards,

Marc

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

More
5 years 5 months ago #208744 by cmorley
Excellent - thanks for the feedback.

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

More
5 years 5 months ago #208913 by Roiki

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

More
4 years 7 months ago #237904 by Thom
Hi,
Its a realy good idea!

I wanted to do the same on my machine:
So you have modified your "emcmodule.cc" file

Where can i find this file?
(searched my computer with $sudo find / -type f -name *emcmodule.cc" but there was no result..

Best regards,
Thomas
 

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

More
4 years 7 months ago #237913 by tommylight
Code:
miner@NVME32GB:~$ whereis .txt : /usr/bin/. /usr/sbin/. /usr/lib/x86_64-linux-gnu/. /usr/lib/. /usr/lib64/. /etc/. /etc/.java /usr/games/. /usr/local/bin/. /usr/local/sbin/. /usr/local/etc/. /usr/local/lib/. /usr/local/games/. /usr/include/. /usr/local/. /usr/libexec/. /usr/share/. /opt/amdgpu-pro/bin/. /opt/amdgpu-pro/bin/.hipVersion /opt/net.downloadhelper.coapp/bin/. /usr/share/man/pt/. /usr/share/man/sv/. /usr/share/man/cs/. /usr/share/man/pl/. /usr/share/man/pt_BR/. /usr/share/man/man4/. /usr/share/man/man2/. /usr/share/man/sr/. /usr/share/man/gl/. /usr/share/man/zh/. /usr/share/man/fi/. /usr/share/man/ja/. /usr/share/man/sl/. /usr/share/man/de/. /usr/share/man/da/. /usr/share/man/fr.ISO8859-1/. /usr/share/man/id/. /usr/share/man/ko/. /usr/share/man/man1/. /usr/share/man/ro/. /usr/share/man/es/. /usr/share/man/ru/. /usr/share/man/hu/. /usr/share/man/zh_TW/. /usr/share/man/zh_CN/. /usr/share/man/man8/. /usr/share/man/man3/. /usr/share/man/fr/. /usr/share/man/nl/. /usr/share/man/tr/. /usr/share/man/sk/. /usr/share/man/man5/. /usr/share/man/it/. /usr/share/man/hr/. /usr/share/man/man7/. /usr/share/man/fr.UTF-8/. /usr/share/man/man6/. /usr/share/man/el/. /usr/share/info/. /usr/src/linux-headers-5.4.0-80/. /usr/src/linux-headers-5.4.0-74/. /usr/src/amdgpu-5.11.5.26-1271047/. /usr/src/linux-headers-5.4.0-80-generic/.config /usr/src/linux-headers-5.4.0-80-generic/. /usr/src/linux-headers-5.4.0-80-generic/.gitignore /usr/src/linux-headers-5.4.0-74-generic/.config /usr/src/linux-headers-5.4.0-74-generic/. /usr/src/linux-headers-5.4.0-74-generic/.gitignore miner@NVME32GB:~$
Use the "whereis" command, if it is not installed, use
Code:
sudo apt install util-linux

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

Time to create page: 0.156 seconds
Powered by Kunena Forum