If you are running from the command line, it should print errors to the
console if there was a problem.

It will not report errors if your component exits, eg from an exit()
function call, or the program just runs to the end of the file.  The python
example, http://www.linuxcnc.org/docview/html//hal_halmodule.html, has a
while loop that spins forever.  The script is terminated by halrun when it
is finished.



> -----Original Message-----
> From: Leonardo Marsaglia [mailto:leonardomarsagli...@gmail.com] 
> Sent: Tuesday, 17 November 2009 10:06 AM
> To: Enhanced Machine Controller (EMC)
> Subject: Re: [Emc-users] Link a Bash script to a hal signal
> 
> Thank you Frank, i could load the python scripts.. the 
> example for now..
> 
> i have a problem with my script.. when i load it and enter 
> the halcmd show..
> nothing appears.. only the halcmd application.. but my 
> component doesn't.
> 
> Is this because there is an error in the python code?
> 
> Regars.
> 
> Leonardo.
> 
> 2009/11/14 Frank Tkalcevic <fr...@franksworkshop.com.au>
> 
> > In a hal file, you use the loadusr command.  The user module can be 
> > anywhere in the $PATH as you say, or you can then specify 
> the complete 
> > path to the component, eg /home/myhome/bin/mycomponent
> >
> > If you use the wait option on loadusr, eg -W, you need to use the 
> > named version, eg -Wn mycomponent
> >
> > That's what I do.
> >
> > Frank
> >
> > > -----Original Message-----
> > > From: Leonardo Marsaglia [mailto:leonardomarsagli...@gmail.com]
> > > Sent: Sunday, 15 November 2009 7:09 AM
> > > To: Enhanced Machine Controller (EMC)
> > > Subject: Re: [Emc-users] Link a Bash script to a hal signal
> > >
> > > Thank you very much guys for your help, i think may be 
> the best is 
> > > to make a userspace component as john told..
> > >
> > > I have only one doubt about that.. and it's about the 
> directory in 
> > > which the component has to be inserted so i can load it with the 
> > > loadusr command.. i read about that in the hal manual and it says 
> > > something about $PATH, but honestly i don't understand 
> where it is..
> > >
> > > Thanks again for your help guys you're as helpful as always :)
> > >
> > > Best regards.
> > >
> > > Leonardo.
> > >
> > >
> > > 2009/11/14 Jon Elson <el...@pico-systems.com>
> > >
> > > > Dave wrote:
> > > > > If you hold the power off button down on the 
> motherboard, the PC 
> > > > > will not
> > > > power off??
> > > > >
> > > > > I haven't seen any issues with that on the PCs I have
> > > loaded with EMC2.
> > > > The power button on the PCs I think is a function of 
> the PC bios - 
> > > > hold it down for x seconds and it will kill the PC
> > > regardless of any
> > > > software running on it.
> > > > >
> > > > > If I shutdown EMC2, the PC still stays powered up and I
> > > have to turn
> > > > > the
> > > > PC off.  Would it make sense to shutdown EMC2 with the
> > > mouse and then kill
> > > > the PC via a power disconnect via the machine controls?
> > > That is what I am
> > > > planning on doing.
> > > > >
> > > > >
> > > > This is how I do it on my Bridgeport.  There are a 
> whole bunch of 
> > > > things plugged into a power strip, including the PC.  When
> > > Linux has
> > > > shut down, I then shut off everything with the power strip.
> > > > I have the BIOS set for "last state" so that when power is
> > > restored,
> > > > it powers the machine back on.
> > > >
> > > > Jon
> > > >
> > > >
> > > >
> > > 
> --------------------------------------------------------------------
> > > --
> > > > -------- Let Crystal Reports handle the reporting - 
> Free Crystal 
> > > > Reports 2008 30-Day trial. Simplify your report design, 
> > > > integration and deployment - and focus on what you do 
> best, core 
> > > > application coding. Discover what's new with Crystal 
> Reports now.
> > > > http://p.sf.net/sfu/bobj-july
> > > > _______________________________________________
> > > > Emc-users mailing list
> > > > Emc-users@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/emc-users
> > > >
> > > --------------------------------------------------------------
> > > ----------------
> > > Let Crystal Reports handle the reporting - Free Crystal 
> Reports 2008 
> > > 30-Day trial. Simplify your report design, integration and 
> > > deployment - and focus on what you do best, core 
> application coding. 
> > > Discover what's new with Crystal Reports now.  
> > > http://p.sf.net/sfu/bobj-july 
> > > _______________________________________________
> > > Emc-users mailing list
> > > Emc-users@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/emc-users
> > >
> >
> >
> >
> > 
> ----------------------------------------------------------------------
> > -------- Let Crystal Reports handle the reporting - Free Crystal 
> > Reports 2008 30-Day trial. Simplify your report design, integration 
> > and deployment - and focus on what you do best, core application 
> > coding. Discover what's new with Crystal Reports now.  
> > http://p.sf.net/sfu/bobj-july 
> > _______________________________________________
> > Emc-users mailing list
> > Emc-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/emc-users
> >
> --------------------------------------------------------------
> ----------------
> Let Crystal Reports handle the reporting - Free Crystal 
> Reports 2008 30-Day trial. Simplify your report design, 
> integration and deployment - and focus on what you do best, 
> core application coding. Discover what's new with Crystal 
> Reports now.  http://p.sf.net/sfu/bobj-july 
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
> 


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to