Experimental Physics and Industrial Control System
|
Yes, it was the colon. Thanks. John
From: Freddie Akeroyd - STFC UKRI <freddie.akeroyd at stfc.ac.uk>
Sent: Friday, December 6, 2024 5:27:51 PM
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>
Subject: RE: StreamDevice waveform record reports CALC error
Hi John,
A CALC error usually indicates there is input that cannot be parsed ( https://nam12.safelinks.protection.outlook.com/?url="">)
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://nam12.safelinks.protection.outlook.com/?url="">
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://nam12.safelinks.protection.outlook.com/?url="">
> Device/blob/668d1d525509604ab4ccd7382022dfb469c99841/src/StreamE
> pics.cc*L1083-L1085__;Iw!!G_uCfscf7eWS!aBhqEAW8eSGRZFZ7c0-
> EQ5M1p77k6VTomM1-
> _usJJCJ1xVPN8EitMeGQx6QJmH7JO9xZ8SxLRj1nVo26UneFqHKWMQ$
>
>
https://nam12.safelinks.protection.outlook.com/?url="">
> 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://nam12.safelinks.protection.outlook.com/?url="">
> > WS!aBhqEAW8eSGRZFZ7c0-EQ5M1p77k6VTomM1-
> _usJJCJ1xVPN8EitMeGQx6QJmH7JO9x
> > Z8SxLRj1nVo26UnfQCVDNrg$
> > <https://nam12.safelinks.protection.outlook.com/?url="">
> >
> eWS!ar8DNSD3wtwletm5wJpAz9rza4Yc3Du1OJI0RHbbZn4HIUWallG1jM1gcP
> ZqJlwhcW
> > MQS5Yj8BvPTm3Icccqs8SiO_jEMaE$>
> >
> >
> >
> >
- References:
- StreamDevice waveform record reports CALC error John Dobbins via Tech-talk
- Re: StreamDevice waveform record reports CALC error Michael Davidsaver via Tech-talk
- RE: StreamDevice waveform record reports CALC error Freddie Akeroyd - STFC UKRI via Tech-talk
- Navigate by Date:
- Prev:
RE: StreamDevice waveform record reports CALC error Freddie Akeroyd - STFC UKRI via Tech-talk
- Next:
Re: medm edit mode SIGSEGV core dump Ubuntu 24.04. J. Lewis Muir 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
<2024>
2025
- Navigate by Thread:
- Prev:
RE: StreamDevice waveform record reports CALC error Freddie Akeroyd - STFC UKRI via Tech-talk
- Next:
IOC for Tektronix DAQ6510? Jeffrey Gamsby 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
<2024>
2025
|
ANJ, 09 Dec 2024 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
·
Download
·
Search
·
IRMIS
·
Talk
·
Documents
·
Links
·
Licensing
·
|