Dear PI Users;
I have an array of "PIValues" that uses the method "Summaries2" to retrieve the daily maximum values for each month. The values are retrieve correctly but the timestamp is always set to 12:00 AM for each day. Below is my code;
for (int x = 1; x <= xunit; x++)
{
ipidata[x - 1] = (PISDK.IPIData2)_aliasList[x].DataSource.Data;
results[x - 1] = ipidata[x - 1].Summaries2(date1, date2, "24h", PISDK.ArchiveSummariesTypeConstants.asMaximum,
PISDK.CalculationBasisConstants.cbTimeWeighted, null);
foreach (PISDKCommon.NamedValue NV in results[x - 1])
{
pival_dx[x - 1] = (PISDK.PIValues)NV.Value;
}
}
if i display the time for each values, it always return 12:00 am, what am i doing wrong? How do i retrieve the correct timestamp?
Regards,
Jayson