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 | 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 |
<== Date ==> | <== Thread ==> |
---|
Subject: | RE: How to check if IOC is connected or not? |
From: | "Mooney, Tim M." <[email protected]> |
To: | Ganesh Jangir <[email protected]>, "[email protected]" <[email protected]> |
Date: | Mon, 24 Mar 2014 13:51:58 +0000 |
The calcout record also has fields indicating the states of its input links.
record(calcout, "all_ok") {
field(INPA, "ioc1_pv")
field(INPB, "all_ok.INAV")
...
}
Tim
From: [email protected] [[email protected]] on behalf of Ganesh Jangir [[email protected]]
Sent: Monday, March 24, 2014 3:02 AM To: [email protected] Subject: How to check if IOC is connected or not? Dear All,
I have multiple IOC(say 4) on 4 linux (Fedora, 64bit) machines over network. Each IOC also have running Sequencer program. Sequencer of each IOC need to be aware of every IOC if they are running or not/ machine connected or not, before doing some task. How to do this? I tried using CALC Record. Its 4 INP fields gets some particular value from four different IOC and calculate some new value,By interpreting this value Sequencer come to know about the connected IOC. The problem is that , in case of some disconnection of IOC , its INP fields picking old values. And CALC record gives same value in each case. Is this right approach for many IOCs? How to make INP fields, to give different value in case of disconnection of some IOC. Second, I also tried using pvConnected() function of sequencer. But it starts giving error messages incase of disconnection, before checking it. ___________________________________________________ I am using Epics base-3.14.12.3 Sequencer seq-2.1.16 OS: Linux Fedora 19 64bit I have following settings. export EPICS_ROOT=/home/ganesh/epics export EPICS_HOST_ARCH=linux-x86_64 export EPICS_BASE=$EPICS_ROOT/base-3.14.12.3 export EPICS_EXTENSIONS=$EPICS_ROOT/extensions export EPICS_CA_ADDR_LIST="192.168.8.2 192.168.8.3 192.168.8.4 192.168.8.5" export MOTIF_LIB=/usr/lib64/ export SEQ=$EPICS_ROOT/extensions/seq-2.1.16 export PATH=/sbin:/bin:/usr/sbin:/usr/bin:$file:$EPICS_ROOT/base-3.14.12.3/bin/linux-x86_64:/bin/linux-x86_64 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$EPICS_BASE/lib/$EPICS_HOST_ARCH:$EPICS_EXTENSIONS/lib/$EPICS_HOST_ARCH __________________________________________________________________ Best Regards Ganesh =====-----=====-----===== |