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

Subject: RE: NDArrayData Access
From: Mark Rivers <[email protected]>
To: Yingbing Yan <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Mon, 28 May 2012 14:39:27 +0000
Have you Enabled the NDPluginStdArrays plugin?

Please send a screen shot of the NDPluginStdArrays plugin medm or edm screen.

Is the simulationr detector running and producing non-zero data? 

Please open and enable the NDPluginStats (Stats5:) plugin and look at the minimum, maximum and mean values of the data.

Also send the output of epicsPrtEnvParams at the IOC and printenv | grep EPICS at the client console.

Mark

________________________________________
From: Yingbing Yan [[email protected]]
Sent: Monday, May 28, 2012 9:30 AM
To: Mark Rivers
Cc: [email protected]
Subject: RE: NDArrayData Access

Hi Mark,

> What application produced that output?  Was it caget?
Yes, the output of caget. such as
caget XX:image1:ArrayData
XX:image1:ArrayData 921600 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 ...

> I suspect your problem is that you have not set the environment
variable EPICS_CA_MAX_ARRAY_BYTES correctly.
I have set this environment variable.

Yingbing


On Mon, 2012-05-28 at 14:20 +0000, Mark Rivers wrote:
> Hi Yingbing,
>
> You showed the following output:
>
> 1 0 0 0 0 0 ...
> 2 0 0 0 0 0 ...
>
> What application produced that output?  Was it caget?
>
> I suspect your problem is that you have not set the environment variable EPICS_CA_MAX_ARRAY_BYTES correctly.  You should set that to a value a little larger than the maximum array size you will use (in bytes).  It must be set in both the IOC application and on the channel access client.
>
> To check if it is set correctly on the IOC you can use the following command at the IOC shell:
>
> IepicsPrtEnvParams
>
> To see if it is set correctly on the client end you can just use the following command at the Linux shell:
>
> printenv | grep EPICS
>
>
> Mark
>
> ________________________________________
> From: [email protected] [[email protected]] on behalf of Yingbing Yan [[email protected]]
> Sent: Monday, May 28, 2012 8:58 AM
> To: [email protected]
> Subject: NDArrayData Access
>
> Dear all,
>
> I want to implement a application via a costumed class, which inherits
> directly from the asynNDArrayDriver. It is similar with simDetector in
> the areaDetector, just skips the ADDriver.There is no error during
> compiling and running. The parameters (asynOctet, asynInt32,
> asynFloat64) can also be read & write using caget & caput. But I can not
> get the correct array data of NDArray object using NDStdArrays plugin,
> the output are just
> 1 0 0 0 0 0 ...
> 2 0 0 0 0 0 ...
> No matter how I modify the parameters or the source codes.
>
> Finally, I try to use simDetector directly(the defalut ioc startup
> script), but the problem is similar, even using the prebuilt
> areaDetector.
> How to access the NDArrayData through NDStdArrays plugin? Are other
> configurations required?
>
>
> Best regards
> Yingbing
>
>




References:
NDArrayData Access Yingbing Yan
RE: NDArrayData Access Mark Rivers
RE: NDArrayData Access Yingbing Yan

Navigate by Date:
Prev: RE: NDArrayData Access Yingbing Yan
Next: Proposed change in asyn - request for comments Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: NDArrayData Access Yingbing Yan
Next: Proposed change in asyn - request for comments Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·