EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: Re: Testing UIs against real databases using simulation mode
From: "J. Lewis Muir" <[email protected]>
To: EPICS Tech-Talk <[email protected]>
Date: Mon, 29 Nov 2010 11:33:05 -0600
On 11/29/10 11:12 AM, [email protected] wrote:
> Lewis,
> 
>> For serial or Ethernet devices that have an ASCII communication
>> protocol, I usually write a simulator for the device in Python using
>> Python's asyncore and asynchat modules.  Then, I just change how the
>> ASYN port is created in my EPICS soft IOC and I can test any GUIs, EPICS
>> databases, etc.
> 
> Do you have a simple example of asyncore/asynchat in epics context?
> I briefly checked 
> http://docs.python.org/library/asyncore.html
> http://docs.python.org/library/asynchat.html

Hi, Emmanuel.

I might not have made it clear: the Python device simulators I write
don't know anything about EPICS (just like the devices they simulate).
They're just little TCP/IP servers that speak the ASCII communication
protocol, of the device they simulate, over a TCP/IP socket.

An example of an EPICS device driver (written as an EPICS database) with
a Python device simulator (in the .tar.bz2 package at
scripts/sim-xia-pfcu-4.py) is at

  https://www.imca.aps.anl.gov/~jlmuir/sw/xia-pfcu-4.html

Lewis

Replies:
Re: Testing UIs against real databases using simulation mode Angus Gratton
References:
Testing UIs against real databases using simulation mode Angus Gratton
Re: Testing UIs against real databases using simulation mode J. Lewis Muir
Re: Testing UIs against real databases using simulation mode emmanuel_mayssat

Navigate by Date:
Prev: Re: Testing UIs against real databases using simulation mode emmanuel_mayssat
Next: Re: ca_put_callback once again Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Testing UIs against real databases using simulation mode emmanuel_mayssat
Next: Re: Testing UIs against real databases using simulation mode Angus Gratton
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 29 Nov 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·