Something has changed since I wrote the code.
I still have it running on a rtai kernel on my lathe, but the Machinekit code is very old there.

Axis appears to print the NML message buffer notifications, presumably at some point rtapi_msgXXX() printed to that,
but now just prints to the log.

I previously suggested using a system dialog such as zenity.

zenity --info --text="Tool not homed. Use M6Tx to set current tool."
will give you the attached dialog.

You can just use
system("zenity --info --text="Tool not homed. Use M6Tx to set current tool.");
or better practice would be to fork or spawn it.

As we are no longer using hard rt kernels with low us thread timing and nothing else is going on whilst this message is displayed,
there is probably no harm in this approach.

An alternative would be to create a pyvcp panel in axis and use one of the multilabel widgets I wrote a long time ago
http://www.machinekit.io/docs/hal/pyvcp/#multi_label

You could store 6 error or info messages in each one and trigger its display from a pin
If you make one message blank, you can display then wipe the display as required.

There is an example of use here
https://github.com/machinekit/machinekit/blob/master/configs/sim/pyvcp_demo/pyvcp_demo1.xml
https://github.com/machinekit/machinekit/blob/master/configs/sim/pyvcp_demo/custom.hal

You just need to create a s32 trigger pin(s) in the component and connect that up in hal to the pyvcp and send whatever integer relates to the relevant message.

Cat skinning methods are plentiful.


On 02/09/18 00:00, Aurelien wrote:
I have without succes try to add :

#include <rtapi.h>
#include <rtapi_app.h>
#include <rtapi_string.h>
#include <rtapi_hexdump.h>
#include <rtapi_compat.h>
#include <rtapi_io.h>


Maybe you know another way for make possible to send message text from .comp to Axis or other GUI like Gcode does with "(MSG,xxx)" 

Br
--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
---
You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
---
You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to