Mike,
The simulation link is only "checked" when the record processes. In your
database, it appears that REC2 is Passive, so it won't fetch SIML (REC1)
until it is requested to process. At that point, it should indicate that
it is in Simulation Mode.
Yes, a PINI=YES on REC2 would force it to process at initialization and
fall into simulation mode.
Ned
>
> Hi all- I'm trying to use simulation mode for the first time and am having
> trouble getting it to work. I hope someone out there may be able to tell me
> what I'm doing wrong. I have no doubt it's a thinko on my part!
>
> In the .db file (record names have been changed to protect the innocent):
>
> grecord(bi,"REC1") {
> field(DTYP,"Soft Channel")
> field(INP,"1")
> }
> grecord(mbbo,"REC2") {
> field(DESC,"IO Control")
> field(DTYP,"SR830")
> field(NOBT,"2")
> field(OUT,"#L$(L) A$(G) @2")
> ...etc
> field(SIML,"REC1")
> }
>
> I want the SIMM field of REC2 to be controlled by the REC1.VAL, at IOC boot,
> so that the mbbo never goes to talk to the real (non-existent) device. Am I
> wrong in expecting REC2.SIMM to be set from REC1.VAL via the REC2.SIML DB
link?
> "dbpr" shows that REC1.VAL is indeed 1, but REC2.SIML/.SIMM never get set.
>
> I'm doing it this way because there are quite a few REC2's.
>
> Maybe it's a confusion between YES/NO vs. 1/0; how does one load a YES/NO
> field via a DB link? Do I need a PINI somewhere? Is there a better way to
> propagate SIMMs across a DB?
>
> thanks,
> Mike
>
> ps- EPICS R3.13.2
>
> -----
> Michael P. Laznovsky <mailto:[email protected]>
> Application Software Developer, ESD ofc: (650) 926-2924
> Stanford Linear Accelerator Center, MS-46 fax: (650) 926-3515
> 2575 Sand Hill Road, Menlo Park CA 94025 USA <http://www.slac.stanford.edu>
- Navigate by Date:
- Prev:
Software developer position at SSRL Rarback, Harvey
- Next:
RE: simulation mode Laznovsky, Michael
- 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:
simulation mode Laznovsky, Michael
- Next:
RE: simulation mode Laznovsky, Michael
- 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
|