EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  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  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Problem with seq 2.0.4
From: "Jeff Hill" <[email protected]>
To: "'Mark Rivers'" <[email protected]>, <[email protected]>
Date: Tue, 2 Sep 2003 18:44:04 -0600
Mark,

The R3.14 CA client library is implemented with threads on all supported OS.
There is a backwards compatibility mode which forces non-preemptive
operation for legacy client side codes. That's the default.

The sequencer and the database links were originally written for preemptive
callback from CA on vxWorks. With R3.14 both of them now run on all
supported OS, and they both continue to require preemptive callback from CA.

The database links are well tested in this mode of operation, but perhaps
there is a race condition in the sequencer which is influenced by the
improved performance of CA in R3.14. There might also be a problem in the
R3.14 implementation of the CA client library. 

There is a new CA client library function called "ca_client_status" in
R3.14. You might try modifying the seqShow() function so that it calls "int
ca_client_status(unsigned level)". This function prints more information
about the CA client library as the level argument increases in magnitude. At
level 6 the connection state of every channel is dumped to stdout. The
information provided by this routine is very low level. You will need to
wade through many lines to find the channel connection state information
that you need but that information might help when trying to determine if
the problem is in the sequencer or if it is in the CA client library.

Jeff

> -----Original Message-----
> From: Mark Rivers [mailto:[email protected]]
> Sent: Tuesday, September 02, 2003 4:40 PM
> To: [email protected]
> Subject: FW: Problem with seq 2.0.4
> 
> Folks,
> 
> I am having a serious problem with seq 2.0.4 under EPICS 3.14.3 (CVS
> snapshot from Saturday).  Some of my sequence programs work fine.
> However, one of them is displaying the following message:
> 
> ioc13bma> 16 of 26 assigned channels have connected
> 
> The exact number of assigned channels varies each time I reboot.  I've
> seen all even numbers between 16 and 26 (meaning all channels
> connected).  The rest never connect, no matter how long I wait. However,
> all of the channels are valid, and all except 2 are local to the IOC
> running the seq program.  In fact, if I run seqChanShow on this program
> it shows that all channels are actually connected!  I am appending the
> output that demonstrates this. Also,
> seqChanShow tid, "-"
> does not list any channels, so in that sense it does not think there are
> any disconnected channels.  However, because it thinks there are
> unconnected channels, it never starts running the sequence program.
> 
> The only thing different about this seq program from ones that work is
> that it does reference 2 PVs that are external to the IOC.  I don't know
> if this is related to the problem.  I have run "i" and "checkStack" to
> make sure that's not the problem.
> 
> This problem is preventing me from running 3.14 on my beamline IOCs.
> Any ideas what could be wrong, or how to track it down?
> 
> Has anyone else seen this?
> 
> Thanks,
> Mark
> 
> 
> ************************************************************************
> *
> ioc13bma> seqChanShow 0x1239468,"-"
> State Program: "BM13_Energy"
> Number of channels=26
> value = 0 = 0x0
> 
> 
> ioc13bma> seqChanShow 0x1239468
> State Program: "BM13_Energy"
> Number of channels=26
> 
> #1 of 26:
> Channel name: "13BMA:E:Energy.VAL"
>   Unexpanded (assigned) name: "{E}:Energy.VAL"
>   Variable name: "en"
>     address = 30259416 = 0x1cdb8d8
>     type = double
>     count = 1
>   Value = 0
>   Monitor flag = 1
>     Monitored
>   Assigned
>   Connected
>   Get not completed or no get issued
>   Put not completed or no put issued
>   Status = 17
>   Severity = 3
>   Message =
>   Time stamp = <undefined>
> Next? (+/- skip count)
> 
> 
> #2 of 26:
> Channel name: "13BMA:E:E_RBV"
>   Unexpanded (assigned) name: "{E}:E_RBV"
>   Variable name: "en_rbv"
>     address = 30259424 = 0x1cdb8e0
>     type = double
>     count = 1
>   Value = 0
>   Monitor flag = 0
>     Not monitored
>   Assigned
>   Connected
>   Get not completed or no get issued
>   Put not completed or no put issued
>   Status = 0
>   Severity = 0
>   Message =
>   Time stamp = <undefined>
> Next? (+/- skip count)
> 
> 
> #3 of 26:
> Channel name: "13BMA:E:dspace.VAL"
>   Unexpanded (assigned) name: "{E}:dspace.VAL"
>   Variable name: "dspace"
>     address = 30259432 = 0x1cdb8e8
>     type = double
>     count = 1
>   Value = 3.13555
>   Monitor flag = 1
>     Monitored
>   Assigned
>   Connected
>   Get not completed or no get issued
>   Put not completed or no put issued
>   Status = 17
>   Severity = 3
>   Message =
>   Time stamp = <undefined>
> Next? (+/- skip count)
> 
> 
> #4 of 26:
> Channel name: "13BMA:E:height.VAL"
>   Unexpanded (assigned) name: "{E}:height.VAL"
>   Variable name: "height"
>     address = 30259440 = 0x1cdb8f0
>     type = double
>     count = 1
>   Value = 20
>   Monitor flag = 1
>     Monitored
>   Assigned
>   Connected
>   Get not completed or no get issued
>   Put not completed or no put issued
>   Status = 17
>   Severity = 3
>   Message =
>   Time stamp = <undefined>
> Next? (+/- skip count)
> 
> 
> #5 of 26:
> Channel name: "13BMA:E:width.VAL"
>   Unexpanded (assigned) name: "{E}:width.VAL"
>   Variable name: "width"
>     address = 30259448 = 0x1cdb8f8
>     type = double
>     count = 1
>   Value = 10.0122
>   Monitor flag = 1
>     Monitored
>   Assigned
>   Connected
>   Get not completed or no get issued
>   Put not completed or no put issued
>   Status = 17
>   Severity = 3
>   Message =
>   Time stamp = <undefined>
> Next? (+/- skip count)
> 
> 
> #6 of 26:
> Channel name: "13BMA:E:verbose.VAL"
>   Unexpanded (assigned) name: "{E}:verbose.VAL"
>   Variable name: "verbose"
>     address = 30259456 = 0x1cdb900
>     type = int
>     count = 1
>   Value = 1
>   Monitor flag = 1
>     Monitored
>   Assigned
>   Connected
>   Get not completed or no get issued
>   Put not completed or no put issued
>   Status = 17
>   Severity = 3
>   Message =
>   Time stamp = <undefined>
> Next? (+/- skip count)
> 
> #7 of 26:
> Channel name: "13BMA:E:Moving.VAL"
>   Unexpanded (assigned) name: "{E}:Moving.VAL"
>   Variable name: "en_busy"
>     address = 30259460 = 0x1cdb904
>     type = int
>     count = 1
>   Value = 0
>   Monitor flag = 1
>     Monitored
>   Assigned
>   Connected
>   Get not completed or no get issued
>   Put not completed or no put issued
>   Status = 17
>   Severity = 3
>   Message =
>   Time stamp = <undefined>
> Next
> ? (+/- skip count)
> 
> #8 of 26:
> Channel name: "13BMA:E:SET.VAL"
>   Unexpanded (assigned) name: "{E}:SET.VAL"
>   Variable name: "en_set"
>     address = 30259464 = 0x1cdb908
>     type = int
>     count = 1
>   Value = 0
>   Monitor flag = 1
>     Monitored
>   Assigned
>   Connected
>   Get not completed or no get issued
>   Put not completed or no put issued
>   Status = 17
>   Severity = 3
>   Message =
>   Time stamp = <undefined>
> Next? (+/- skip count)
> 
> #9 of 26:
> Channel name: "13BMA:E:y2_track.VAL"
>   Unexpanded (assigned) name: "{E}:y2_track.VAL"
>   Variable name: "y2_track"
>     address = 30259468 = 0x1cdb90c
>     type = int
>     count = 1
>   Value = 1
>   Monitor flag = 1
>     Monitored
>   Assigned
>   Connected
>   Get not completed or no get issued
>   Put not completed or no put issued
>   Status = 17
>   Severity = 3
>   Message =
>   Time stamp = <undefined>
> Next? (+/- skip count)
> 
> #10 of 26:
> Channel name: "13BMA:E:z2_track.VAL"
>   Unexpanded (assigned) name: "{E}:z2_track.VAL"
>   Variable name: "z2_track"
>     address = 30259472 = 0x1cdb910
>     type = int
>     count = 1
>   Value = 1
>   Monitor flag = 1
>     Monitored
>   Assigned
>   Connected
>   Get not completed or no get issued
>   Put not completed or no put issued
>   Status = 17
>   Severity = 3
>   Message =
>   Time stamp = <undefined>
> Next? (+/- skip count)
> 
> #11 of 26:
> Channel name: "13BMA:E:xt_track.VAL"
>   Unexpanded (assigned) name: "{E}:xt_track.VAL"
>   Variable name: "xt_track"
>     address = 30259476 = 0x1cdb914
>     type = int
>     count = 1
>   Value = 0
>   Monitor flag = 1
>     Monitored
>   Assigned
>   Connected
>   Get not completed or no get issued
>   Put not completed or no put issued
>   Status = 17
>   Severity = 3
>   Message =
>   Time stamp = <undefined>
> Next? (+/- skip count)
> 
> #12 of 26:
> Channel name: "13BMA:E:xt_off.VAL"
>   Unexpanded (assigned) name: "{E}:xt_off.VAL"
>   Variable name: "xt_off"
>     address = 30259480 = 0x1cdb918
>     type = double
>     count = 1
>   Value = 1016.4
>   Monitor flag = 1
>     Monitored
>   Assigned
>   Connected
>   Get not completed or no get issued
>   Put not completed or no put issued
>   Status = 17
>   Severity = 3
>   Message =
>   Time stamp = <undefined>
> Next? (+/- skip count)
> 
> #13 of 26:
> Channel name: "13BMA:E:xt_sign.VAL"
>   Unexpanded (assigned) name: "{E}:xt_sign.VAL"
>   Variable name: "xt_sign"
>     address = 30259488 = 0x1cdb920
>     type = double
>     count = 1
>   Value = 1
>   Monitor flag = 1
>     Monitored
>   Assigned
>   Connected
>   Get not completed or no get issued
>   Put not completed or no put issued
>   Status = 17
>   Severity = 3
>   Message =
>   Time stamp = <undefined>
> Next? (+/- skip count)
> 
> #14 of 26:
> Channel name: "13BMA:E:xt_mvmin.VAL"
>   Unexpanded (assigned) name: "{E}:xt_mvmin.VAL"
>   Variable name: "xt_mvmin"
>     address = 30259496 = 0x1cdb928
>     type = double
>     count = 1
>   Value = 0.005
>   Monitor flag = 1
>     Monitored
>   Assigned
>   Connected
>   Get not completed or no get issued
>   Put not completed or no put issued
>   Status = 17
>   Severity = 3
>   Message =
>   Time stamp = <undefined>
> Next? (+/- skip count)
> 
> #15 of 26:
> Channel name: "13BMD:m22.VAL"
>   Unexpanded (assigned) name: "{EXPTAB_Z}.VAL"
>   Variable name: "xt_ht"
>     address = 30259504 = 0x1cdb930
>     type = double
>     count = 1
>   Value = 1036.31
>   Monitor flag = 1
>     Monitored
>   Assigned
>   Connected
>   Get not completed or no get issued
>   Put not completed or no put issued
>   Status = 0
>   Severity = 0
>   Message =
>   Time stamp = <undefined>
> Next? (+/- skip count)
> 
> #16 of 26:
> Channel name: "13BMD:m22.DMOV"
>   Unexpanded (assigned) name: "{EXPTAB_Z}.DMOV"
>   Variable name: "xt_done"
>     address = 30259512 = 0x1cdb938
>     type = int
>     count = 1
>   Value = 1
>   Monitor flag = 1
>     Monitored
>   Assigned
>   Connected
>   Get not completed or no get issued
>   Put not completed or no put issued
>   Status = 0
>   Severity = 0
>   Message =
>   Time stamp = <undefined>
> Next? (+/- skip count)
> 
> #17 of 26:
> Channel name: "13BMA:m14.VAL"
>   Unexpanded (assigned) name: "{ZXTAL}.VAL"
>   Variable name: "z2"
>     address = 30259520 = 0x1cdb940
>     type = double
>     count = 1
>   Value = 172
>   Monitor flag = 1
>     Monitored
>   Assigned
>   Connected
>   Get not completed or no get issued
>   Put not completed or no put issued
>   Status = 0
>   Severity = 0
>   Message =
>   Time stamp = <undefined>
> Next? (+/- skip count)
> 
> #18 of 26:
> Channel name: "13BMA:m14.LLM"
>   Unexpanded (assigned) name: "{ZXTAL}.LLM"
>   Variable name: "z2lo"
>     address = 30259528 = 0x1cdb948
>     type = double
>     count = 1
>   Value = 15
>   Monitor flag = 1
>     Monitored
>   Assigned
>   Connected
>   Get not completed or no get issued
>   Put not completed or no put issued
>   Status = 0
>   Severity = 0
>   Message =
>   Time stamp = <undefined>
> Next? (+/- skip count)
> 
> #19 of 26:
> Channel name: "13BMA:m14.HLM"
>   Unexpanded (assigned) name: "{ZXTAL}.HLM"
>   Variable name: "z2hi"
>     address = 30259536 = 0x1cdb950
>     type = double
>     count = 1
>   Value = 172
>   Monitor flag = 1
>     Monitored
>   Assigned
>   Connected
>   Get not completed or no get issued
>   Put not completed or no put issued
>   Status = 0
>   Severity = 0
>   Message =
>   Time stamp = <undefined>
> Next? (+/- skip count)
> 
> #20 of 26:
> Channel name: "13BMA:m14.DMOV"
>   Unexpanded (assigned) name: "{ZXTAL}.DMOV"
>   Variable name: "z2_done"
>     address = 30259544 = 0x1cdb958
>     type = int
>     count = 1
>   Value = 1
>   Monitor flag = 1
>     Monitored
>   Assigned
>   Connected
>   Get not completed or no get issued
>   Put not completed or no put issued
>   Status = 0
>   Severity = 0
>   Message =
>   Time stamp = <undefined>
> Next? (+/- skip count)
> 
> #21 of 26:
> Channel name: "13BMA:MON:t1.Y"
>   Unexpanded (assigned) name: "{YXTAL}t1.Y"
>   Variable name: "y2"
>     address = 30259552 = 0x1cdb960
>     type = double
>     count = 1
>   Value = 13.846
>   Monitor flag = 1
>     Monitored
>   Assigned
>   Connected
>   Get not completed or no get issued
>   Put not completed or no put issued
>   Status = 14
>   Severity = 3
>   Message =
>   Time stamp = 2003/09/01 15:25:58.432
> Next? (+/- skip count)
> 
> 
> #22 of 26:
> Channel name: "13BMA:MON:T1:done.VAL"
>   Unexpanded (assigned) name: "{YXTAL}T1:done.VAL"
>   Variable name: "y2_done"
>     address = 30259560 = 0x1cdb968
>     type = int
>     count = 1
>   Value = 1
>   Monitor flag = 1
>     Monitored
>   Assigned
>   Connected
>   Get not completed or no get issued
>   Put not completed or no put issued
>   Status = 14
>   Severity = 3
>   Message =
>   Time stamp = 2003/09/01 15:25:58.432
> Next? (+/- skip count)
> 
> 
> #23 of 26:
> Channel name: "13BMA:m17"
>   Unexpanded (assigned) name: "{MONO}"
>   Variable name: "th"
>     address = 30259568 = 0x1cdb970
>     type = double
>     count = 1
>   Value = 10.791
>   Monitor flag = 1
>     Monitored
>   Assigned
>   Connected
>   Get not completed or no get issued
>   Put not completed or no put issued
>   Status = 0
>   Severity = 0
>   Message =
>   Time stamp = <undefined>
> Next? (+/- skip count)
> 
> 
> #24 of 26:
> Channel name: "13BMA:m17.RBV"
>   Unexpanded (assigned) name: "{MONO}.RBV"
>   Variable name: "th_rbv"
>     address = 30259576 = 0x1cdb978
>     type = double
>     count = 1
>   Value = 10.791
>   Monitor flag = 1
>     Monitored
>   Assigned
>   Connected
>   Get not completed or no get issued
>   Put not completed or no put issued
>   Status = 0
>   Severity = 0
>   Message =
>   Time stamp = <undefined>
> Next? (+/- skip count)
> 
> 
> #25 of 26:
> Channel name: "13BMA:m17.SET"
>   Unexpanded (assigned) name: "{MONO}.SET"
>   Variable name: "th_set"
>     address = 30259584 = 0x1cdb980
>     type = int
>     count = 1
>   Value = 0
>   Monitor flag = 0
>     Not monitored
>   Assigned
>   Connected
>   Get not completed or no get issued
>   Put not completed or no put issued
>   Status = 0
>   Severity = 0
>   Message =
>   Time stamp = <undefined>
> Next? (+/- skip count)
> 
> 
> #26 of 26:
> Channel name: "13BMA:m17.DMOV"
>   Unexpanded (assigned) name: "{MONO}.DMOV"
>   Variable name: "th_done"
>     address = 30259588 = 0x1cdb984
>     type = int
>     count = 1
>   Value = 1
>   Monitor flag = 1
>     Monitored
>   Assigned
>   Connected
>   Get not completed or no get issued
>   Put not completed or no put issued
>   Status = 0
>   Severity = 0
>   Message =
>   Time stamp = <undefined>
> Next? (+/- skip count)
> 
> value = 0 = 0x0



References:
FW: Problem with seq 2.0.4 Mark Rivers

Navigate by Date:
Prev: FW: Problem with seq 2.0.4 Mark Rivers
Next: RE: Problem with seq 2.0.4 Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: FW: Problem with seq 2.0.4 Mark Rivers
Next: RE: Problem with seq 2.0.4 Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·