Matlab libraries

Legacy support with Phidget21
thagey
Fresh meat
Posts: 2
Joined: Sun Aug 26, 2012 1:28 am
Contact:

Matlab libraries

Postby thagey » Sun Aug 26, 2012 1:33 am

I'm trying to install the phidgets library onto a macbook (OSX 10.7), and the link on the MATLAB page for the libraries quick download appears to be broken.
Is there another way to get the matlab phidgets library installed?

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

Re: Matlab libraries

Postby burley » Mon Aug 27, 2012 7:19 am

http://www.phidgets.com/downloads/examples/Matlab.zip

That should contain the phidget21Matlab.h
Brian Burley
403-282-7335 ext. 6003
support@phidgets.com

thagey
Fresh meat
Posts: 2
Joined: Sun Aug 26, 2012 1:28 am
Contact:

Re: Matlab libraries

Postby thagey » Mon Aug 27, 2012 11:31 am

Thanks for the link. I've got the .h file, but how to I make that into a functional library?
The programing page says I need to change a couple lines of code so that in order to read in the library I use:

loadlibrary /Library/frameworks/Phidget21.framework/Versions/Current/Phidget21 phidget21Matlab.h alias phidget21

but I don't have that directory. Can I just change that to point at the current location of the .h file?
something like:

loadlibrary /Users/Me/Desktop phidget12Matlab.h alias phidget21

if it was on my desktop?

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

Re: Matlab libraries

Postby burley » Mon Aug 27, 2012 2:30 pm

Yes that's right.
Brian Burley
403-282-7335 ext. 6003
support@phidgets.com

benji_w40k
Fresh meat
Posts: 1
Joined: Tue Oct 09, 2012 2:12 pm
Contact:

Re: Matlab libraries

Postby benji_w40k » Tue Oct 09, 2012 2:20 pm

Hi Phidget users community,

I am trying to use Matlab to write a code to control my PhidgetInterfaceKit 8/8/8 but Matlab is unable to load the phidget21Matlab.h library.

When I run this line :

loadlibrary /Users/me/Desktop/Phidgets/Matlab phidget21Matlab.h alias phidget21

Commande window returns this error :

??? Error using ==> loadlibrary at 365
Failed to preprocess the input file.
Output from preprocessor is:/bin/bash: gcc: command not found

Any idea about what is going wrong ?


Return to “Matlab”

Who is online

Users browsing this forum: No registered users and 1 guest