Help needed: Matlab and NXT on a Mac

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
Post Reply
cardboardpixel
Posts: 1
Joined: 11 Jan 2011, 22:09

Help needed: Matlab and NXT on a Mac

Post by cardboardpixel »

I have a Mac (Snow Leopard OS) and I'm having problem connecting my NXT via USB and Bluetooth.

I installed the Fantom driver, however, Matlab seems to have a problem locating it. Here is an error I am getting:

Code: Select all

>> COM_CloseNXT all
>> hNXT = COM_OpenNXT(); % look for USB devices
NXT_PlayTone(440, 500, hNXT);
??? Error using ==> COM_OpenNXTEx>USB_OpenHandle_Windows at 545
The "fantom" library could not be loaded. Make sure the official
Mindstorms NXT driver is installed correctly!

Error in ==> COM_OpenNXTEx>USB_OpenHandle at 496
        hOut = USB_OpenHandle_Windows(hIn, SuppressErrors);

Error in ==> COM_OpenNXTEx at 282
        h = USB_OpenHandle(h, false);

Error in ==> COM_OpenNXT at 70
    handle = COM_OpenNXTEx('USB', '');
When I try connecting via Bluetooth, Matlab code keeps running ("busy") and connection isn't completed.

Any ideas what could be wrong? Could this be related to Snow Leopard?
linusa
Posts: 228
Joined: 16 Oct 2010, 11:44
Location: Aachen, Germany
Contact:

Re: Help needed: Matlab and NXT on a Mac

Post by linusa »

Do you have a 64bit system?

Please use the command "DebugMode on" at the beginning of your program, and then post the output again.
RWTH - Mindstorms NXT Toolbox for MATLAB
state of the art in nxt remote control programming
http://www.mindstorms.rwth-aachen.de
MotorControl now also in Python, .net, and Mathematica
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 20 guests