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
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