79381911

Date: 2025-01-23 16:49:45
Score: 1
Natty:
Report link

You should first create the timeRange with your startTime and endTime:

$timeRange = New-Object OSIsoft.AF.Time.AFTimeRange($startTime, $endTime)

and then pass it to RecordedValues:

$piPoint.RecordedValues($timeRange, [OSIsoft.AF.Data.AFBoundaryType]::Inside, $null, $false)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jason Molina