Calling convention: OEE_HP_GetProductFromAspen(DateTime: Double, "AspenTag": String, "AspenInterfaceName": String): String
Description: Queries an Aspen historian tag in the twelve-hour interval beginning at the supplied date/time and maps the first returned tag value to an HP product.
Parameters:
DateTime: start of the historian interval.
AspenTag: historian tag name.
AspenInterfaceName: database-connection definition name.
Returns: Integer product ID from the HP product mapping, despite the registered String return type; NULL for missing arguments, connection, rows or query failure.
Availability: Default; HP-specific and dependent on the Aspen History(80) schema and product mapping.
Example:
ProductID := OEE_HP_GetProductFromAspen(EventTime, "PRODUCT.TAG", "AspenHPMonomers");