Developing Windows 8 Mobile Apps for the PI System - OSIsoft
Developing Windows 8 Mobile Apps for the PI System - OSIsoft
Developing Windows 8 Mobile Apps for the PI System - OSIsoft
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Code… <strong>PI</strong>Service Implementation<br />
AFAttributeValueQuery[] GPSIsSet = new AFAttributeValueQuery[1];<br />
GPSIsSet[0].AttributeValue = 1;<br />
GPSIsSet[0].AttributeTemplate = db.ElementTemplates["Tank"]<br />
.AttributeTemplates["GPS Coordinates"];<br />
GPSIsSet[0].Operator = <strong>OSIsoft</strong>.AF.Search.AFSearchOperator.Equal;<br />
var AssetsFound = AFElement.FindElementsByAttribute(null, "*",<br />
GPSIsSet, true,<br />
AFSortField.Name,<br />
AFSortOrder.Ascending, 10000);<br />
© C opyri g h t 2012 OSIso f t , LLC.<br />
12