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  <20182019  2020  2021  2022  2023  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  <20182019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Question about the waveform record of CA Lab.
From: "Zhang Yuliang" <[email protected]>
To: "lzf neu" <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Thu, 14 Jun 2018 14:59:36 +0800 (GMT+08:00)

Hi Zhefu,


You need set the system variable EPICS_CA_MAX_ARRAY_BYTES which value is greater than 30000. 

Regards,

Yuliang



-----原始邮件-----
发件人:"lzf neu" <[email protected]>
发送时间:2018-06-14 14:28:04 (星期四)
收件人: "[email protected]" <[email protected]>
抄送:
主题: Question about the waveform record of CA Lab.

Hi all,

My problem is how to increase the number of elements of an array in waveform record of CA Lab. Below is the waveform record in demo.db, the default number of elements of an array are 2000. 
 
record(waveform, "caLab:test")
{
    field(DESC, "Double waveform record")
    field(PREC,0)
    field(NELM, 2000) 
    field(FTVL, "DOUBLE")
    #field(EGU, "mm")
    field (PINI, "YES")
}

I increased the value in the field NELM from 2000 to 30000 ( field(NELM, 30000) ), an error occured in the terminal:
    caLab:test *** CA error The requested data transfer is greater than available memory or EPICS_CA_MAX_ARRAY_BYTES

Therefore I try to change the default settings in demoIOC.cmd as follows and then restart the demoIOC: 

@echo off
#############################################################
set EPICS_CA_MAX_ARRAY_BYTES=1638400000  # I added the line here.
#############################################################
echo start demo IOC now
echo Type 'dbl' to get a list of all available records.
echo Type 'exit' to terminate this session.
echo ---
..\lib\softIoc.exe -D ..\lib\softIoc.dbd -d db\demo.db
:end

However, it doesn't work. No matter what value I set, the same error still exist in the terminal.

Any help will be appreciated and thanks in advance.

Zhefu









References:
Question about the waveform record of CA Lab. lzf neu

Navigate by Date:
Prev: Question about the waveform record of CA Lab. lzf neu
Next: Re: Question about the waveform record of CA Lab. Carsten Winkler
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  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Question about the waveform record of CA Lab. lzf neu
Next: Re: Question about the waveform record of CA Lab. Carsten Winkler
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  <20182019  2020  2021  2022  2023  2024 
ANJ, 14 Jun 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·