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  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019 
<== Date ==> <== Thread ==>

Subject: RE: question about ca_get, ca_pend_io timeout in EPICS client with Windows XP multi-threading
From: Jay Steele <jsteele@xradia.com>
To: "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Fri, 19 Aug 2011 16:07:41 -0700
Hi all,
    I am currently executing a ca_put command to set a VAL field for a asyn motor record, then using the ca_pend_io function to wait until the command was sent out. I use other ca_get_callback commands to monitor the DMOV and MSTA fields to determine when the move has completed. I thought at first that I could use ca_put_callback and a callback function to indicate that the command was sent out, but the actual behavior is different - the callback function indicates when the motion is finished.

    My program works okay for now using ca_put and then ca_pend_io to set the VAL field for asyn motor records.

Cheers,
Jay Steele
Xradia Corporation

-----Original Message-----
From: tech-talk-bounces@aps.anl.gov [mailto:tech-talk-bounces@aps.anl.gov] On Behalf Of Andrew Johnson
Sent: Friday, August 19, 2011 8:41 AM
To: J. Lewis Muir
Cc: tech-talk@aps.anl.gov
Subject: Re: question about ca_get, ca_pend_io timeout in EPICS client with Windows XP multi-threading

Hi Lewis,

On 2011-08-19 J. Lewis Muir wrote:
> Are you talking about the EPICS motor record?  The VAL field is
> only updated after the move completes if certain logic makes it
> get synced with the RBV field.  The VAL field does not update as
> the motor moves.  The RBV field does.

Oops, my mistake, it's ages (10 years?) since I've actually used a motor
record, so I'm happy to be corrected.

Maybe Jay could explain what information he's actually wanting to get, and the
other motor experts here can tell him how to achieve that.

- Andrew
--
Optimization is the process of taking something that works and
replacing it with something that almost works, but costs less.
-- Roger Needham

 The information in this email, including any attachments, is confidential and intended only for the recipient(s) listed.  Any use of this email for any other purpose is prohibited.  If you have received this email in error, please notify me immediately by reply email, delete this email, and do not disclose its contents to anyone.


References:
question about ca_get, ca_pend_io timeout in EPICS client with Windows XP multi-threading Jay Steele
Re: question about ca_get, ca_pend_io timeout in EPICS client with Windows XP multi-threading Andrew Johnson
Re: question about ca_get, ca_pend_io timeout in EPICS client with Windows XP multi-threading J. Lewis Muir
Re: question about ca_get, ca_pend_io timeout in EPICS client with Windows XP multi-threading Andrew Johnson

Navigate by Date:
Prev: Re: CAJ host name quirk Re: EPICS BOY ... J. Lewis Muir
Next: EPICS (>=3.14.11) compiling problem on Snow Leopard (10.6.8) Shen, Guobao
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019 
Navigate by Thread:
Prev: Re: question about ca_get, ca_pend_io timeout in EPICS client with Windows XP multi-threading Andrew Johnson
Next: PCASpy 0.2 release Wang Xiaoqiang
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·