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: More than 16 enumerations mbbi / mbbo
From: Andrew Johnson <[email protected]>
To: [email protected]
Date: Thu, 26 Jul 2012 10:26:56 -0500
Hi Hinko,

On 2012-07-26 Hinko Kocevar wrote:
> >> Can it be 'undefined'?
> >
> > Reserve yet one more choice for this. Or: set the UDF field of a record
> > e.g. via db link from another record. If you also have DISS=INVALID you
> > have a good idication of an undefined state.

There is an "undefined" state which is what you get if the integer value in 
the VAL field is out of range, but you can't select this from an OPI menu 
button, so Benjamin's suggestion is sensible if this is intended for input 
from the user (although rather than "undefined" I would probably use another 
status string that says something like "use other menu").

If this record is just for displaying information to the user though you can 
make use of it; put the same value in both of your mbbi records and set their 
DTYP to "Raw Soft Channel" then set each xxVL field to the value that the 
associated xxST field represents.  The record that does not have a matching 
xxVL value will appear in the undefined state, and you don't need to do any 
calculations to get the values to put into the mbbi records.

However if you're using this as an output it might be simpler to just use an 
aSub record and do the value to string conversion in C code...

- Andrew
-- 
Never interrupt your enemy when he is making a mistake.
-- Napoleon Bonaparte

Replies:
Re: More than 16 enumerations mbbi / mbbo Martin Konrad
References:
More than 16 enumerations mbbi / mbbo Hinko Kocevar
Re: More than 16 enumerations mbbi / mbbo Benjamin Franksen
Re: More than 16 enumerations mbbi / mbbo Hinko Kocevar

Navigate by Date:
Prev: Re: More than 16 enumerations mbbi / mbbo Hinko Kocevar
Next: RE: asynPortDriver Szalata, Zenon M.
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: More than 16 enumerations mbbi / mbbo Hinko Kocevar
Next: Re: More than 16 enumerations mbbi / mbbo Martin Konrad
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 ·