1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 <2018> 2019 2020 2021 2022 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 <2018> 2019 2020 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Asyn: disconnect and reconnect port via PV |
From: | Bruno Martins <[email protected]> |
To: | [email protected] |
Cc: | tech-talk <[email protected]> |
Date: | Fri, 31 Aug 2018 09:13:41 -0400 |
Hello everyone,
I have implemented a soft IOC that communicates to a spectrum analyzer via asyn and stream device using vxi11:
vxi11Configure("device_port","$(DEVICE_IP)",0,"0.0","inst0",0,0)
The device has a limitation that it can only be controlled by one remote controller at a time. The current approach is to temporarily stop the entire soft IOC when required and then restart it via the st.cmd file.
It would be better to have a PV (e.g. a bo with CONNECTED/DISCONNECTED state) for this task, that can dis- and reconnect the asyn port.
I know that you can disable record processing by the DISA field, but that did not prevent asyn to keep up a connection to the device in background.
I found the “asynManager” which has the promising “connectDevice” and “disconnect” option, but I’m not sure how to (if at all) call them from the PV.
Is there a way to have such a PV? How could that be implemented?
Greetings and tanks in advance
Philipp
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------