From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

FOUNDATION Fieldbus

cancel
Showing results for 
Search instead for 
Did you mean: 

NET API – Fieldbus Enumerated types like UNITS_INDEX

Solved!
Go to solution

 

                Is possible convert fieldbus  enumerated filedbus types , for instance , UNITS_INDEX from number to string using some .NET API function to call from a vb.net program ?

 

                I would like to convert , for instance , UNITS_INDEX parameter from 1001 to °C.

 

                Do I need to use fieldbus specification and code myself a dictionary  with all units  to display unit description to the user of my vb.net program ?

0 Kudos
Message 1 of 2
(6,770 Views)
Solution
Accepted by topic author rsaat

Hi,

 

There is no such NI-FBUS .Net API that converts UNIT_INDEX to unit string automatically. You need to write your own code to perform the conversion.

 

 

Feilian (Vince) Shen
0 Kudos
Message 2 of 2
(6,750 Views)