Hi guys/gals,
Part of my job is to map our LIMS data to a PI tag after the tag has been created, this should be the extent of my interaction with PI. Recently an engineer sent me an email stating that LIMS was sending over duplicate results so I looked at all the results sent to our PIMS server and didnt see any duplicates. I then checked his excel document and yes data was being duplicated everywhere, see example below.
11-Jan-14 07:52:03 No Data 10-Jan-14 08:34:17 No Data 06-Jan-14 06:00:00 0.552299976 06-Jan-14 06:00:00 0.552299976 06-Jan-14 06:00:00 0.552299976 25-Nov-13 06:00:00 0.561200023 14-Nov-13 11:04:00 0.563600004 14-Nov-13 11:04:00 0.563600004 14-Nov-13 11:04:00 0.563600004 14-Nov-13 11:04:00 0.563600004
Now being the person that I am this bothered me, so here I am.
My question is how can I stop receiving duplicate results? I've tried some basic filter expressions and found some interesting results. I dont understand why using <> isnt filtering duplicates.
PrevVal('PI_Tag', '*' ) <> 'PI_TAG'
11-Jan-14 07:52:03 No Data 10-Jan-14 09:54:44 No Data 06-Jan-14 06:00:00 0.552299976 06-Jan-14 06:00:00 0.552299976 06-Jan-14 06:00:00 0.552299976 25-Nov-13 06:00:00 0.561200023 14-Nov-13 11:04:00 0.563600004 14-Nov-13 11:04:00 0.563600004 14-Nov-13 11:04:00 0.563600004 14-Nov-13 11:04:00 0.563600004
PrevVal('PI_Tag', '*' ) = 'PI_TAG'
11-Jan-14 07:52:03 Filtered
PrevVal('PI_Tag', '*' ) > 'PI_TAG'
11-Jan-14 07:52:03 Filtered 10-Jan-14 09:55:40 Filtered 06-Jan-14 06:00:00 0.552299976 06-Jan-14 06:00:00 0.552299976 06-Jan-14 06:00:00 0.552299976 25-Nov-13 06:00:00 0.561200023 14-Nov-13 11:04:00 Filtered 04-Nov-13 06:00:00 0.563300014 21-Oct-13 06:00:00 Filtered 14-Oct-13 06:00:00 0.556599975
PrevVal('PI_Tag', '*' ) < 'PI_TAG'
11-Jan-14 07:52:03 Filtered 1/6/14 6:00 25-Nov-13 06:00:00 Filtered 1/6/14 6:00 14-Nov-13 11:04:00 0.563600004 1/6/14 6:00 14-Nov-13 11:04:00 0.563600004 12/30/13 6:00 14-Nov-13 11:04:00 0.563600004 12/30/13 6:00 14-Nov-13 11:04:00 0.563600004 12/23/13 6:00 04-Nov-13 06:00:00 Filtered 12/23/13 6:00 28-Oct-13 06:00:00 0.569199979 12/2/13 6:00 21-Oct-13 06:00:00 0.565599978 11/25/13 6:00 14-Oct-13 06:00:00 Filtered 11/18/13 6:00