I think you mean a 'DBF_NOACCESS' field. The sscan record's
P1PA field is an array of doubles, and you can write to it
only at run time. Array values can't be specified in a
database file, because the EPICS code that handles database
files doesn't support arrays.
You have four options that I can think of:
1) use channel access to write the array value to P1PA. Some
versions of the command-line program, caput, are capable of
writing arrays. Try 'caput -h' for help on this.
2) have an EPICS record that can build arrays write to P1PA.
Since you have the sscan record, you may also have the
aCalcout record (array calcout). If so, you can have an
aCalcout record construct an array and write it to P1PA.
3) write a State Notation Language program to build and write
the array value.
4) use autosave to write the array at boot time. If you're
using autosave, you can make the file 'myArray.sav' with
a text editor, give it the following content:
# save/restore V4.9
IOC:scan1.P1PA @array@ { "1" "2" "3" "4" "5" <and so on>}
<END>
(make sure <END> is followed by a carriage return or a
line feed, or both). Put the file in the ioc's autosave
directory. If you include the following command
in save_restore.cmd:
set_pass1_restoreFile("myArray.sav")
autosave will write the array when it does its boot time
restore.
--
Tim Mooney ([email protected]) (630)252-5417
Beamline Controls & Data Acquisition Group
Advanced Photon Source, Argonne National Lab.
likun wrote:
> Hello everyone:
>
> Could anybody tell me how to specify value to DBF_ACCESS field ,for
> example: P1PA of sscan record(IOC:scan1.P1PA)
>
>
>
> 李坤
>
> 中国科学院上海应用物理研究所
>
> 控制组
>
> 电话:021-33933238
>
> email:[email protected] <mailto:[email protected]>
>
>
>
- References:
- How to specify value to a DBF_ACCESS field likun
- Navigate by Date:
- Prev:
Re: CA Put Logging Matthias Clausen
- Next:
latest motor record on RTEMS? John M. Skinner
- 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
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
How to specify value to a DBF_ACCESS field likun
- Next:
CA Put Logging Ernest Williams
- 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
2018
2019
2020
2021
2022
2023
2024
|