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

How to put enum_t value with putTracker #189

Open
zhouyunbin opened this issue May 4, 2023 · 2 comments
Open

How to put enum_t value with putTracker #189

zhouyunbin opened this issue May 4, 2023 · 2 comments

Comments

@zhouyunbin
Copy link

zhouyunbin commented May 4, 2023

Hi, I have successfully put lots of PV with putTracker, but with the type enum_t,

valfld=root->getSubFieldT<pvd::PVScalar>("index");
or
valfld=root->getSubFieldT<pvd::PVScalar>("value.index");

looks like not working, and I can't get any information from the document, any idea?

Thank you very much

@zhouyunbin
Copy link
Author

the putTracker which I used is based on https://epics-base.github.io/pvAccessCPP/examples_putme.html

@mdavidsaver
Copy link
Member

Could you provide a more complete example of the code you are testing? Also, which server is providing the PV you are trying to change? An IOC with QSRV?

If root->getSubFieldT<TYPE>() is returning NULL, then either the named field does not exist, or it exists with an incompatible type. (root must also be !NULL or the program will crash)

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

2 participants