Empty library upon loading

Legacy support with Phidget21
Somers

Empty library upon loading

Postby Somers » Fri Sep 10, 2010 3:14 pm

Hello,

I'am trying to do some programming and in such i started just be following the instructions.
Loading the library gives no problems until i use calllib. It gives me an error message:

[color=#FF0000]??? method was not found

Error in ==> C:\MATLAB6p5p1\toolbox\matlab\general\calllib.dll
Error in ==> C:\MATLAB6p5p1\work\phidget\Untitled.m
On line 4 ==> calllib('phidget21', 'CPhidgetInterfaceKit_create', ptr);
[/color]

To see where it came from made me use libfunctions and showed that there is nothing in the library:

No methods for class lib.phidget21 or no class lib.phidget21.
ans = []


This seems to be kind a strange as i freshly installed everything. So i am wondering now if somebody knows whats going wrong here?

Thanks in advance!

Somers

Re: Empty library upon loading

Postby Somers » Mon Sep 20, 2010 4:12 am

Is this such a difficult question that nobody can help me out on this?

User avatar
Patrick
Lead Developer
Posts: 3098
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Empty library upon loading

Postby Patrick » Mon Sep 20, 2010 10:32 am

Have you called loadlibrary on phidget21 with the header? Did you look at the getting started for Matlab? Have you tried using the examples? Have you installed the libraries? Are you using Windows?

-Patrick

AdamS

Re: Empty library upon loading

Postby AdamS » Mon Sep 20, 2010 10:35 am

1) Have you tested you Phidgets driver and library install by running the sample app for your device from the Phidget control panel? (Little Ph icon that should be sitting in your system tray)
2) do you have the phidget21Matlab.h in the same directory as your project code?

Somers

Re: Empty library upon loading

Postby Somers » Sun Sep 26, 2010 11:02 am

1) Sample app works normally, no problems there
2) The library (dll) is in the windows directory where it should, the *.h file is in the working directory

Calling headers seems kind of useless if the library loaded seems empty. The problem is the same with the example files..


Return to “Matlab”

Who is online

Users browsing this forum: No registered users and 0 guests