Quantcast
Channel: OSIsoft Users Community
Viewing all articles
Browse latest Browse all 1120

PI Datalink Query FInd last entry when tag contains certain string part

$
0
0

Hi,

 

I hope somebody would/could help me with this.

 

I want to find from a stringtag the lasted entry that is equal to a part of a string (CIP_MAN) during a start- and end time.

 

So fare I filter the tag with the following filter expression.

Instr ('NLOS:IBATCH:BE8913:BETA14:StateChange:GEIB', "CIP_MAN")

 

I had allready the following that did the trick but it has only an end time and it is looking to the first value back in time from this endtime but I wanted to stop the search at the start time. Because else it could be looking trough years of data.

 

PINCompFilDat('Tag';End Time;-1;

Instr ('NLOS:IBATCH:BE8913:BETA14:StateChange:GEIB', "CIP_MAN")

;0;0;"PISERVER";"auto")

 

I hope it is clear and that somebody could point me to the right direction.


Viewing all articles
Browse latest Browse all 1120

Trending Articles