On Wed, Sep 08, 2010 at 08:49:51AM -0400, Hu, Yong wrote:
> Hi Tianmin,
>
> A few suggestions:
> 1. Are you using areaDetector package for the image acquisition? If so,
> check out the following command at st.cmd and make sure the 'NELEMENTS'
> is '640*480':
> dbLoadRecords("$(AREA_DETECTOR)/ADApp/Db/NDStdArrays.template","P=$(PREF
> IX),R=image1:,PORT=Image1,ADDR=0,TIMEOUT=1,TYPE=Int8,FTVL=UCHAR,NELEMENT
> S=307200")
>
> 2. Did you try 'cainfo image0'? What are the "Request type" and "Element
> count"?
> 3. Try 'cainfo treatedimage' and tell me the results;
>
> 4. I'm playing with aSub for a while. Could you send me your aSub source
> code so that I can look deeply into it to find the problem?
>
> Good luck,
>
> Yong Hu
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of wantianmin
> Sent: Tuesday, September 07, 2010 10:21 PM
> To: [email protected]
> Subject: problem about use aSubRecord to handle waveform record
>
>
> Hi all:
> I'm using aSubRecord to handle an image(a waveform record with
> size 640*480),
> After some process,the treated data has been output to another
> waveform record.
> However when this IOC is running, the "top" command tell me the
> IOC consume about
> 1.5G memory(my pc has 2G memory),and only one client(an edm
> client) can connect
> to it and display the image which has been treated. Even an epics
> gateway is running
> as a middle layer between IOC and client,the problem is still
> exist.
>
> My asubrecord db like this:
> record(aSub,"asub")
> {
> field(INAM,"myAsubInit")
> field(SNAM,"myAsubProcess1")
> field(FTA,"UCHAR")
> field(NOA,"307200")
> field(INPA,"image0 CA")
>
> field(FTVB,"UCHAR")
> field(NOVB,"307200")
> field(OUTB,"treatedimage CA")
> }
> record(waveform,"treatedimage")
> {
> field(DTYP,"Soft Channel")
> field(FTVL,"UCHAR")
> field(NELM,"307200")
> }
>
> in the process function myAsubProcess1,even if I am doing just a simple
> work(set the waveform pv to
> a const data),the problem has no change.
>
> Is there some suggestions? Thanks for you help.
>
> wantianmin
>
> 2010.09.08
>
Hi huyong,
thanks for you reply,
for your suggestions,
1 I'm sure the NELEMENTS=307200
2 cainfo image0 and cainfo treatedimage is the same:
State: connected
Host: note.wantm:5064
Access: read, write
Native data type: DBF_CHAR
Request type: DBR_CHAR
Element count: 307200
3 I delete all imaged code ,just draw a cross line in the center of
the image and output it to the treatedimage pv.
for there is no beam and no ccd hardware,I use another waveform pv
(pic0)which is all 0 (307200),to take place of the ccd image
It seems the tech-talk do not access attachment bigger than some size,
I will send you the application later,after run st.cmd,and
run dbpf asub.PROC 1, a cross line will be drawn in waveform pv(pic1)
best regards
wantianmin
- References:
- problem about use aSubRecord to handle waveform record wantianmin
- Navigate by Date:
- Prev:
Re: Robert Soliday
- Next:
RE: sscan 2-6-6 does not build with cygwin DLL release version 1.7.7-1 Wang Xiaoqiang
- 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:
problem about use aSubRecord to handle waveform record wantianmin
- Next:
[no subject] Ahn, Si Won
- 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
|