-----原始邮件-----
发件人:"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