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  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <20242025  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  <20242025 
<== Date ==> <== Thread ==>

Subject: RE: StreamDevice waveform record reports CALC error
From: Freddie Akeroyd - STFC UKRI via Tech-talk <tech-talk at aps.anl.gov>
To: 'Michael Davidsaver' <mdavidsaver at gmail.com>, John Dobbins <john.dobbins at cornell.edu>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Fri, 6 Dec 2024 22:27:51 +0000
Hi John,

A CALC error usually indicates there is input that cannot be parsed (https://urldefense.us/v3/__https://paulscherrerinstitute.github.io/StreamDevice/processing.html*proc__;Iw!!G_uCfscf7eWS!aXd-mh19ZX5invOHfuFM7T_LCXT9TRcLGBas0S7Zph-wRixPTU4ggOMIelbTGyFsQ55XqNlp_1wYkc-OcNSDB0Itv40Xbj8adS0$ )   and I noticed  a   :  in the example you pasted   123108:240.0000    so if that is being added by the galil then it will likely cause the parse error in stream device. If this is a "feature" of the galil then you could try adding a stream device regex input pseudo converter https://urldefense.us/v3/__https://paulscherrerinstitute.github.io/StreamDevice/formats.html*regsub__;Iw!!G_uCfscf7eWS!aXd-mh19ZX5invOHfuFM7T_LCXT9TRcLGBas0S7Zph-wRixPTU4ggOMIelbTGyFsQ55XqNlp_1wYkc-OcNSDB0Itv40XcKPp9xQ$  to pre-parse the input and replace  any :  with a  ,

Regards,

Freddie

> -----Original Message-----
> From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of Michael
> Davidsaver via Tech-talk
> Sent: 06 December 2024 20:12
> To: John Dobbins <john.dobbins at cornell.edu>
> Cc: tech-talk at aps.anl.gov
> Subject: Re: StreamDevice waveform record reports CALC error
> 
> On 12/6/24 07:56, John Dobbins via Tech-talk wrote:
> > All,
> >
> > I am using StreamDevice to read into a waveform record. While it is working
> the waveform STAT = CALC. I have no idea what this is telling me.
> 
> There are two places where CALC_ALARM appears in the stream source.
> 
> Turning on (super) verbose debugging with the streamDebug iocsh variable
> might help to distinguish.
> 
> > var streamDebug 1
> 
> https://urldefense.us/v3/__https://github.com/paulscherrerinstitute/Stream
> Device/blob/668d1d525509604ab4ccd7382022dfb469c99841/src/StreamE
> pics.cc*L1083-L1085__;Iw!!G_uCfscf7eWS!aBhqEAW8eSGRZFZ7c0-
> EQ5M1p77k6VTomM1-
> _usJJCJ1xVPN8EitMeGQx6QJmH7JO9xZ8SxLRj1nVo26UneFqHKWMQ$
> 
> https://urldefense.us/v3/__https://github.com/paulscherrerinstitute/Stream
> Device/blob/668d1d525509604ab4ccd7382022dfb469c99841/src/StreamE
> pics.cc*L1461__;Iw!!G_uCfscf7eWS!aBhqEAW8eSGRZFZ7c0-
> EQ5M1p77k6VTomM1-
> _usJJCJ1xVPN8EitMeGQx6QJmH7JO9xZ8SxLRj1nVo26UnevSs6Xyw$
> 
> 
> > AsynTrace does not report any problems.
> >
> >
> > EPICS 7.0.2,  StreamDevice-2-8-9
> >
> > The record in question:
> >
> > record(waveform, "ID5:SCCU19:array") {
> >      field(DTYP, "stream")
> >      field(FTVL, "DOUBLE")
> >      field(NELM, "18")
> >      field(INP,  "@galil.proto get_sccu_array() $(PORT)")
> >      field(SCAN, "1 second")
> >      field(FLNK, "ID5:SCCU19:array_event") }
> >
> >
> > epics> dbpr ID5:SCCU19:array 4
> > ACKS: INVALID       ACKT: YES           APST: Always        ASG :
> > ASP : PTR (nil)     BKLNK: ELL 18 [0x1e0f870 .. 0x1e1a5f0]  BKPT: 00
> > BPTR: PTR 0x1e2b1d0 BUSY: 0             DESC:               DISA: 0
> > DISP: 0             DISS: NO_ALARM      DISV: 1             DPVT: PTR
> > 0x1e2da80
> > DSET: PTR 0x844f60  DTYP: stream        EGU :               EVNT:
> > FLNK: DB_LINK ID5:SCCU19:array_event    FTVL: DOUBLE        HASH: 0
> > HOPR: 0             INP : INST_IO @galil.proto get_sccu_array()
> > MDCP_49
> > LCNT: 0             LOPR: 0             LSET: PTR 0x1e27c30
> > MLIS: ELL 0 [(nil) .. (nil)]            MLOK: a0 b1 e2 01 00 00 00 00
> > MPST: Always        NAME: ID5:SCCU19:array                  NELM: 18
> > NORD: 18            NSEV: NO_ALARM      NSTA: NO_ALARM      OLDSIMM:
> > NO
> > PACT: 0             PHAS: 0             PINI: NO            PPN : PTR
> > (nil)
> > PPNR: PTR (nil)     PREC: 0             PRIO: LOW           PROC: 0
> > PUTF: 0             RARM: 0             RDES: PTR 0x1db7050 RPRO: 0
> > RSET: PTR 0x847020  SCAN: 1 second      SDIS: CONSTANT      SDLY: -1
> > SEVR: INVALID       SIML: CONSTANT      SIMM: NO            SIMPVT:
> > PTR (nil)
> > SIMS: NO_ALARM      SIOL: CONSTANT      SPVT: PTR 0x1e30430 SSCN:
> > <nil>
> > STAT: CALC          TIME: 2024-12-06 10:52:45.618293874     TPRO: 0
> > TSE : 0             TSEL: CONSTANT      UDF : 0             UDFS:
> > INVALID VAL : PTR (nil)
> >
> >
> > The proto file
> >
> > --------------------------------
> >
> > OutTerminator = CR;
> > InTerminator = "";
> > ReplyTimeout = 3000;
> > ReadTimeout = 100;
> >
> > get_sccu_array {
> >    separator=", ";
> >    out "QU sccu[],0,17,1";
> >    in "%f";
> > }
> >
> > --------------------------------
> >
> > The command  sccu[],0,17,1  request the elements of the array,
> sscu_array[], returned as a string with a comma as the separator.
> >
> > :QU sccu[],0,17,1
> >   77.7463, -131.1270, 175.9897, 96.7502, 23666.0000, 23666.0000,
> > 23666.0000, 23666.0000, 23669.0000, 23670.0000, 23671.0000,
> > 23671.0000, -42.7689, 0.0000, 123108:240.0000, 23670.0000, 0.0000,
> > 0.0000
> >
> >
> > Any advice appreciated.
> >
> > Thanks,
> >
> > John Dobbins
> >
> > Research Support Specialist
> > Cornell High Energy Synchrotron Source Cornell University
> >
> > https://urldefense.us/v3/__http://www.chess.cornell.edu__;!!G_uCfscf7e
> > WS!aBhqEAW8eSGRZFZ7c0-EQ5M1p77k6VTomM1-
> _usJJCJ1xVPN8EitMeGQx6QJmH7JO9x
> > Z8SxLRj1nVo26UnfQCVDNrg$
> > <https://urldefense.us/v3/__http://www.chess.cornell.edu__;!!G_uCfscf7
> >
> eWS!ar8DNSD3wtwletm5wJpAz9rza4Yc3Du1OJI0RHbbZn4HIUWallG1jM1gcP
> ZqJlwhcW
> > MQS5Yj8BvPTm3Icccqs8SiO_jEMaE$>
> >
> >
> >
> >


Replies:
Re: StreamDevice waveform record reports CALC error John Dobbins via Tech-talk
References:
StreamDevice waveform record reports CALC error John Dobbins via Tech-talk
Re: StreamDevice waveform record reports CALC error Michael Davidsaver via Tech-talk

Navigate by Date:
Prev: Re: StreamDevice waveform record reports CALC error Michael Davidsaver via Tech-talk
Next: Re: StreamDevice waveform record reports CALC error John Dobbins via Tech-talk
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  <20242025 
Navigate by Thread:
Prev: Re: StreamDevice waveform record reports CALC error Michael Davidsaver via Tech-talk
Next: Re: StreamDevice waveform record reports CALC error John Dobbins via Tech-talk
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  <20242025 
ANJ, 06 Dec 2024 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·