Is there a way to print a message to AXIS?

More
16 Feb 2012 20:20 #17730 by BigJohnT
Will to command work from a terminal? If so did you set the file permissions to execute?

John

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

More
16 Feb 2012 20:43 #17731 by beltramidave
John,
Yes, the M112 files an executable. When I try to run the M112 file "in terminal", something flashes up on the screen and then disappears before I can make out if it is my message file or not.
Dave

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

More
16 Feb 2012 21:40 #17732 by BigJohnT
Just type the command

eog /home/ubuntu/emc2/nc_files/stopmessage.png

in the terminal window and see what happens.

John

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

More
16 Feb 2012 21:49 #17733 by beltramidave
That worked. The message popped right up. Now what?

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

More
16 Feb 2012 23:15 #17736 by BigJohnT
Are you running 8.04?

John

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

More
16 Feb 2012 23:19 #17737 by beltramidave
No. It is 10.04 LTS

When running from terminal, I also got this error message:

(eog:11910): GLib-GIO-CRITICAL **: g_app_info_equal: assertion `G_IS_APP_INFO (appinfo1)' failed
ubuntu@ubuntu:~$

But the message window that I wanted still came up.

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

More
16 Feb 2012 23:26 #17738 by BigJohnT
Try

#!/bin/sh

John

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

More
16 Feb 2012 23:36 #17740 by beltramidave
Same result...both trying to run the program and running in terminal.

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

More
17 Feb 2012 00:29 - 17 Feb 2012 00:30 #17741 by BigJohnT
My image displays fine even though I get a couple of error messages from eog in 10.04
john@D510MO:~/emc2/nc_files$ ls
examples  Fwd.png  M110  ngcgui_lib
john@D510MO:~/emc2/nc_files$ ./M110

(eog:17333): GLib-GIO-CRITICAL **: g_app_info_equal: assertion `G_IS_APP_INFO (appinfo1)' failed

(eog:17333): GLib-GIO-CRITICAL **: g_app_info_equal: assertion `G_IS_APP_INFO (appinfo1)' failed

Issuing a M110 in the MDI window also works for me (after I restart Axis so it "knows" about the M110 file).

John
Last edit: 17 Feb 2012 00:30 by BigJohnT.

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

More
17 Feb 2012 00:43 #17742 by beltramidave
I haven't had any luck getting it to appear in MDI either. I have always restarted AXIS after every change to be sure.

Being new to this, I don't really know what your "code" is telling me, but the error messages look similar to what I was getting in terminal.

I really appreciate all of your help on this. I'm not sure what else to try. When I first started this search, I was looking for a way to have a pop up box similar to that when a tool change is called. Then I saw this thread and it looked like it would work just fine for my application.

I just wonder if it has anything to do with the fact that I am running this from the LiveCD.

Dave

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

Time to create page: 0.099 seconds
Powered by Kunena Forum