g+
g+ Communities
Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013 
<== Date ==> <== Thread ==>

Subject: Reading a synchronous input with an asynchronous device.
From: Emmanuel Mayssat <emmanuel_mayssat@lynceantech.com>
To: EPICS Tech Talk <tech-talk@aps.anl.gov>
Date: Wed, 16 Mar 2005 17:21:15 -0800
I am convinced that some of you were faced with the same situation where you had to read a timed input with an asynchronous device.
Well, apparently I am no different and would like to know what your suggestions are.


Here is my situation:

The input signal is binary and periodic with period T=10ms.
The duty cycle is ~60% ( or the TTL level high is maintained for 6ms while the TTL level low is maintained for the remaining of T)


If the signal becomes aperiodic ( always TTL high or TTL low ) then there is an error ( wrong cable connection or device error )

I have an epics driver for the asynchronous device (binary input).

Here are the solutions I came across:

1/ The obvious one: write a new epics driver that will query the binary input 10 times over 10 ms. If I get at least a 1 and a 0 then everything is ok => pbi->val=1

2/ I looked at soft records that could run on the top of the existing INSTIO record. That is my prefered way.
I came accross the seq record in the record manual. Is it an appropriate use for it? Am I on the right direction?


Do you have any other suggestions?

Thanks,

--
Emmanuel Mayssat
Lyncean Technologies, Inc.
Direct: 650/320-8300 x409
Cell: 650/793-0626


Replies:
Re: Reading a synchronous input with an asynchronous device. Ned Arnold
References:
Browsing the ioc error log file Ned Arnold
Re: Browsing the ioc error log file Ralph Lange

Navigate by Date:
Prev: dbst for 3.14 Benjamin Franksen
Next: dbStaticLib in R3.14.7 Benjamin Franksen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013 
Navigate by Thread:
Prev: Re: Browsing the ioc error log file Ralph Lange
Next: Re: Reading a synchronous input with an asynchronous device. Ned Arnold
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·