rtapi_print_msg output

More
02 Apr 2012 07:54 #18908 by frequency
Hi,

I´m still new at this topic :), so i hope anybody can give me some hints.
where can i see the output of "rtapi_print_msg(..)" ? I need it for debugging of my components written as .c.

cheers
Wolfgang

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

More
02 Apr 2012 09:10 - 02 Apr 2012 11:01 #18912 by ArcEye
Replied by ArcEye on topic Re:rtapi_print_msg output
Hi

First off , always run linuxcnc from a terminal when developing, to ensure you trap all error messages etc.

It will depend upon what you have set the debugging level to.
If set to >= 3, rtapi_print_msg(RTAPI_MSG_INFO, ...) will display to Axis / stderr (can't remember which or if both)

However to set debugging too high would drive you mad with other debugging messages from the rest of the system.

Consequently I use rtapi_print_msg(RTAPI_MSG_ERR, " .........."); for debugging, even for none errors.
It displays to Axis and in the terminal.

Once finished I delete all the debug stuff and just leave actual error messages.

regards
Last edit: 02 Apr 2012 11:01 by ArcEye.

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

More
02 Apr 2012 09:59 #18913 by frequency
Replied by frequency on topic Re:rtapi_print_msg output
Ok,

but where can i set this debug level?

Many thanks,
Wolfgang

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

More
02 Apr 2012 11:00 #18914 by ArcEye
Replied by ArcEye on topic Re:rtapi_print_msg output
Hi

In your .ini file under [EMC] section
DEBUG = 0
means no messages.

src/emc/nml_int/emcglb.h defines all the other values possible.

regards

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

More
02 Apr 2012 12:41 #18920 by frequency
Replied by frequency on topic Re:rtapi_print_msg output
Perfect,

thank you!

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

Time to create page: 0.098 seconds
Powered by Kunena Forum