Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
<== Date ==> <== Thread ==>

Subject: Re: if-then-else in iocsh
From: Emmanuel Mayssat <emmanuel_mayssat@lynceantech.com>
To: Eric Norum <norume@aps.anl.gov>
Cc: Maren Purves <m.purves@jach.hawaii.edu>, tech-talk@aps.anl.gov
Date: Fri, 28 Jan 2005 15:49:29 -0800
I have been suggested several solutions(thank you Andrew), and my thinking on the problem has somewhat evolved. I overlooked the simple solution provided by Eric, which actually is simple to implement on our side.
It just forces us to change some of the variable names in the dbl since $BR is the baud rate value for all the baudRate entries.
Hence by using $<device>_BR as a variable name, I could set the default baud rate for a specific serial device and not all the serial device....


Thank you.

Emmanuel

Eric Norum wrote:

Why not just source a script which sets the default values of all the environment varaibles before sourcing any of the other scripts which then optionally override the values and use them.

-- Emmanuel Mayssat Lyncean Technologies, Inc. Direct: 650/320-8300 x409 Cell: 650/793-0626


References:
if-then-else in iocsh Emmanuel Mayssat
Re: if-then-else in iocsh Andrew Johnson
Re: if-then-else in iocsh Maren Purves
Re: if-then-else in iocsh Emmanuel Mayssat
Re: if-then-else in iocsh Eric Norum

Navigate by Date:
Prev: Re: if-then-else in iocsh Andrew Johnson
Next: Yet another VxWorks MBUF issue... Lawrence T. Hoff
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
Navigate by Thread:
Prev: Re: if-then-else in iocsh Eric Norum
Next: Re: if-then-else in iocsh Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·