AnsweredAssumed Answered

Find PIPoints by Name and PointType

Question asked by HEPC on Mar 14, 2016
Latest reply on Mar 15, 2016 by HEPC

Hi there,

 

I have to search for PI Points that both match a name filter and have a numeric value.

What I tried is a query like that:

 

String nameAndPointTypeFilter = "Tag:='BK.*' AND ( PointType:=Int16 OR PointType:=Int32 OR PointType:=Float16 OR PointType:=Float32 OR PointType:=Float64 )";

IEnumerable<PIPoint> piPointList = PIPoint.FindPIPoints(thePIServer, nameAndPointTypeFilter, false);

 

but I'm always getting an exception:

 

Invalid PI Point query format near ')' in 'Tag:='BK.*' AND ( PointType:=Int16 OR PointType:=Int32 OR PointType:=Float16 OR PointType:=Float32 OR PointType:=Float64 )'.

 

Can anybody help me? Where is my mistake?

Thanks in advance.

 

Cheers

 

Peter

Outcomes