phidgets ObjectCreate problem

Any hardware type questions or problems for all other Phidget devices.
Post Reply
arnoldgarcia
Fresh meat
Posts: 1
Joined: Mon Oct 14, 2024 12:45 am
Contact:

phidgets ObjectCreate problem

Post by arnoldgarcia »

Hello,
Hi,


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_")
It works good for me on 2 computer (Win 10_64, Win XP_32)

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests