Experimental Physics and Industrial Control System
|
|
Subject: |
Re: looking for aai/waveform example |
|
From: |
Ralph Lange via Tech-talk <[email protected]> |
|
To: |
EPICS Tech Talk <[email protected]> |
|
Date: |
Fri, 31 Jul 2020 11:33:41 +0200 |
For the record:
Using a recent version of EPICS Base, you can also avoid copying and swap pointers instead.
In this specific case (shared memory involved) copying might be preferred, though.
Cheers, ~Ralph
Hi Dave,
For waveform record, I usually simply use “memcpy” in the device support routine, something like this:
memcpy(precord->bptr, pointer-to-data-source, size-of-bytes-to-be-copied);
precord->nelm = number-of-data-point;
precord->nord = number-of-data-point;
precord is a pointer to waveformRecord.
Good luck!
Yong
- References:
- looking for aai/waveform example David A. Slimmer via Tech-talk
- Re: looking for aai/waveform example Hu, Yong via Tech-talk
- Navigate by Date:
- Prev:
Re: looking for aai/waveform example Hu, Yong via Tech-talk
- Next:
Re: Attocube IDS3010 Bradnick, Ben (DLSLtd, RAL, LSCI) via Tech-talk
- 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
2025
2026
- Navigate by Thread:
- Prev:
Re: looking for aai/waveform example Hu, Yong via Tech-talk
- Next:
EPICS Base Compilation Failed Under Cygwin gcc 9+ Paul Chu via Tech-talk
- 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
2025
2026
|
|
ANJ, 19 Mar 2026 |
·
Home
·
News
·
About
·
Talk
·
Base
·
Modules
·
Extensions
·
·
Distributions
·
Download
·
Documents
·
Links
·
Licensing
·
|