GetValueArrays, casting a digital PI point

Discussion created by Leonardo78 on Jun 17, 2014
Latest reply on Jun 18, 2014 by Leonardo78

Hi everyone,




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.