> Regarding EPICS waveforms, what I meant is variable length from the client side;
> For example I set a buffer size in a PV and based on that PV value I read a specific length so that a plotter for example reads data with that specific length only.
> Does NORD achieve this?
NORD controls the maximum number of elements that can be read from the record. It is the number of "available" elements. You can request fewer elements in a read requests as well.
> If yes, how does asyn access individual record's fields?.
I am not sure what you mean by that question.
Have you been able to get a gdb traceback of your access violation problem?
Mark
________________________________
From: Abdalla Ahmad <
[email protected]>
Sent: Thursday, November 5, 2020 9:46 AM
To: Michael Davidsaver; Mark Rivers;
[email protected]
Subject: Re: AsynPortDriver separate thread causes Segmentation fault with "dbGetLinkValue" error message
Hi all.
Buffer size is 48 because the device sends waveform data in lines so I read each line separately by reading 48 bytes, If I request ADC 200 for example I receive 200 lines where each line is 48 bytes. I even did a test where I used a buffer size of 1M to receive
the full 20000 lines and still got the same error.
Regarding EPICS waveforms, what I meant is variable length from the client side; For example I set a buffer size in a PV and based on that PV value I read a specific length so that a plotter for example reads data with that specific length only. Does NORD achieve
this? If yes, how does asyn access individual record's fields?.
Best Regards,
Abdalla.
________________________________
From: Michael Davidsaver <
[email protected]>
Sent: Tuesday, November 3, 2020 7:18 PM
To: Mark Rivers <
[email protected]>; Abdalla Ahmad <
[email protected]>;
[email protected] <
[email protected]>
Subject: Re: AsynPortDriver separate thread causes Segmentation fault with "dbGetLinkValue" error message
On 11/3/20 8:49 AM, Mark Rivers via Tech-talk wrote:
> - I don’t think EPICS supports variable length waveform records. You need to create the waveform record in dbLoadRecords with a size that is the largest you plan to use. That is what areaDetector does with NDPluginStdArrays.
To clarify, waveform records have a _maximum_ size which is fixed
on initialization (eg. NELM). Actually size (NORD) has long been
changeable at runtime in the range [0, NELM].
Some caveats about NORD==0 apply wrt. CA specifically (works fine with PVA).