Thanks again Steven.
On 03/02/2016 17:11, Hartman, Steven M.
wrote:
On Feb 3, 2016, at 11:54 AM, Phil Atkin <[email protected]> wrote:
I tried setting those environment values before CS-Studio is started, but actually it seems to make no difference.
CS-Studio (like most Java applications) has it own preferences for these rather then using the env vars. Preferences -> CSS Core -> EPICS for auto_addr_list and addr_list.
Thanks: I looked for those, but for some reason did not recognize
them. They are set now.
Looking more carefully at what "Probe" within CS-Studio shows, I notice:
• It correctly shows 'simple' PVs from my IOC
• If I specify an erroneous PV name, it shows "UNDEFINED - Disconnected"
• When I correctly specify my array name, it shows “INVALID - No value"
Those results are consistent with too-small of max_array_bytes. The client connects to the server, but cannot receive the data for the large array.
max_array_bytes is set in CS-Studio to 16000000
In the startup of the IOC, I have
epicsEnvSet("EPICS_CA_MAX_ARRAY_BYTES", "8000000")
and then
dbLoadRecords("NDStdArrays.template",
"P=$(PREFIX),R=image1:,PORT=Image1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=$(PORT),TYPE=Int16,FTVL=SHORT,NELEMENTS=4000000")
and in fact, the array I'm trying to display is 500x500@16 bits.
Is any of this incorrect? Must the settings for client and server
be the same?
Note, you need to restart CS-Studio after changing the EPICS network preference settings or max_array_bytes for the change to take effect.
Worth knowing, but I have restarted since making the changes.
Phil
--
Pixel
Analytics is a limited company registered in England.
Company number: 7747526; Registered office: 93A New Road,
Haslingfield, Cambridge CB23 1LP
|