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: | Dynamic Assignment is Sequencer |
From: | Ganesh Jangir <[email protected]> |
To: | [email protected] |
Date: | Thu, 27 Mar 2014 17:18:22 +0530 |
Dear All,
I am trying to check connection status of a PV using sequencer. C_CONN is "ao" type record in another IOC.
If I assign this PV statically the sequencer does not starts, when C_CONN is no available. So I am using dynamic assignment.
The following dynamic assignment is not working. but this works well in case of static assignment. Please help where I am doing wrong..
________________________________________________
program tt
int CMC_CONN;
assign CMC_CONN to "CMC_CONN";
monitor CMC_CONN;
int C01_C;
assign C01_C to "";
ss ss1 {
state hello{
when(delay(5)){
pvAssign(C01_C, "C_CONN");
if(pvConnected(C01_C)==1){
printf("C_CONN is connecetd \n");
}
else{
printf("C_CONN is NOT connecetd \n");
}
printf("Value of CMC_CONN is %d \n", CMC_CONN);
}state hello
}
}
I am using
Epics base-3.14.12.3
Sequencer seq-2.1.16
OS: Linux Fedora 19 64bit
Thanks and Regards
Ganesh Jangir
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you