Experimental Physics and Industrial Control System
Rozelle and anyone else who can help,
I have the following comments about putting arrays in EPICS records from our
training session:
>!***************************************
>! This is a sample array declaration:
>! Arrays: DBF_NOACCESS indicates array
>! 3 = special interest level
>! 4 = number of bytes
>! in this case its just a pointer so 4bytes
>! if you had the actual array it'll be 4*no_elements in array
>! ie. array size 10 = 40bytes
>! uint16_T * xxx; = what gets put in the C code
>!"X Buf Ptr" XBP SPC_DBADDR DBF_NOACCESS NO 3 4 uint16_t * xbp;
>!"Y Buf Ptr" YBP SPC_DBADDR DBF_NOACCESS NO 3 4 uint16_t * ybp;
>!"I Buf Ptr" IBP SPC_DBADDR DBF_NOACCESS NO 3 4 uint16_t * ibp;
>!***************************************
I've added the following in a SERVO record that I'm creating and it
builds with no errors. However I want to be able to do "dbpf" and also be
able to display entries in the arrays via DM.
>"Velocity filter coeff arr" AVF SPC_DBADDR ASL1 DBF_NOACCESS NO 3 80 double avf[NUMB_VF_COEFF];
>"Feedforward pos coeff arr" AFFP SPC_DBADDR ASL1 DBF_NOACCESS NO 3 80 double affp[NUMB_FF_P_COEFF];
>"Feed forward rate coeff arr" AFFR SPC_DBADDR ASL1 DBF_NOACCESS NO 3 80 double affr[NUMB_FF_R_COEFF];
But I can't. From DM when I access the fields I get the following errors from the VxWorks shell:
llegal Database Request Type PV: dcs:axe:az:servo.AFFP error detected in routine: db_name_to_addr error
Illegal Database Request Type PV: dcs:axe:az:servo.AFFR error detected in routine: db_name_to_addr error
Can I have array fields and is it also possible to access each individual entry in the array?
Thanks,
Kevin Tsubota
- Navigate by Date:
- Prev:
Re: R3.12 Bugs Ben-chin K. Cha
- Next:
Re: arrays in epics records Steve Lewis
- 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:
Re: R3.12 Bugs Ben-chin K. Cha
- Next:
Re: arrays in epics records Steve Lewis
- 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