Hello,
Couple of comments:
- It looks to me as though you are using the character "_" to denote digital points, I would just check the Point Type property of the PI Point object instead.
- You probably want to make use of the "Name" property of a DigitalState object instead of the "Code" property.
- It is possible to have a System DigitalState as the value of a non-digital PI Point. Your formatting may raise an exception if your PI Point has a bad value.
What is it about the digitalstate that isn't working, you are unable to read the value?
Principal Consultant
Real-Time Data Management @ Wipro Technologies