Experimental Physics and Industrial Control System
|
If you have the calc module (2.6 or higher), the easiest way is probably
to use the aCalcout (array calcout) record. Otherwise, I'm with Ron.
If you do have the aCalcout record, here's how I'd configure it:
Say the aCalcout record's AA field is the reference array, and BB is
your alarm vector. The expression "AA=BB" is nearly what you want, but
it yields an array (whose elements are '1' where AA and BB are the same,
and '0' where they differ). You can roll this array up into a single
scalar value with the function amin().
In actual practice, "amin(aa[0,35]=bb[0,35])" yields the scalar value
'1' only if the first 36 elements of AA are the same as the first 36
elements of BB.
Tim Mooney
Chestnut, Ronald P. wrote:
My first take would be a simple subroutine record which does the compares you want and returns success or failure.
Ron Chestnut
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Vladimir Sirotenko
Sent: Monday, December 10, 2007 11:49 AM
To: EPICS tech-talk
Subject: checking the content of the waveform record
Does anyone know what is the easiest way to check the content of the waveform record against predefined one? There is a record with 36 elements and we have to raise an alarm if any of it's elements is differ from reference one. Of cource I can use many subArray records, one for every waveform element, then several calc records and so on .. But may be there is more elegant way of doing that?
Thanks,
Vladimir
- References:
- MVME6100 or 7100 Matt Rippa
- Re: MVME6100 or 7100 Oleg Makarov
- checking the content of the waveform record Vladimir Sirotenko
- RE: checking the content of the waveform record Chestnut, Ronald P.
- Navigate by Date:
- Prev:
Re: checking the content of the waveform record Andrew Johnson
- Next:
edm stating fail miqingru
- 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: checking the content of the waveform record Andrew Johnson
- Next:
Problem installing SDDS on OS X 10.5.1 Bertrand H.J. Biritz
- 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 Nov 2011 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|