Looking at pi history (example last month or last week)'
With a pi tag I'd like to get the data-time that the tag was FIRST recorded and the date-time that that tag changed to something else.
Basically I want to calculate the total minutes between 2 date-times that this tag (in this case a product ID) was being used. The tag is a product run. As the production schedule is executed I need the start date-time and end date-time of this tag to do the calculation.
I'm using vb and pi functions, pi SDK and PiSDK Common (type Lib).
Thank you for your help.