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 2025 | 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 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | RE: menu choice - scalcout? |
From: | "Mooney, Tim M." <[email protected]> |
To: | Rob Emery <[email protected]>, "[email protected]" <[email protected]> |
Date: | Tue, 17 Nov 2015 05:36:01 +0000 |
You could do this is with an mbbo record followed by an scalcout record. If the text strings are all shorter than 16 bytes, the mbbo record could hold the text strings in a form
that EDM and other display managers already know how to display as a menu. The mbbo record's forward link would process the scalcout record. The scalcout record's INPA link would read from the mbbo record's RVAL field. The scalcout record's INAA, INBB,
INCC, etc. links would read from the mbbo record's ZRST, ONST, TWST, etc. fields, respectively. The scalcout record's calc _expression_ would be "@@A"; this _expression_ tells the scalcout record to use the AA field if A==0, the BB field if A==1, the CC field
if A==2, etc.
If the text strings are longer than 15 bytes but shorter than 40 bytes, you could do something similar. The mbbo record string fields would not contain exactly the strings to be sent, but only abbreviated versions for the user to choose from. The actual
strings to be sent would be hard coded in the scalcout record's STRn fields, instead of being read from the mbbo record's string fields.
If there are more than 16 strings, you could use an mbbo/scalcout pair for each set of 16 strings, and they would have to be on separate menu buttons in the EDM display.
Tim Mooney ([email protected]) (630)252-5417
Beamline Controls Group (www.aps.anl.gov) Advanced Photon Source, Argonne National Lab From: [email protected] [[email protected]] on behalf of Rob Emery [[email protected]]
Sent: Monday, November 16, 2015 8:22 PM To: [email protected] Subject: menu choice - scalcout? I would like to be able to use a radio box or menu button in EDM to send one of a pre-defined set of text strings to a record. How would I do this? Somehow modify scalcout to include a menu of choices?
Thanks
Rob Emery
UW Medical Center
|