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

Subject: Problem with areaDetector NDFile FilePath setting
From: Jörn Wüstenfeld <[email protected]>
To: "[email protected]" <[email protected]>
Date: Mon, 18 Apr 2016 08:39:22 +0200
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


Replies:
Re: Problem with areaDetector NDFile FilePath setting Hinxx

Navigate by Date:
Prev: EPICS at the last continent - Antarctic Shen, Guobao
Next: Re: Problem with areaDetector NDFile FilePath setting Hinxx
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: EPICS at the last continent - Antarctic Shen, Guobao
Next: Re: Problem with areaDetector NDFile FilePath setting Hinxx
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 15 Jul 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·