EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Setting macro value from commandline
From: <[email protected]>
To: <[email protected]>
Date: Mon, 27 Feb 2012 09:31:16 +1100
Sorry, I mean how do you set macro values from the command line for BOY. (I'm new to EPICS and BOY. )

Thanks

Xinyu

On 27/02/2012, at 4:22 AM, Eric Norum wrote:

> When starting a soft IOC you can set the value of iocsh variables from shell environment variables using the epicsEnvSet iocsh command like this:
> 
> epicsEnvSet(KEITHLEY2400_ETHERNET, "$(KEITHLEY2400_ETHERNET=164.54.49.10:4001)")
> 
> 
> 
> So, if you start the IOC like this:
> ./st.cmd
> the iocsh KEITHLEY2400_ETHERNET variable will be set to 164.54.49.10:4001
> 
> but if you start the IOC like this:
> KEITHLEY2400_ETHERNET=192.168.1.2 ./st.cmd
> the  iocsh KEITHLEY2400_ETHERNET variable will be set to 192.168.1.2 
> 
> The '=' part to supply a default value can be omitted if you like.
> 
> On Feb 26, 2012, at 2:20 AM, <[email protected]> wrote:
> 
>> Hi,
>> 
>> The documentation seems to imply that you can set macro values from the command line. Can anyone tell me how to do it please?
>> 
>> Thanks
>> 
>> Xinyu WU
>> ASKAP Computing                       
>> Australia Telescope National Facility 
>> CSIRO Astronomy and Space Science
>> phone: +61 2 9372 4727
>> postal: PO Box 76 Epping, NSW. 1710
>> 
>> 
> 
> -- 
> Eric Norum
> [email protected]
> 
> 
> 
> 

Xinyu WU
ASKAP Computing                       
Australia Telescope National Facility 
CSIRO Astronomy and Space Science
phone: +61 2 9372 4727
postal: PO Box 76 Epping, NSW. 1710



Replies:
Re: Setting macro value from commandline Kasemir, Kay
References:
Setting macro value from commandline Xinyu.Wu
Re: Setting macro value from commandline Eric Norum

Navigate by Date:
Prev: Re: Setting macro value from commandline Eric Norum
Next: Access PV from JavaScript in BOY Xinyu.Wu
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Setting macro value from commandline Eric Norum
Next: Re: Setting macro value from commandline Kasemir, Kay
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·