Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Unit Definitions

NI InsightCM™ SDK Help

Edition Date: July 2017

Part Number: 375191C-01

»View Product Info
Download Help (Windows Only)

Parent Topic: Device Definitions

Unit definitions define the names of units of measurement that a particular asset type supports. A unit definition in JSON consists of an object that contains the following name-value pairs:

  • Type—The keyword for the asset type that supports the Units you are defining.
  • Units—An array of the names of units the asset type supports.

The following example shows an array with unit definitions for two different asset types.

[

{

"Type": "Acceleration",

"Units": [

"g",

"m/s2"

]

},

{

"Type": "Velocity",

"Units": [

"ips"

]

}

]

Related Information

Adding Support for New Units of Measurement


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit