EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  1996  1997  1998  1999  2000  2001  <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: sel record for strings
From: [email protected]
To: Rok Sabjan <[email protected]>
Cc: EPICS Tech-Talk <[email protected]>
Date: Wed, 17 Jul 2002 14:08:50 +0200
>>>>> "Rok" == Rok Sabjan <[email protected]> writes:

  > Hi to everybody!
  > I'm having a peculiar problem. I have a number of strings (around 50) and
  > I would like to display one of them, depending on number parameter. This
  > is no problem with numbers, as sel record can be used. The amount of
  > strings also does not allow the usage of mbbi record.

  > Any suggestions?

  > Thanx.

What I did in a similar case was a database solution:

- The 50 strings are kept in a number of stringout records, which all
  point their OUT links to a single stringin (or stringout) where the
  selected string should appear. (This is where the clients point to.)

- The string selection number is written into a calcout record input

- The calcout record calculates NUMBER MOD 10 and writes NUMBER DIV 10
  to the SELN field of a coarse selector seq record.

- This coarse selector seq record runs in 'Specified' mode and transfers
  the calcout's VAL (i.e. the offset inside the fine selector seq) to
  one of the fine selector seq records.

- The affected fine selector seq record runs also in 'Specified' mode
  and just triggers the correct string container record that overwrites
  the string in the destination.

Since the seq record has 10 links this two-step selection allows to
select one from up to 100 strings to be written into a single string
record. If you have more strings you will have to add a third selection
level.

Hope this helps,
Ralph

Replies:
Re: sel record for strings Rok Sabjan
References:
sel record for strings Rok Sabjan

Navigate by Date:
Prev: sel record for strings Rok Sabjan
Next: Re: sel record for strings Rok Sabjan
Index: 1994  1995  1996  1997  1998  1999  2000  2001  <20022003  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: sel record for strings Rok Sabjan
Next: Re: sel record for strings Rok Sabjan
Index: 1994  1995  1996  1997  1998  1999  2000  2001  <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024