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: RE: caQtDM caCamera widget not rendering images
From: Mark Rivers via Tech-talk <tech-talk at aps.anl.gov>
To: Ashish Sharma <ashish.sharma at iuac.res.in>
Cc: tech-talk <tech-talk at aps.anl.gov>
Date: Wed, 13 Apr 2022 17:25:56 +0000

Hi Ashish,

 

You have set EPICS_CA_MAX_ARRAY_BYTE to nearly 5 GB.  That is too large, because both the EPICS IOC and the client will actually try to allocate arrays of that size whenever the array is larger than 16 KB.  You should set to a more reasonable size that is a bit larger than the largest image, perhaps 5 MB not 5 GB.  Make sure it is set to that value on both the IOC and the client process.

 

Mark

 

 

From: Ashish Sharma <ashish.sharma at iuac.res.in>
Sent: Wednesday, April 13, 2022 12:05 PM
To: Mark Rivers <rivers at cars.uchicago.edu>
Cc: tech-talk <tech-talk at aps.anl.gov>
Subject: Re: caQtDM caCamera widget not rendering images

 

Hello Mark,

 

I was out of office for last few days. I just now tried with settings you told. I am now facing issues even with imagej may be because of link speed and memory issues. Here is what is returned from EPICS server:

 

when the server and caQtDm are running:

 

printenv EPICS_CA_MAX_ARRAY_BYTES

5000000000

 

caget 13ARV1:image1:ArrayData

 

CA.Client.Exception...............................................

    Warning: "The requested data transfer is greater than available memory or EPICS_CA_MAX_ARRAY_BYTES"

    Context: "op=0, channel=13ARV1:image1:ArrayData, type=DBR_TIME_SHORT, count=4665600, ctx="server unable to load read (or subscription update) response into protocol buffer PV="13ARV1:image1:ArrayData" max bytes=2147483671""

    Source File: ../getCopy.cpp line 92

    Current Time: Wed Apr 13 2022 11:58:23.810332518

...............................................................................

 

EPICS_CA_MAX_ARRAY_BYTES is greater but how to correct available memory?

This PV is responsible for data display on caCamera widget and even on ImageJ. What could be done to correct this? Image size is 388800 bytes (720 x 540 x 1 for mono) which I think is less than the memory available.

Earlier ImageJ was working, now it is saying that "Unable to Connect EPICS PV" and "CACONNECTION Exception" and 13ARV1:image1: is red in color with blank NX, NY, NZ fields.

Client CLI is throwing error:

CAC: not enough memory for message body cache (ignoring response message)

 

 

Could you please help in setting things right?

 

Thank you in anticipation.

-

Ashish

 


From: "Mark Rivers" <rivers at cars.uchicago.edu>
To: "Ashish Sharma" <ashish.sharma at iuac.res.in>
Cc: "tech-talk" <tech-talk at aps.anl.gov>
Sent: Friday, April 1, 2022 6:03:14 PM
Subject: Re: caQtDM caCamera widget not rendering images

 

> Could you please elaborate "Are you sure it is also set OK on the caQtDM process?" As to what variable to look for in this?



Just before you launch caQtDM, either manually or in a script, execute this command:



printenv EPIC_CA_MAX_ARRAY_BYTES



> Moreover, a detailed guide for installation and make it working using ADAravis and ADGenICam would be really helpful. Could you please provide a link?


The areaDetector documentation home page is here:

 

The installation Guide is here:

 

ADAravis documentation is here:

 

ADGenICam documentation is here:

 

> ​Another thing, is it advisable to install MEDM on Ubuntu 20.04 as lots of x11 packages have gotten obsolete for this version. We are working on EPICS7.

 

I have not used Ubuntu 20, but I have built medm on Ubuntu 18. areaDetector comes with screens for medm, edm, caQtDM, CSS/Boy and CSS/Phoebus.  Most of these are autoconverted from medm screens.

 

Mark

 




From: Ashish Sharma <ashish.sharma at iuac.res.in>
Sent: Friday, April 1, 2022 6:47 AM
To: Mark Rivers <rivers at cars.uchicago.edu>
Cc: tech-talk <tech-talk at aps.anl.gov>
Subject: Re: caQtDM caCamera widget not rendering images

 

Thanks Mark for quick response.

 

Could you please elaborate "Are you sure it is also set OK on the caQtDM process?" As to what variable to look for in this?



Moreover, a detailed guide for installation and make it working using ADAravis and ADGenICam would be really helpful. Could you please provide a link?

Another thing, is it advisable to install MEDM on Ubuntu 20.04 as lots of x11 packages have gotten obsolete for this version. We are working on EPICS7.



Thanks again

Ashish 

 


From: "Mark Rivers" <rivers at cars.uchicago.edu>
To: "Ashish Sharma" <ashish.sharma at iuac.res.in>, "tech-talk" <tech-talk at aps.anl.gov>
Sent: Thursday, March 31, 2022 6:12:48 PM
Subject: Re: caQtDM caCamera widget not rendering images

 

Hi Asjish,

 

Since ImageJ works it looks like EPICS_CA_MAX_ARRAY_BYTES must be set OK on the IOC and on the ImageJ process.  Are you sure it is also set OK on the caQtDM process?

 

It is not related to this problem, but I would suggest you consider migrating from aravisGigE to ADAravis (or ADSpinnaker). arabisGigE is no longer actively supported.

 

Mark

 

 


From: Ashish Sharma <ashish.sharma at iuac.res.in>
Sent: Thursday, March 31, 2022 1:09 AM
To: tech-talk <tech-talk at aps.anl.gov>; Mark Rivers <rivers at cars.uchicago.edu>
Subject: caQtDM caCamera widget not rendering images

 

Hello,

 

I am trying to add a new camera (FLIR's Blackfly S) into areaDetector (aravisGigE) with GUI on caQtDM. Earlier I had the attached GUI completely working with both ImageJ and caCamera widget able to render the images. But now after changes in my camera processor board (new serial ID etc.), all things except for caCamera are working. X-Y profiles are working but caCamera is unable to render any image.

I have made no changes in the settings just replaced the earlier .edl and -feature.edl files (and also the .ui files) with new ones based on the xml config file of new camera.

Could you please help me here. I doubt on the caQtDm installation. Or anything else?

 

 

Thank you.

--
Ashish Sharma
Engineer 'D'
Inter-University Accelerator Centre,
Aruna Asaf Ali Marg, New Delhi - 110067
Mob. : +91-7982808263, +91-9868528158
Off. : 011-24126024 (Ext : 229 / 8804)

 

 


References:
caQtDM caCamera widget not rendering images Ashish Sharma via Tech-talk
Re: caQtDM caCamera widget not rendering images Mark Rivers via Tech-talk
Re: caQtDM caCamera widget not rendering images Ashish Sharma via Tech-talk
Re: caQtDM caCamera widget not rendering images Mark Rivers via Tech-talk
Re: caQtDM caCamera widget not rendering images Ashish Sharma via Tech-talk

Navigate by Date:
Prev: EPICS Tools and Services codeathon track Shroff, Kunal via Tech-talk
Next: Re: Can't properly restrict IOC CA server to an interface Jure Varlec 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: caQtDM caCamera widget not rendering images Ashish Sharma via Tech-talk
Next: asyn trace masks on modbus reconnect John Dobbins 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 ·