Hello,
I'm trying to setup an areaDetector IOC for reading a Basler camera. The
basics are working, but I have problems to setup the file writing.
Regardless of what way I use (CSS/BOY or caput) I get an exception if I try to
setup any of the Filename related PV's (FilePath, FileName, FileTemplate).
In NDFile.template they are defined as waveform records while BOY interpretes
them as STRING.
If I do:
--> cainfo areaDetector:HDF1:FilePath
areaDetector:HDF1:FilePath
State: connected
Host: x.x.x.x:5064
Access: read, write
Native data type: DBF_CHAR
Request type: DBR_CHAR
Element count: 256
If I try to set the variable to some path:
caput areaDetector:HDF1:FilePath "/home/<some user>"
Old : areaDetector:HDF1:FilePath 256 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0
CA.Client.Exception...............................................
Warning: "Channel write request failed"
Context: "op=1, channel=areaDetector:HDF1:FilePath, type=DBR_STRING,
count=1, ctx="areaDetector:HDF1:FilePath""
Source File: ../oldChannelNotify.cpp line 160
Current Time: Mon Apr 18 2016 08:18:01.581943010
..................................................................
New : areaDetector:HDF1:FilePath 256 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0
Only if I use caput -S ... I can successfully set the variable.
In CSS I get the following message:
2016-04-18 08:15:44 ERROR: Failed to write value to PV
areaDetector:HDF1:FilePath from widget Text Input.
Illegal input : /home/<some user>
java.lang.ArrayIndexOutOfBoundsException: 0
How to force BOY to send the string as an array of chars?
Regards
Jörn