Could you provide more information on why you want to do this? How are you planning to create and modify the digital state sets? and how are you writing to it?
Note: Creating digital state sets might be slow on servers with many existing state sets. Known issue 161617
I don't know all possible values for one of my sensor, that's why I want to do it.
This is how I am planning to do,
// Get the PIServers collection for the current user and default PIServer.
2myPIServer = new PIServers().DefaultPIServer;
4// Create a new state set
5AFEnumerationSet myColorsSet = myPIServer.StateSets.Add("myColors");
7// Add values to the new set
12// Commit the new state set to the PI Data Archive
I wanted to check in and see if you were still working on this or if you had it completed. Also, I wanted to followup and tell you that the best place for questions for:
- OSIsoft techsupport is here: All Things PI - Ask, Discuss, Connect
- OSIsoft PI Developers Club: PI Developers Club
Let us know if you are still working on this or if you figured it out!