Hi,

I want to display values of any point type in PI ProcessBook using AF.

So I extended the AFWrapper and this works fine.

I would like to display the values with the precision defined in "DisplayDigits". So I have two questions:

Do I have to round the values manually using Math.Round in C# or is there something built in the AF SDK?

If I want to check for digital states, do I need to reference the PI SDK or is there an analog in the AF SDK?

Thanks

Holger

For digital states, ProcessBook should show the equivalent AFEnumerationValue if you are using AF 2.5.2 for the client.

For display digits, I don't know if AF assets does a pass-through to the PIServer for that setting. For non-PI Point assets in Formula or custom DR's, you may consider rounding the number yourself. In a DR, it would be the Math.Round. In a formula, there is the round function to round to a whole number, and the roundfrac function to round to some specified number of decimal places.