EPICS Controls Argonne National Laboratory

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: simulation mode
From: "Laznovsky, Michael" <[email protected]>
To: [email protected]
Cc: "Laznovsky, Michael" <[email protected]>
Date: Tue, 17 Sep 2002 17:29:32 -0700
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: drvAscii Allan Honey
Next: Software developer position at SSRL Rarback, Harvey
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: Re: JCA for Windows Janet Anderson
Next: Re: simulation mode Ned Arnold
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 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·