LabVIEW for LEGO MINDSTORMS and LabVIEW for Education

cancel
Showing results for 
Search instead for 
Did you mean: 

robotics

Hello everybody,

 

I trying to communicate with my nxt via bluetooth throught my computer, but it always appears the same error. I've searched in the ni forums a way to solve my problem but nothing seems to work. In recent talk with a friend of mine he told me that my version of labivew may not have installed the drivers necessary to comunicate with the nxt. I found this a bit strange because i can communicate with the robot via USB.

In conclusion I would like to know if there's a specific driver that must installed and if so where can I get it.

 

Thanks in advance

 

Nuno

 

(P.S.: Sorry if my english is not that good)

Message 1 of 8
(8,786 Views)

Hi Nuno,

 

Obviously if you have the NXT Driver installed, this issue may happen when the VI which ensure that Bluetooth is available on your system is not present in you application.  To resolve the problem, you need to add this VI to the list of VIs that are called dynamically in your built executable. Steps are described in this KB : Why Can't I Connect to my NXT via Bluetooth.

 

Let me know what happens and if this doesn't solve your problem please post you error code or a screenshot.

 

Regards,

Message Edité par Steve M. le 13-01-2010 10:51 AM
Steve M.
0 Kudos
Message 2 of 8
(8,775 Views)

Thanks for the fast response Steve M.

 

I've already seen and implemented the KB that you send me, but it didn't work.

This is the code that I implemented. A very simple one, it should establish a connection with the NXT and then read some information regarding that NXT.

 

NXT.jpg

 

The error that always appears is:

Error -142017 occurred at createNXT.vi:7

Possible reason(s):

Fantom: No more items found.

 

Sometimes it also appears this one:

Error:

Cannot connect to the NXT

Possible Solutions:

- Ensure the NXT is powered on and connected to your computer
- If Bluetooth connection, ensure Bluetooth is enabled on the NXT
- Try restarting the NXT

 

Another odd behaviour is that if I try to establish a bluetooth connection between my computer and the NXT brick using a software that I've installed on my computer (in my case the bluetooth stack for windows by toshiba) I'm able to connect them via bluetooth.

 

0 Kudos
Message 3 of 8
(8,766 Views)

Hi,

 

What is your configuration ?

Here are couple of things to tryI found it here : http://forums.ni.com/ni/board/message?board.id=460&message.id=1299&query.id=293540#M1299.

The latest NXT toolkit release is 2.0, which has been posted recently. If you are using this version of the toolkit, the firware version should be 1.26. If you have installed NXT toolkit 2.0, you can update your firmware to 1.26 using Tools>>NXT Modules>>Update firmware.

 

To download 2.0, please follow the instructures on this page:

http://zone.ni.com/devzone/cda/tut/p/id/4435

 

Please let us know if this solves the problem.

 

Regards,

Steve M.
0 Kudos
Message 4 of 8
(8,746 Views)

Nuno,

 

I want to clear up some possible confusion.  The latest version of the NXT toolkit is no longer 2.0.  As of 2009 this toolkit has become a module: LabVIEW 2009 LEGO® MINDSTORMS NXT  Module.  I can tell from your screenshot you do have this latest version installed, so I would recommend against also installing the 2.0 toolkit.

 

Also, the NXT driver is to communicate to the NXT both through USB and Bluetooth and is implemented in a single DLL.  Therefore if you can communicate with the NXT via USB then you should also be able to communicate with it via Bluetooth.  The issues you are having connecting to the NXT with Bluetooth are common due to the finickiness of Bluetooth.  I apologize for this, but we are investigating ways to improve this.  

 

My best suggestions are to follow the instructions from my post referenced by Steve.  If you are still having trouble with this instructions let us know and I will try and see if there is anything addtional we can try.

 

Cheers,  

Mark
NI App Software R&D
0 Kudos
Message 5 of 8
(8,697 Views)

Does your program work when you use USB instead of Bluetooth?  Please note that not all Bluetooth stacks are supported.  Specifically, only the Widcomm and Microsoft stacks are supported by the NXT driver.  The Toshiba stack is not supported.

 

 

Joel Sumner
NI-Shanghai
0 Kudos
Message 6 of 8
(8,689 Views)

Thanks Joel for the response

The program works just fine when I use a USB connection, my program is able to detect the NXT and executes the desired tasks. It's just when I change to a Bluetooth connection that the errors appear.

As matter of fact I'm using a Toshiba stack, but could this really be the problem? If so how do I fix it?

 

Nuno Teixeira

0 Kudos
Message 7 of 8
(8,685 Views)
What most people do is purchase a 3rd party USB Bluetooth adapter that comes with the Widcomm or Microsoft stack.  The Mindstorms site used to have a list of adapters that worked but they redesigned their site and now it's gone.  
Joel Sumner
NI-Shanghai
0 Kudos
Message 8 of 8
(8,676 Views)