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  <20132014  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  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: calc DTYP
From: "Pearson, Matthew R." <[email protected]>
To: "[email protected]" <[email protected]>
Date: Thu, 13 Jun 2013 15:00:39 -0400
Hi,

I'm seeing this error on my IOC shell:

epics> Illegal choice PV: BL7:Det:PMT001:Stat.DTYP error detected in routine: dbFastLinkConv(cvt_device_st)

where:

epics> dbpr BL7:Det:PMT001:Stat,2
A: 0                ACKS: NO_ALARM      ACKT: YES           ADEL: 0             
ASG:                B: 0                BKPT: 00            C: 1                
CALC: (A!=0)||(B!=0)||(C!=1)            D: 0                DESC: HV Base Status
DISA: 0             DISP: 0             DISS: NO_ALARM      DISV: 1             
DTYP: <nil>         E: 0                EGU:                EVNT: 0             
F: 0                FLNK:CONSTANT 0     G: 0                H: 0                
HHSV: NO_ALARM      HIGH: 0             HIHI: 0             HOPR: 0             
HSV: NO_ALARM       HYST: 0             I: 0                
INPA:CA_LINK BL7:Det:PMT001:Volt.STAT CP NMS                
INPB:CA_LINK BL7:Det:PMT001:Curr.STAT CP NMS                
INPC:CA_LINK BL7:Det:Asyn.CNCT CP NMS   INPD:CONSTANT       INPE:CONSTANT       
INPF:CONSTANT       INPG:CONSTANT       INPH:CONSTANT       INPI:CONSTANT       
INPJ:CONSTANT       INPK:CONSTANT       INPL:CONSTANT       J: 0                
K: 0                L: 0                LCNT: 0             LLSV: NO_ALARM      
LOLO: 0             LOPR: 0             LOW: 0              LSV: NO_ALARM       
MDEL: 0             NAME: BL7:Det:PMT001:Stat               NSEV: NO_ALARM      
NSTA: NO_ALARM      PACT: 0             PHAS: 0             PINI: NO            
PREC: 0             PRIO: LOW           PUTF: 0             RPRO: 0             
SCAN: Passive       SDIS:CONSTANT       SEVR: NO_ALARM      STAT: NO_ALARM      
TIME: 2013-06-13 12:11:11.138031191     TPRO: 0             TSE: 0              
TSEL:CONSTANT       UDF: 0              VAL: 0 


So, my calc record doesn't have any registered device support, which I think is correct because there is no device support for the calc record (?)

I'm wondering why the error is printed, or even if it should be. It's printed whenever I try to read DTYP over channel access, like:

[mkp@DASDEV1 ~]$ caget BL7:Det:PMT001:Stat.DTYP
CA.Client.Exception...............................................
    Warning: "Channel read request failed"
    Context: "op=0, channel=BL7:Det:PMT001:Stat.DTYP, type=DBR_TIME_STRING, count=1, ctx="read failed""
    Source File: ../getCopy.cpp line 92
    Current Time: Thu Jun 13 2013 13:46:12.759397671
..................................................................
Read operation timed out: some PV data was not read.
BL7:Det:PMT001:Stat.DTYP

Shouldn't it just return 0, or None, rather than returning an error?

I only noticed it because I have a script that was reading the DTYP field on a set of records. Normally, I guess it doesn't matter since reading DTYP on a calc record doesn't mean much.

Cheers,
Matt






Replies:
Re: calc DTYP James F Ross

Navigate by Date:
Prev: Why is RELEASE now included in CONFIG_INSTALLS ? Brian McAllister
Next: Re: calc DTYP James F Ross
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Why is RELEASE now included in CONFIG_INSTALLS ? Andrew Johnson
Next: Re: calc DTYP James F Ross
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·