I have this code for connection with Phidgets Device:
Code: Select all
;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_")But for some reason the AutoIt crush on other computer with Win 10_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?