AnsweredAssumed Answered

How can I get all digital states without without specifying a digital state using AFSDK?

Question asked by josephhmoussa on Oct 19, 2016
Latest reply on Oct 19, 2016 by pthivierge

how can i get all digital states without specifying a digital state using AFSDK? i found piServer.StateSets[DigitalState] also i don't want to query all the digital points as below example.

List<PIPointQuery> myPIPointQueryList = new List<PIPointQuery>();
myPIPointQueryList.Add(new PIPointQuery("Pointtype", OSIsoft.AF.Search.AFSearchOperator.Equal, "Digital"));
List<PIPoint> DigitalpointList = PIPoint.FindPIPoints(piServerSource, myPIPointQueryList).ToList();

is there a way simple and do not query the digital point list and to get all digital states in one shot using AFSDK?

Outcomes