Page 1 of 1

Segmentation Fault with Matlab and stepper motor

Posted: Tue Sep 25, 2012 5:59 am
by conessa
Hello,

i try to control my stepper motor (1063), with matlab R2009b. I installed the x86 library for matlab.
When i run stepper.m (phidget matlab example), the program makes a segmentation fault on this line:
calllib('phidget21', 'CPhidget_open', handle, serialNumber);

I try to test the program on 64 bits system but i have the same result.

i don't know how to solve this problem :(

Re: Segmentation Fault with Matlab and stepper motor

Posted: Tue Sep 25, 2012 7:53 am
by burley
You say you installed the x86 library for matlab, but were you on a 64-bit system at the time?

You need to do a few things to make our matlab libraries work on 64-bit computers:

http://www.phidgets.com/docs/Language_- ... r_Examples

Re: Segmentation Fault with Matlab and stepper motor

Posted: Wed Oct 03, 2012 8:36 am
by conessa
I found the solution:
i add this line at the begining of the program:
addpath('C:\Program Files\Phidgets');
This is the directory where .lib files are.