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  2025  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  2025 
<== Date ==> <== Thread ==>

Subject: RE: AsynInt32 SCAN=I/O Intr response
From: Mark Rivers via Tech-talk <tech-talk at aps.anl.gov>
To: Eric Norum <ericnorum at gmail.com>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Wed, 23 Feb 2022 23:41:29 +0000

Ø  If I run the asynReport with interest level 1, all the records show up.  Here’s the report for the ai record shown above:

 

asynReport is not reporting on records, it is reporting on asyn port driver devices.

 

What type of driver is KD1?  It seems like something you wrote?  Perhaps your driver needs to call pasynManager->exceptionConnect() for that address to let asynManager know that it is connected?

 

Mark

 

 

 

From: Eric Norum <ericnorum at gmail.com>
Sent: Wednesday, February 23, 2022 12:24 PM
To: tech-talk at aps.anl.gov
Cc: Mark Rivers <rivers at cars.uchicago.edu>
Subject: AsynInt32 SCAN=I/O Intr response

 

I have an IOC that reads a bunch of system monitor values from an FPGA in a single UDP packet and then pushes the values to a bunch of SCAN=“I/O Intr” records (some ai, some longin).

Here’s a fragment of the .db file associate with this:

record(ai, "$(P)$(R)EVR:freq") {

    field(DESC, "EVR recovered clock")

    field(DTYP, "asynInt32")

    field(INP,  "@asyn($(PORT), 0x2008, 0)")

    field(SCAN, "I/O Intr")

    field(TSE,  "-2")

    field(LINR, "SLOPE")

   .

   .

   .

}

record(longin, "$(P)$(R)Marble:PIO_") {

    field(DESC, "Marble port expanders")

    field(DTYP, "asynInt32")

    field(INP,  "@asyn($(PORT), 0x2003, 0)")

    field(EGU,  "")

    field(SCAN, "I/O Intr")

    field(TSE,  "-2")

}



This all seems to work properly — I see the values updating as they should.

The issue is that the asynReport output shows the longin records as disconnected (“KD1” is the PORT in the INP fields of the records shown above, “KD1_CMD” is the UDP/IP port communicating with the FPGA).

epics> asynReport

KD1_CMD multiDevice:No canBlock:Yes autoConnect:No

KD1 multiDevice:Yes canBlock:Yes autoConnect:Yes

    addr 8195 autoConnect Yes enabled Yes connected No exceptionActive No

    addr 8201 autoConnect Yes enabled Yes connected No exceptionActive No

 KD1_CMD communicating

epics> 

 

If I run the asynReport with interest level 1, all the records show up.  Here’s the report for the ai record shown above:

    addr 8200 autoConnect Yes enabled Yes connected Yes exceptionActive No

        exceptionActive No exceptionUsers 0 exceptionNotifys 0

        blocked No

 

This isn’t a big deal since things do seem to work, but I wonder why this difference between asynInt32 callback handling for ai and longin records.

— 

Eric Norum

 

 

 

 


Replies:
Re: AsynInt32 SCAN=I/O Intr response Eric Norum via Tech-talk
References:
AsynInt32 SCAN=I/O Intr response Eric Norum via Tech-talk

Navigate by Date:
Prev: Re: Recsync error Michael Davidsaver via Tech-talk
Next: Re: Recsync error Larregui, Julian 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  2025 
Navigate by Thread:
Prev: AsynInt32 SCAN=I/O Intr response Eric Norum via Tech-talk
Next: Re: AsynInt32 SCAN=I/O Intr response Eric Norum 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  2025 
ANJ, 14 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·