Hi Dave,
There's a reason the DPVT field is called "Device Private" — it's not intended to be accessible from outside the device support code which owns it. Think of it like a C++
private: class-member access specifier. That doesn't mean it's impossible for other software running inside the IOC to get to it, but dbGetField() can't do it by design.
What's the higher-level problem that you're trying to solve which seems to require this? Please describe that to the list and we can try to offer other approaches that wouldn't require you to break the encapsulation.
- Andrew
On 7/22/24, 2:47 PM, "Tech-talk" <tech-talk-bounces at aps.anl.gov> wrote:
I want to use dbGetField to get the value of the DPVT field of an AI record. Does this work? What field type would I specify?
I tried with DBR_LONG and it didn’t like that. I used the field_type returned from dbNameToAddr (17) and it didn’t like that.
Dave Bracey
Fermilab AD Instrumentation