1 of 1 people found this helpful
myPIPoint.UpdateValue(new AFValue(nonHistorizedTotalAlerts.GetValue().Value, AFTime.Now),OSIsoft.AF.Data.AFUpdateOption.Insert);
Once that's working, you may want to have a more consistent timestamp rather than AFTime.Now. You could experiment with setting the time to midnight or 8AM local time. Examples:
new AFTime(DateTime.Today + TimeSpan.FromHours(8))
Thanks Rick, that appears to have worked!