AnsweredAssumed Answered

PI DataLink functions to PI SDK

Question asked by pablo77f on Jul 16, 2020
Latest reply on Jul 27, 2020 by pablo77f

Hello, i'm developing in Visual Basic (o i'm try) and i need to convert these PI DataLink functions to PI SDK:

 

PICalcVal(tag;timeStart;timeEnd;"average";1;0;)
PIExpDat(tag;timeStart;timeEnd;31m;0;)
PIExTimeVal(tag;CountHours)

 

Please, i need some examples because i found the equivalents  here , but didn't work.

 

For example, I tried (I saw that here):

PICalcVal(tag;timeStart;timeEnd;"average";1;0;) with Summaries2("*-5h", "*", "24h", instance, 0, Nothing).

 

 

And returns:

(Excepción de HRESULT: 0x80020005 (DISP_E_TYPEMISMATCH)) line 60

 

Thanks!

Outcomes