EPICS Home

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: Michael Davidsaver via Tech-talk <tech-talk at aps.anl.gov>
To: 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 12:12:13 -0800
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/StreamDevice/blob/668d1d525509604ab4ccd7382022dfb469c99841/src/StreamEpics.cc*L1083-L1085__;Iw!!G_uCfscf7eWS!aBhqEAW8eSGRZFZ7c0-EQ5M1p77k6VTomM1-_usJJCJ1xVPN8EitMeGQx6QJmH7JO9xZ8SxLRj1nVo26UneFqHKWMQ$ https://urldefense.us/v3/__https://github.com/paulscherrerinstitute/StreamDevice/blob/668d1d525509604ab4ccd7382022dfb469c99841/src/StreamEpics.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_uCfscf7eWS!aBhqEAW8eSGRZFZ7c0-EQ5M1p77k6VTomM1-_usJJCJ1xVPN8EitMeGQx6QJmH7JO9xZ8SxLRj1nVo26UnfQCVDNrg$  <https://urldefense.us/v3/__http://www.chess.cornell.edu__;!!G_uCfscf7eWS!ar8DNSD3wtwletm5wJpAz9rza4Yc3Du1OJI0RHbbZn4HIUWallG1jM1gcPZqJlwhcWMQS5Yj8BvPTm3Icccqs8SiO_jEMaE$>






Replies:
RE: StreamDevice waveform record reports CALC error Freddie Akeroyd - STFC UKRI via Tech-talk
References:
StreamDevice waveform record reports CALC error John Dobbins via Tech-talk

Navigate by Date:
Prev: Re: medm edit mode SIGSEGV core dump Ubuntu 24.04. Soliday, Robert T. via Tech-talk
Next: RE: StreamDevice waveform record reports CALC error Freddie Akeroyd - STFC UKRI 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: StreamDevice waveform record reports CALC error John Dobbins via Tech-talk
Next: RE: StreamDevice waveform record reports CALC error Freddie Akeroyd - STFC UKRI 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