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  <20222023  2024  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  <20222023  2024 
<== Date ==> <== Thread ==>

Subject: Conversion error when using (pvapy served) PVA input link in a "bi" record
From: Nicklas Holmberg via Tech-talk <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Mon, 16 May 2022 11:47:38 +0000

Hi,

 

I am using pva input links for two different records, a longin and a bi record. The “longin” record works without any problem, but the “bi” does not.

 

The error shown in the IOC shell is:

pvaLink long int {anonymous}::pvaGetValue(DBLINK*, short int, void*, long int*) fails my-bi:pvapy-bool: castUnsafeV: Conversion not supported

 

which, of course, repeats every time the record is processed.

 

The PVs are served from a python pvapy application, and I have no problem reading them using general EPICS commands like pvget, pvinfo, etc. I use them as input links to the bi and longin records like this:

 

record(longin, "my-longin:pvapy-int"){

field(INP,      {pva:{

                pv:"plc-ts:PLC:ts_1252_ns",

                proc:"CPP"

          }})

}

 

record(bi, "my-bi:pvapy-bool"){

field(INP,      {pva:{

                pv:"plc-ts:ptp:synchronized ",

                proc:"CPP"

           }})

}

 

The IOC uses EPICS 7.0.6.1 and the following st.cmd:

 

#!/usr/bin/env iocsh.bash

dbLoadRecords("nsrecord.db")

 

iocInit()

 

Doing “pvinfo” on the incoming PVs show:

 

$ pvinfo plc-ts:ptp:synchronized

plc-ts:ptp:synchronized

Server: 10.102.10.19:5075

Type:

    epics:nt/NTScalar:1.0

        boolean value

        string descriptor

        structure alarm

            int severity

            int status

            string message

        structure timeStamp

            long secondsPastEpoch

            int nanoseconds

            int userTag

        structure display

            double limitLow

            double limitHigh

            string description

            string format

            string units

        structure control

            double limitLow

            double limitHigh

            double minStep

 

$ pvinfo plc-ts:PLC:ts_1252_ns

plc-ts:PLC:ts_1252_ns

Server: 10.102.10.19:5075

Type:

    epics:nt/NTScalar:1.0

        string value

        string descriptor

        structure alarm

            int severity

            int status

            string message

        structure timeStamp

            long secondsPastEpoch

            int nanoseconds

            int userTag

        structure display

            double limitLow

            double limitHigh

            string description

            string format

            string units

        structure control

            double limitLow

            double limitHigh

            double minStep

 

 

 

______________________

 

Nicklas Holmberg

Senior Engineer, ICS HWI

 

European Spallation Source ERIC

P.O. Box 176, SE-221 00 Lund, Sweden

Visiting address: Partikelgatan 2, 224 84 Lund

Mobile: +46 76 168 06 60

E-mail: nicklas.holmberg at ess.eu

ess.eu

 

 


Replies:
Re: Conversion error when using (pvapy served) PVA input link in a "bi" record Michael Davidsaver via Tech-talk

Navigate by Date:
Prev: Re:AW: pv invalid using stream 网易邮件中心 via Tech-talk
Next: Re: Conversion error when using (pvapy served) PVA input link in a "bi" record Michael Davidsaver 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  <20222023  2024 
Navigate by Thread:
Prev: Re: Regex support in StreamDevice. Li, Ji via Tech-talk
Next: Re: Conversion error when using (pvapy served) PVA input link in a "bi" record Michael Davidsaver 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  <20222023  2024 
ANJ, 14 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·