NML c++ read nml Error and Messages

More
18 Feb 2023 09:48 #264744 by udoS
How to read nml errors ;
I want to read the error/info messages from nml channel just like getting the status;
I found this:
RCS_STAT_CHANNEL(emcFormat, "emcError", "xemc", _nmlFile);
NML(nmlErrorFormat, "emcError", "xemc", _nmlFile);

But then what? And how to?

Thanks for any help.

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

More
18 Feb 2023 15:33 - 18 Feb 2023 15:33 #264754 by udoS
Replied by udoS on topic NML c++ read nml Error and Messages
Hi
OK, I found it in /src/emc/usr_intf/shcom.cc ;
Now how to use it? In Lcnc-Terinal window the errors show up;
But not in my Qt-app info window;
Last edit: 18 Feb 2023 15:33 by udoS.

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

More
18 Feb 2023 16:09 #264758 by cmorley
Replied by cmorley on topic NML c++ read nml Error and Messages
You may gleam some idea from the c++/python module interface:
github.com/LinuxCNC/linuxcnc/blob/master...ns/emcmodule.cc#L258

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

More
18 Feb 2023 18:17 #264764 by udoS
Replied by udoS on topic NML c++ read nml Error and Messages
Hi. Thanks a lot;
Today is not my birthday but now it feels quit a bit like it. :-)

again , thanks;

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

More
19 Feb 2023 20:39 #264828 by udoS
Replied by udoS on topic NML c++ read nml Error and Messages
Hi cmorly
Now after some closer look this must be the holy Grail of the python-devotees. Isn't it?
Wouldn't it be nice to have something like that for c++.

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

More
19 Feb 2023 20:56 #264830 by Grotius
Replied by Grotius on topic NML c++ read nml Error and Messages
Hi,

I know it's quite hidden. But take a look.

c++ nml
c++ nml project picture
 

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

More
20 Feb 2023 07:58 - 20 Feb 2023 09:32 #264854 by udoS
Replied by udoS on topic NML c++ read nml Error and Messages
@Grotius
If it means something to you then you have my compliments for this;
It's a pity that it is not more prominent; Nice piece of work;
And sorry, but I will certainly use it. :-)

What I didn't find is the ERROR channel handling, but I got that figured out by now;
The problem was to be the first in line; :-)
Attachments:
Last edit: 20 Feb 2023 09:32 by udoS.

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

Time to create page: 0.059 seconds
Powered by Kunena Forum