Hi,
I have this code for connection with Phidgets Device:
It works good for me on 2 computer (Win 7_64, Win XP_32)
But for some reason the AutoIt crush on other computer with Win 7_64.
C:\Users\user\Desktop\ManagerTester\includes\ConnectionControllerFunctions.au3 (78) : ==> Variable must be of type "Object".:
$oPhid1.Open()
$oPhid1^ ERROR
It get error on this command:
$oPhid1.Open()
Because probably it doesn;t make an object on this line:
$oPhid1 = ObjCreate("Phidget21COM.PhidgetInterfacekit")
Why it may happens just on this PC?
Thanks
I have this code for connection with Phidgets Device:
[ autoit ]
;Phidget initialization code goes here Global $oPhid1, $oPhidEvents $oPhid1 = ObjCreate("Phidget21COM.PhidgetInterfacekit") $oPhid1.Open() $oPhid1.WaitForAttachment(3000) If NOT $oPhid1.IsAttached Then MsgBox(0, "Error", "Phidget Device not attached") GUICtrlSetState($cbWithoutMux, $GUI_CHECKED) ;Exit EndIf $oPhidEvents = ObjEvent($oPhid1, "phid1_")
It works good for me on 2 computer (Win 7_64, Win XP_32)
But for some reason the AutoIt crush on other computer with Win 7_64.
C:\Users\user\Desktop\ManagerTester\includes\ConnectionControllerFunctions.au3 (78) : ==> Variable must be of type "Object".:
$oPhid1.Open()
$oPhid1^ ERROR
It get error on this command:
$oPhid1.Open()
Because probably it doesn;t make an object on this line:
$oPhid1 = ObjCreate("Phidget21COM.PhidgetInterfacekit")
Why it may happens just on this PC?
Thanks