Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

OMF with PI Web API

Example static-to-dynamic link data message

  • Last UpdatedSep 04, 2025
  • 1 minute read

The following is an example static-to-dynamic link data message.


[

{

"typeid": "__Link",

"values": [

{

"source": {

"typeid": "WidgetFactory",

"index": "Factory1"

},

"target": {

"containerid": "Widget1"

}

},

{

"source": {

"typeid": "WidgetFactory",

"index": "Factory2"

},

"target": {

"containerid": "Widget2"

}

}

]

}

]

This example adds the PI points from the widget as attributes to the factory.

Factory 1, Meridian Ave Widget Factory, has the following new attributes:

Attribute Name

Referenced PI Point

Widget1.WidgetMode

Widget1.WidgetMode

Widget1.Widgetness

Widget1.Widgetness

Factory 2, Brook Lane Widget Factory, has the following new attributes:

Attribute Name

Referenced PI Point

Widget2.WidgetMode

Widget2.WidgetMode

Widget2.Widgetness

Widget2.Widgetness

The following is an example static-to-dynamic link data message that uses the property keyword.


[

{

"typeid": "__Link",

"values": [

{

"source": {

"typeid": "WidgetFactory",

"index": "Factory1",

"property": "WidgetLink"

},

"target": {

"containerid": "Widget1"

}

},

{

"source": {

"typeid": "WidgetFactory",

"index": "Factory2"

},

"target": {

"containerid": "Widget2",

"property": "Widgetness"

}

},

{

"source": {

"typeid": "WidgetFactory",

"index": "Factory3",

"property": "WidgetMode"

},

"target": {

"containerid": "Widget3",

"property": "WidgetMode"

}

}

]

}

]


This example adds the PI points from the widget as attributes to the factory with different attribute names.

Factory 1, Meridian Ave Widget Factory, has the following new attributes:

Attribute Name

Referenced PI Point

WidgetLink.WidgetMode

Widget1.WidgetMode

WidgetLink.Widgetness

Widget1.Widgetness

Factory 2, Brook Lane Widget Factory, has the following new attribute:

Attribute Name

Referenced PI Point

Widget2.Widgetness

Widget2.Widgetness

Factory 3, Kenwood Drive Widget Factory, has the following new attribute:

Attribute Name

Referenced PI Point

WidgetMode

Widget3.WidgetMode

Related Links
TitleResults for “How to create a CRG?”Also Available in