AnsweredAssumed Answered

Sampled Values with PowerShell

Question asked by RSullivanDuke on Feb 4, 2019
Latest reply on Feb 5, 2019 by gregor

I am trying to get sampled, interpolated (at 30 second intervals), evenly spaced data using PowerShell but am having some issues.

Using Get-PIValue I'm able to get an interpolated value by using a single timestamp but not with a start & end time. The way I'm doing it now is using a while loop and incrementing my timestamp by 30 seconds each time and using the -ArchiveMode Interpolated each time.

PI-ExpressionSummary makes me specify a SummaryType, none of which would be an interpolated sample.


Is there a method to do this by just passing in a tag, start, & end time?