Experimental Physics and Industrial Control System
|
Hello,
I
implemented a simple sub record to read a series of individual values from
different ai records and write them into the elements of a waveform record,
the code for which is attached. It should be straightforward to use the
same method to read elements from one waveform, perform your
calculation and write the calculated values to another. Please note
that the attached code uses INPA as the address of the output waveform
record.
Hope
this helps.
Steve
Singleton
hi, all
Has anyone implemented array processing with a subroutine
record?
I want to access the values in a waveform (WFM) record with
a subroutine record, cacultate for each element and pass the array to the
output.
+-------+
WFM -->|a
out|----> WFM
| |
ai
-->|b |
| |
ai
-->|c | for
idx=0..499
| |
(a[idx] - b ) *
c
| SUB- |
| ROUT- |
| INE |
+-------+
Jianguo
DING
SSRF, Shanghai Institute of Nuclear Research
Chinese Academy of Science
|
Attachment:
pressArray.c
Description: Binary data
- Navigate by Date:
- Prev:
Waveform calaulation for each element DING JIANGUO
- Next:
Re: Waveform calaulation for each element Noboru Yamamoto
- 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: Waveform calaulation for each element Alexei Dmitrovski
- Next:
Re: Maximum (Minimum) Vaue of a Set of Readback PVs kuner
- 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
|
ANJ, 10 Aug 2010 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|