I'm trying to use effectively GetValueArrays to speed up my application but I'm not able to cast the second Array (which contains values only) when I'm handling digital PI points.
"Optimizing your PI SDK Applications" guide only explains how to string a Double value but I need to retrieve both Name and Code of the digital state.
I tried PIValue, IPIValue2 and NamedValue but no one worked. How should I cast the element inside the Array?
Thank you for any help.