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: How to access menu choice strings inside record support
From: "Zhang, Dehong" <[email protected]>
To: "[email protected]" <[email protected]>
Date: Thu, 13 Dec 2012 12:12:06 -0800
Hi,

I am writing a custom record to deal with a particular hardware.  This
hardware has a few different operation modes, which are represented
with a set of name strings, not numbers.  We can talk to it to get or set this
mode, with strings.

The problem is, when a choice is made, we get a menu choice number.
Then I will need to find the corresponding name string, to write to the
hardware; on the other direction, when I query the hardware to find its
current mode, I get back a string.  Then I need to find the corresponding
choice number to set the button properly.

All these name strings are defined in the menu definition.  How can I
access them inside the record support?  Without having to declare
an array of strings, beside the menu definition?

Thanks much for your advices!  Best regards,
Dehong


Replies:
Re: How to access menu choice strings inside record support Till Straumann
Re: How to access menu choice strings inside record support Andrew Johnson

Navigate by Date:
Prev: RE: EPICSPVFactory in CSS JavaScript Chen, Xihui
Next: Re: How to access menu choice strings inside record support Till Straumann
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: EPICSPVFactory in CSS JavaScript Chen, Xihui
Next: Re: How to access menu choice strings inside record support Till Straumann
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 ·