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
From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Reply-To: "David A. Slimmer" <slimmer at fnal.gov>
Date: Wednesday, July 29, 2020 at 11:25 AM
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Cc: "David A. Slimmer" <slimmer at fnal.gov>
Subject: looking for aai/waveform example
Hi,
I’m looking for an example of setting the input of an aai or waveform record via a function call (device support?). The function call accesses shared memory on the system where the ioc would be running if that is relevant.
Thanks
Dave