Reading Fieldbus Record Parameters with NI-FBUS

Updated Apr 28, 2023

Reported In

Hardware

  • PCI-FBUS
  • PCMCIA-FBUS
  • USB-8486

Driver

  • NI-FBUS

Issue Details

I am using Fieldbus hardware with the NI-FBUS driver. I am trying to read a parameter with the datatype "Record" but receive the following error:
Error -2147135998 occurred at FF Read Block Object Attribute By Name.vi:1180002
Possible reason(s):
The specified object cannot be found.
chrome_LkvW077blE.png
How do I read these values?

Solution

A Record type in FieldBus has sub-values that need to be addressed rather than the overall object. These can be addressed in the form "Record.Sub-value".

As an example, to read the sub-value "PRESSURE" from a Record of "FINAL_READING", read the object "FINAL_READING.PRESSURE".