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: RE: simulation mode
From: "Laznovsky, Michael" <[email protected]>
To: [email protected]
Date: Wed, 18 Sep 2002 12:06:13 -0700
Thanks, Ned!

I tried that, but it doesn't seem to help... the h/w records still
show SIMM=NO, and they try to access the h/w at startup.  I also set
REC1.PINI=YES, and even added "PP" to REC2.SIML:
 	        field(SIML,"REC1 PP NMS")
just for overkill, all to no avail.

Is it correct to stuff "1/0" into a "YES/NO" field?

Mike


-----Original Message-----
From: Ned Arnold [mailto:[email protected]]
Sent: Wednesday, September 18, 2002 7:49 AM
Subject: Re: simulation mode

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: Re: simulation mode Ned Arnold
Next: linuxIpDrivers Marty Kraimer
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: simulation mode Ned Arnold
Next: re: simulation mode Laznovsky, Michael
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 ·