Getting the last archived int32 value and time

Discussion created by mikeloria on Mar 13, 2012
Latest reply on Mar 14, 2012 by hanyong

Here is a method I created in a library to make PI data retrieval easier:




I do the exact same thing for float32s in a different method without any issue. The method above fails stating that the int32 value cannot be cast. I can see the value in the archiver and it looks fine. Is there something wrong above or a better way. I tried using the select top 1 * from ........ comp2 but that had failed saying that it returned tomany values




Thank you in advance for your help in this matter