EPICS Home

Experimental Physics and Industrial Control System


 
2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Q: Simulation mode issues
From: Benjamin Franksen <[email protected]>
To: EPICS Core Talk <[email protected]>
Date: Fri, 28 Jul 2017 12:11:31 +0200
On 28.07.2017 11:44, Ralph Lange wrote:
> Dear Core-Talkers,
> 
> Trying to implement an emulation mode for our PLC driver to be used when
> hardware is not present, we wanted to use the EPICS simulation mode, but
> found two show-stopping issues:
> 
>    1. Records that have SCAN="I/O Intr" are never processed, so simulation
>    mode does not work. Setting SIMM=YES and writing to SVAL does update the
>    fields, but does not process the record.
>    2. Records that have TSE=-2 (timestamp from device) will always have
>    invalid timestamps, which do not allow using X/T graphs, archiving etc.

IIRC, there is a third issue: records that are asynchronously processed
behave quite differently in simulation mode, in which processing is no
longer asynchronous. I never found a way to work around this one.

All these issues have led me to abandon any attempts to use simulation
mode years ago. I would very much appreciate a generic solution in base
that addresses them.

> Does anyone have an idea how to solve this, preferably in a generic way in
> base?
> 
> Our current workaround is to change the DTYP, SCAN, TSE fields, but our
> requirements for this emulation mechanism are asking for no changes to the
> database and the ability to switch without IOC reboot.

Cheers
Ben
-- 
"Make it so they have to reboot after every typo." ― Scott Adams

Attachment: signature.asc
Description: OpenPGP digital signature


Replies:
Re: Q: Simulation mode issues Andrew Johnson
References:
Q: Simulation mode issues Ralph Lange

Navigate by Date:
Prev: Q: Simulation mode issues Ralph Lange
Next: Re: Q: Simulation mode issues Andrew Johnson
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Q: Simulation mode issues Ralph Lange
Next: Re: Q: Simulation mode issues Andrew Johnson
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024