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: Asyn VXI-11 Driver and VXI-11 Locking
From: William Lu <[email protected]>
To: Eric Norum <[email protected]>
Cc: EPICS Tech Talk <[email protected]>
Date: Thu, 02 Dec 2010 16:17:34 -0500
I think that that would be a useful option. Actually I may prefer a dedicated function for locking and one for unlocking. That way, users can lock the devices for a certain period of time.

Thanks,
William

Eric Norum wrote:
Great. Thanks for testing thig.

1) Should we make this an option to the vxi11Configure command?
	Pro: Allows locking to be controlled
	Con: But only on a fairly coarse granulatiry and that command already has a lot of arguments to keep track of.

2) I can't explain why terminating the program with a ^C would leave the socket in any different state than terminating the program with an explicit exit. As far as I know the VXI-11 driver installs no 'atexit' handler to do anything special so the socket should end up getting closed by the kernel in either case.

On Dec 2, 2010, at 12:35 PM, William Lu wrote:

I set the crLinkP.lockDevice to 1 as Eric suggested, and it does the trick! My ioc locked the devices exclusively.

Additional findings:

1, the ICS 8065 Ethernet-GPIB controller has a configurable timeout for the communications with the TCP/IP clients. If the ioc does not communicate with any GPIB devices for the timeout amount of time, the 8065 will release all locks created by the ioc.

2, if the ioc is terminated by the iocshell "exit" command, the 8065 does not release the locks created by the ioc until the communication timeout expires.

3, if the ioc is terminated by ctrl-c in the iocshell, the 8065 releases the locks created by the ioc immediately. It seems that the ioc upon "exit" does not unlock the links nor close the sockets, whereas ctrl-c at least does one of them.

Thank you Eric and Mark for your help.

Best regards,
William


-- Weiwei Lu 757-269-7476 [email protected]


References:
Asyn VXI-11 Driver and VXI-11 Locking William Lu
Re: Asyn VXI-11 Driver and VXI-11 Locking Eric Norum
Re: Asyn VXI-11 Driver and VXI-11 Locking William Lu
Re: Asyn VXI-11 Driver and VXI-11 Locking Eric Norum

Navigate by Date:
Prev: Re: Asyn VXI-11 Driver and VXI-11 Locking Eric Norum
Next: Re: string array PV Tim Mooney
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: Asyn VXI-11 Driver and VXI-11 Locking Eric Norum
Next: rtems-4.10 tftp support Jim Chen
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, 09 Dec 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·