Hi to All !
I'm trying to use PISDK inside my PHP page.
There is NO problems to link the PISDK COM object using the code line :
$g_sdk = new COM('PISDK.PISDK');There is NO problems to get the snapshot value from a specific pi point :
$val = $pipt->Data->Snapshot-Value;The issue happens when I try to get data using the ArchValue method from the $pipt object. See the example below :
$timestmap = new VARIANT(time(),VT_R8);
$pivl = $pipt->Data->ArcValue($timestamp,rtAuto);The method retruns and error related to the VARIANT data type. It doesn't seem the same passed with a classic VB call.
Could someone give me help about this matter?
Thanks in advance.
Regards.
Marco
MR77