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]>, "[email protected]" <[email protected]>
Date: Mon, 28 May 2012 14:20:24 +0000
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



Replies:
RE: NDArrayData Access Yingbing Yan
References:
NDArrayData Access Yingbing Yan

Navigate by Date:
Prev: NDArrayData Access Yingbing Yan
Next: RE: NDArrayData Access Yingbing Yan
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: NDArrayData Access Yingbing Yan
Next: RE: NDArrayData Access Yingbing Yan
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 ·