Allow Digital States to skip state numbers
Currently if you have a digital state set for the following:
0 = Closed
1 = Open
255 = Unknown
You are required to create a digital state for everything from 2-255. It does not allow non contiguous state sets. This is a problem when using a PI tag that uses this state in AF/PI Vision. Setting an attribute to anything in AF brings the state name correctly into AF, however in PI Vision adding a multistate that uses this attribute the entire list of 256 states is shown.
An alternative would be allow an excluded digital state name that would prevent PI Vision from registering it as a multistate option. Maybe ignore blank digital state names.
Skipping states also works well with states as bit flags. A digital state code is an Int16 and that allows 16 different bits (0 - 15). I'd like to only define those 16 states but allow for any combination of flags.