Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support drvInfo for NDArray callbacks #334

Open
MarkRivers opened this issue Jun 25, 2018 · 0 comments
Open

Support drvInfo for NDArray callbacks #334

MarkRivers opened this issue Jun 25, 2018 · 0 comments

Comments

@MarkRivers
Copy link
Member

MarkRivers commented Jun 25, 2018

We have been assuming that the drvInfo field for NDArrays is ARRAY_DATA, i.e. that pasynUser->reason=0. Plugins provide PVs to specify the portName, and addr, but not the drvInfo field.

In the case of the NDPluginStats plugin when it does NDArray callbacks of time-series callbacks (using doCallbacksGenericPointer) it would have been more logical to use a new drvInfo field, like ND_STATS_TIME_SERIES. Since there was no easy way to do this, and have it visible in OPI screens, I instead used ADDR=1 for these callbacks, and ADDR=0 for the default NDArray callbacks of the input array with possibly modified NDAttributes.

This change would not be difficult, it just means adding a new record to NDPluginDriver and adding that field to the plugin "more" screen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant