Page 1 of 1

Help needed: Matlab and NXT on a Mac

Posted: 11 Jan 2011, 22:20
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?

Re: Help needed: Matlab and NXT on a Mac

Posted: 12 Jan 2011, 13:46
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.