Warnings in loadlibrary ... phidget21Matlab.h

Legacy support with Phidget21
JayJ
Fresh meat
Posts: 2
Joined: Tue Sep 25, 2012 12:44 pm
Contact:

Warnings in loadlibrary ... phidget21Matlab.h

Postby JayJ » Tue Sep 25, 2012 12:58 pm

Hello,
I am trying to interface to the Phidgets USB I/O board through Matlab.
I am able to access/control the board via the phidget control panel.
However when I try to run the digitalout.m file, Matlab crashes.
When I run the first command of digitalout.m " loadlibrary phidget21 phidget21Matlab.h; ", I get several warnings listed below:
---------------------------------------
Warning: Warnings messages were produced while parsing. Check the
functions you intend to use for correctness. Warning text can be
viewed using:
[notfound,warnings]=loadlibrary(...)
> In loadlibrary at 344
Warning: The data type 'FcnPtr' used by function
CPhidgetDictionary_set_OnKeyChange_Handler does not exist.
> In loadlibrary at 403
Warning: The data type 'voidPtrPtrPtr' used by function
CPhidgetManager_getAttachedDevices does not exist.
> In loadlibrary at 403
Warning: The data type 'error' used by function CPhidget_log does
not exist.
> In loadlibrary at 403

---------------------------------------

I am running Matlab 2012a on a 32-bit Windows-7 computer.

Can someone provide input on what possible errors I could be making, and how these maybe rectified?

Thanks,
Jay

JayJ
Fresh meat
Posts: 2
Joined: Tue Sep 25, 2012 12:44 pm
Contact:

Re: Warnings in loadlibrary ... phidget21Matlab.h

Postby JayJ » Tue Sep 25, 2012 2:23 pm

Upon further investigation, the call (below, taken from digitalout.m) to open the USB I/O board causes Matlab to crash (all prior commands from digitalout.m work fine, except for the warnings during the loadlibrary function call mentioned in the prior post)
---------------
calllib('phidget21', 'CPhidget_open', handle, -1);
---------------

Any insights into why this maybe happening? And how can it be fixed?

Thanks,
Jay

kyrou
Fresh meat
Posts: 2
Joined: Fri Nov 30, 2012 4:24 am
Contact:

Re: Warnings in loadlibrary ... phidget21Matlab.h

Postby kyrou » Fri Nov 30, 2012 4:27 am

I have strictly the same error of Loadlibrary, , and then it crash Matlab when calllib ...

Any ideas ?

details : I on Win 7 , 64Bit. Trying to connect to a Phidget Spacial 3/3/3
I try with Matlab 64bits => Fail to find a compiler in 64bits,
so switch to Matlab 32Bit with LCC-Win32 C compiler . and when I run digitalout.m Gives me the same error like JayJ, and Matlab Crash.

So switch to another computer with Win XP 32Bits, but still the same issue of error during Loadlibrary ,, :?:

User avatar
burley
Human-Cyborg Relations
Posts: 438
Joined: Tue Sep 27, 2011 2:37 pm
Location: Calgary
Contact:

Re: Warnings in loadlibrary ... phidget21Matlab.h

Postby burley » Tue Dec 04, 2012 12:47 pm

Brian Burley
403-282-7335 ext. 6003
support@phidgets.com

kyrou
Fresh meat
Posts: 2
Joined: Fri Nov 30, 2012 4:24 am
Contact:

Re: Warnings in loadlibrary ... phidget21Matlab.h

Postby kyrou » Wed Dec 12, 2012 5:28 am

yeah , I try, there's improvement (thanks to your file .h) but

I've the same warning, from loadlibrary, But just once , and it says , coulnd not open interface kit

when I relaunch the digitalout.m , no warning (FcnPtr,,,,,, ) but still couldn't open interface kit,

Here is the dialog of matlab, (launch 2 times digitalout.m)

Warning: Warnings messages were produced while parsing. Check the
functions you
intend to use for correctness. Warning text can be viewed using:
[notfound,warnings]=loadlibrary(...)
> In loadlibrary at 399
In digitalout at 3
Warning: The data type 'FcnPtr' used by function
CPhidgetDictionary_set_OnKeyChange_Handler does not exist.
> In loadlibrary at 461
In digitalout at 3
Warning: The data type 'error' used by function CPhidget_log does not
exist.
> In loadlibrary at 461
In digitalout at 3
Could not open InterfaceKit
Warning: The library class 'phidget21' already exists. Use a
classname alias.
> In loadlibrary at 181
In digitalout at 3
Could not open InterfaceKit
>>

Lois96
Fresh meat
Posts: 2
Joined: Sat Aug 31, 2013 1:42 am
Contact:

Re: Warnings in loadlibrary ... phidget21Matlab.h

Postby Lois96 » Sat Aug 31, 2013 1:59 am

Just wondering if someone could give me a push in the right direction. I've looked for some sample files but they don't have any Matlab ones.


Return to “Matlab”

Who is online

Users browsing this forum: No registered users and 1 guest