OMF Container message to set Units of Measure in a simple PI Tag

Hi all,

 

Following the sample project in "https://github.com/AVEVA/sample-omf-basic_api-dotnet", I have been able to created a simple dynamic AF Template Element.

 

Using container messages, I can create simple PI tags for the above mentioned type.

When creating the PI tags, I'm able to populate some of the properties of the tag, such as description and datasource

[

 {

  "id": "5g",

  "typeid": "HSI_Record_Qlty5",

  "description": "Geo SCADA.FullName (with Questionable) 5g",

  "datasource": "My Datasource"

  }

]

 

How can I set the Units of Measure in the tag?

The "OMF with PI Web API" user guide shows you an example (shown below) of how to override properties for a complex type, but I've not been able to get it working for a simple type.

 

[

 {

  "id": "small-turbine-1",

  "typeid": "turbine",

  "propertyoverrides": {

   "speed": {

    "maximum": 400.0

   },

   "power": {

   "maximum": 1.5

   }

  }

 }

]

 

I would really appreciate some help with this.