When mining PI Batch DB data in MATLAB, I can typically locate the information I need by drilling down to the appropriate UnitBatch/SubBatch level and looking for particular unique items (PIUnitBatches.Item('stringA').PISubBatches.Item('stringB').PISubBatches.Item('stringC').
However, for those instances when multiple occurences of a particular SubBatch or phase are present, the Item function still only pulls the first occurrence in the list, and not an array of all occurrences.
- Typically, when this is known, a for-loop is employed to search through the list.
I know there is a IPISubBatches2 search function --> Search = handle Search(handle, string, Variant(Optional))
Does anyone know what the search parameters are, and whether this would be applicable in terms of a more efficient data mining process?
Looking through the documentation, the only search function I see is for PISubBatches. Is this what you were referring to? Unfortunately, it looks like this function is not implemented so you wouldn't be able to use it.