[Emc-users] new 5 axis simulation

2007-11-14 Thread Stuart Stevenson
Gentlemen,
I tried to copy the files to new file names so I could modify them.

I changed the call in the ini file - from 5axis_sim.hal to 5axisbridge_sim.hal
I copied the file 5axis_sim.hal to 5axisbridge_sim.hal

I changed the call in the hal file - from 5axisgui to 5axisbridgegui
I copied the file 5axisgui.py to 5axisbridgegui.py
I changed the permissions for the .py file to 755

This is the feedback I get:

EMC2 - pre-2.3 CVS HEAD
Machine configuration directory is '/home/stustev/emc2-trunk/configs/5axis'
Machine configuration file is '5axis.ini'
Starting EMC2...
5axisbridge_sim.hal:108: execv(5axisbridgegui) failed
5axisbridge_sim.hal:108: 5axisbridgegui exited without becoming ready
Shutting down and cleaning up EMC2...
Cleanup done
EMC terminated with an error.  You can find more information in the log files
/home/stustev/emc_debug.txt
and
/home/stustev/emc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal

what am I missing?
thanks
Stuart

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] new 5 axis simulation

2007-11-14 Thread Alex Joni
On Wed, 2007-11-14 at 22:15 +, ben lipkowitz wrote:
> at build time, stuff in src/emc/usr_intf/axis/scripts/ gets copied to bin/ 
> stripped of its .py extension and made executable. this is done in the 
> Makefile, and for some odd reason each script has its own entry there. so, 
> add 5axisbridgegui to the Makefile, or just rename the binary, or make a 
> symbolic link to the actual script so you dont have to 'recompile' every 
> time you change it.

I don't think that will solve anything.

> On Wed, 14 Nov 2007, Stuart Stevenson wrote:
> > 
> > Gentlemen,
> > I tried to copy the files to new file names so I could modify them.
> >
> > I changed the call in the ini file - from 5axis_sim.hal to 
> > 5axisbridge_sim.hal
> > I copied the file 5axis_sim.hal to 5axisbridge_sim.hal
> >
> > I changed the call in the hal file - from 5axisgui to 5axisbridgegui
> > I copied the file 5axisgui.py to 5axisbridgegui.py
> > I changed the permissions for the .py file to 755

you also need to edit 5axisbridgegui.py (see below)

> >
> > This is the feedback I get:
> >
> > EMC2 - pre-2.3 CVS HEAD
> > Machine configuration directory is '/home/stustev/emc2-trunk/configs/5axis'
> > Machine configuration file is '5axis.ini'
> > Starting EMC2...
> > 5axisbridge_sim.hal:108: execv(5axisbridgegui) failed
> > 5axisbridge_sim.hal:108: 5axisbridgegui exited without becoming ready

5axisgui.py (the initial version), identifies itself as a HAL component
called '5axisgui'. When the .hal file tries to loadusr the
'5axisbridgegui' it actually waits for a component called
5axisbridgegui, not 5axisgui, and thus fails.
You need to edit 5axisbridgegui.py and change 
c = hal.component("5axisgui")
to 
c = hal.component("5axisbridgegui")

or alternatively you can add a param to loadusr (-w or -W with a name),
check the manpage for details.. it eludes my memory atm.

Regards,
Alex


> > Shutting down and cleaning up EMC2...
> > Cleanup done
> > EMC terminated with an error.  You can find more information in the log 
> > files
> >/home/stustev/emc_debug.txt
> > and
> >/home/stustev/emc_print.txt
> > as well as in the output of the shell command 'dmesg' and in the terminal
> >
> > what am I missing?
> > thanks
> > Stuart
> >


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] new 5 axis simulation

2007-11-14 Thread ben lipkowitz
at build time, stuff in src/emc/usr_intf/axis/scripts/ gets copied to bin/ 
stripped of its .py extension and made executable. this is done in the 
Makefile, and for some odd reason each script has its own entry there. so, 
add 5axisbridgegui to the Makefile, or just rename the binary, or make a 
symbolic link to the actual script so you dont have to 'recompile' every 
time you change it.

   -fenn

On Wed, 14 Nov 2007, Stuart Stevenson wrote:
> 
> Gentlemen,
> I tried to copy the files to new file names so I could modify them.
>
> I changed the call in the ini file - from 5axis_sim.hal to 5axisbridge_sim.hal
> I copied the file 5axis_sim.hal to 5axisbridge_sim.hal
>
> I changed the call in the hal file - from 5axisgui to 5axisbridgegui
> I copied the file 5axisgui.py to 5axisbridgegui.py
> I changed the permissions for the .py file to 755
>
> This is the feedback I get:
>
> EMC2 - pre-2.3 CVS HEAD
> Machine configuration directory is '/home/stustev/emc2-trunk/configs/5axis'
> Machine configuration file is '5axis.ini'
> Starting EMC2...
> 5axisbridge_sim.hal:108: execv(5axisbridgegui) failed
> 5axisbridge_sim.hal:108: 5axisbridgegui exited without becoming ready
> Shutting down and cleaning up EMC2...
> Cleanup done
> EMC terminated with an error.  You can find more information in the log files
>/home/stustev/emc_debug.txt
> and
>/home/stustev/emc_print.txt
> as well as in the output of the shell command 'dmesg' and in the terminal
>
> what am I missing?
> thanks
> Stuart
>

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users