Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

phidgets ObjectCreate problem

$
0
0
Hi,

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

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>