Sorry to immediately correct my own post.
A better way to compute the needed value of EPICS_CA_MAX_ARRAY_BYTES is from the waveform record you create for the NDStdArrays plugin. You will compute the number of elements in that array as:
NELEMENTS = XPixels * YPixels * 3 (if color).
You will set the FTVL of that array depending on maximum bits/pixel you will be using: UCHAR for 8, SHORT for 12 or 16, etc.
EPICS_CA_MAX_ARRAY_BYTES should then be set to NELEMENTS * sizeof(FTVL type) + 16
As I recall the extra 16 bytes or so are needed on one side or the other. I forget which side, so add a little extra on both sides.
Mark
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Mark Rivers
Sent: Thursday, November 21, 2013 12:40 PM
To: 'Florian Sorgenfrei'; [email protected]; [email protected]
Subject: RE: areaDetector for a Basler GigE camera
> Is there a difference on linux between setenv EPICS_CA_MAX_ARRAY_BYTES 100000000
> in the terminal and in the startup script epicsEnvSet "EPICS_CA_MAX_ARRAY_BYTES",'100000000'?
I believe the startup script value will override the value the process inherited from the environment.
However, you should be careful with the actual value you use for EPICS_CA_MAX_ARRAY_BYTES. My understanding is that the value is not simply a "maximum" value, it is the actual value that will be used for all CA buffers that need to be larger than the standard size of 16K. You have set it to 100MB, which is probably much larger than it needs to be for the Basler camera. You should set it just a little larger than the actual maximum value needed. You can compute this for the Basler camera from XPixels * YPixels * max bytes/pixel * 3 (if color).
Mark
-----Original Message-----
From: Florian Sorgenfrei [mailto:[email protected]]
Sent: Thursday, November 21, 2013 12:11 PM
To: Mark Rivers; [email protected]; [email protected]
Subject: Re: areaDetector for a Basler GigE camera
Ok, problem solved. Indeed setting environment variables was the point.
I just had to figure out how to do that in osx. Is there a difference on
linux between setenv EPICS_CA_MAX_ARRAY_BYTES 100000000 in the terminal
and in the startup script epicsEnvSet "EPICS_CA_MAX_ARRAY_BYTES",
'100000000'? Anyway I now implemented the second option also and it
works happily.
Cheers,
Flo
Am 21.11.13 15:37, schrieb Mark Rivers:
> If you are using the ImageJ viewer plugin from areaDetector 1-9 or later then you should not use the JCALibrary.properties file, you should use the normal EPICS environment variable EPICS_CA_MAX_ARRAY_BYTES. This needs to be set in both the IOC server process and the ImageJ client process. The symptom you describe of being able to connect to the PVs but getting pendIO timeout exceptions is what is expected if EPICS_CA_MAX_ARRAY_BYTES is not set correctly on one end or the other.
>
> What happens if on the machine running ImageJ you use the "caget" command from EPICS base to read the ArrayData PV? Does it succeed?
>
> Mark
>
>
--
Florian Sorgenfrei
Institute for Methods and Instrumentation for Synchrotron Radiation
Research G-ISRR
Helmholtz-Zentrum Berlin für Materialien und Energie GmbH
Albert-Einstein-Str. 15
D-12489 Berlin
GERMANY
Tel.: +49 30 8062 12924
Fax: +49 30 8062 14987
________________________________
Helmholtz-Zentrum Berlin für Materialien und Energie GmbH
Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V.
Aufsichtsrat: Vorsitzender Prof. Dr. Dr. h.c. mult. Joachim Treusch, stv. Vorsitzende Dr. Beatrix Vierkorn-Rudolph
Geschäftsführung: Prof. Dr. Anke Rita Kaysser-Pyzalla, Thomas Frederking
Sitz Berlin, AG Charlottenburg, 89 HRB 5583
Postadresse:
Hahn-Meitner-Platz 1
D-14109 Berlin
http://www.helmholtz-berlin.de
- References:
- areaDetector for a Basler GigE camera Sorgenfrei, Florian
- RE: areaDetector for a Basler GigE camera Mark Rivers
- RE: areaDetector for a Basler GigE camera Mark Rivers
- Re: areaDetector for a Basler GigE camera Florian Sorgenfrei
- RE: areaDetector for a Basler GigE camera Mark Rivers
- Re: areaDetector for a Basler GigE camera Florian Sorgenfrei
- RE: areaDetector for a Basler GigE camera Mark Rivers
- RE: areaDetector for a Basler GigE camera tom.cobb
- Re: areaDetector for a Basler GigE camera Florian Sorgenfrei
- RE: areaDetector for a Basler GigE camera tom.cobb
- Re: areaDetector for a Basler GigE camera Florian Sorgenfrei
- RE: areaDetector for a Basler GigE camera Mark Rivers
- Re: areaDetector for a Basler GigE camera Florian Sorgenfrei
- RE: areaDetector for a Basler GigE camera Mark Rivers
- Navigate by Date:
- Prev:
RE: areaDetector for a Basler GigE camera Mark Rivers
- Next:
Re: How to archive PVs in epics which are deployed in labview Rod Nussbaumer
- 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
- Navigate by Thread:
- Prev:
RE: areaDetector for a Basler GigE camera Mark Rivers
- Next:
RE: areaDetector for a Basler GigE camera tom.cobb
- 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
|