> Suppose there is a piece of equipment which can be put into
> one of several modes of operation. Suppose also that the set
> of possible modes depends on the hardware configuration of the equipment. Suppose
> finally that the set of possible modes can be queried
> programmatically.
>
> What is the "best" way to populate the "ZRST", "ONST", ...
> fields of the record?
>
> Query the device during the "record init" phase, and
> programmatically fill in the fields?
This is what I do, and I think it makes the most sense, since the software auto adapts to the hardware, as long as the IOC is rebooted after the hardware is reconfigured.
However, I would like to take this one step further. I have some hardware which can be configured by EPICS software, but changing the configuration requires a change in the names of the ZRST, ONST, etc. files. For example, I can change the "shaping time range" of an amplifier. If it is in range 1, then there is a menu of available shaping times which should read "0.1 microsecond", "0.2 microsecond", etc. However, if I change to range 2, then the menu should read "1.0 microsecond", "2.0 microsecond". My device support software currently makes these required changes in the ZRST, ONST, etc. fields.
Here is the problem: I have not found a way to get medm to redraw these menus when they change. If I close the medm window and reopen it, then the new menu choices are correctly displayed. Is there a way to post a monitor on an enum field so that CA clients will know that the values of the enum strings themselves have changed?
Mark Rivers
- Replies:
- Re: initialize of mbbi state labels Benjamin Franksen
- Navigate by Date:
- Prev:
Re: initialize of mbbi state labels Bob Dalesio
- Next:
Re: initialize of mbbi state labels Hoff, Lawrence
- 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: initialize of mbbi state labels Hoff, Lawrence
- Next:
Re: initialize of mbbi state labels Benjamin Franksen
- 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
|