Experimental Physics and Industrial Control System
Hi:
You can set macros at these levels:
1.BOY Runtime Preference Setting (-pluginCustomization ...)
2.User Preference settings (Menu Edit, Preferences, CSS Applications,
Display, BOY, OPI Runtime)
3.Macro parameter of Action that opens the *.opi file
4.Display *.opi file property "Macros"
5.Grouping/Linking/Tabbed Container that wraps the widgets
Setting a macro within an Action overrides settings from
the user preferences.
Setting them within the Grouping container overrides
those from the Action and so on.
The first option is basically the command line:
You can define any setting for CSS in a plugin customization file
that has the format
# Comment
plugin.name/setting_name=value
For example:
# BOY Macros, format
# macro1,value1|macro2,"value 2"|macro3,"another value"
org.csstudio.opibuilder/macros=MyMacro1,"value 1"|MyOtherMacro,"Another
Value"
# EPICS Settings
org.csstudio.platform.libs.epics/addr_list=127.0.0.1 123.45.67.89
The format of the settings available for BOY
are in the file org.csstudio.opibuilder/preferences.ini.
The format of the settings available for EPICS Channel Access
are in the file org.csstudio.platform.libs.epics/preferences.ini.
The format of the settings for plugin ABC
should be in a file ABC//preferences.ini.
You put all those defaults that you want into a file
my_plugin_customization.ini
and then start CSS with the command-line option
css -pluginCustomization /path/to/my_plugin_customization.ini
See also chapter "Hierarchical Preferences"
in http://cs-studio.sourceforge.net/docbook/css_book.pdf
Thanks,
-Kay
On 2/26/12 17:31 , "[email protected]" <[email protected]> wrote:
>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 Chen, Xihui
- References:
- Re: Setting macro value from commandline Xinyu.Wu
- Navigate by Date:
- Prev:
Sequencer build rules Benjamin Franksen
- Next:
Re: Access PV from JavaScript in BOY Kasemir, Kay
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
<2012>
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Setting macro value from commandline Xinyu.Wu
- Next:
RE: Setting macro value from commandline Chen, Xihui
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
<2012>
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024