LabVIEW for LEGO MINDSTORMS and LabVIEW for Education

cancel
Showing results for 
Search instead for 
Did you mean: 

Allow BT connection using Direct Commands

Hi,
 
I would like to test some direct commands using bluetooth but i can't even create a NXTObject. When i try to test the connection using "Bluetooth Is Paired" block, i get this error :
"VISA:  (Hex 0xBFFF0012) Invalid resource reference specified. Parsing error."
 
The VISA resource string is the name of my NXT that appears in NXT Terminal and the NXT Terminal tells me that the NXT is connected. Could you explain me where is my error and the easiest way to initialize a BT connection using direct commands ?
 
I'm using LabView 7.1 with the toolkit for Lego Mindstorms.
 
Thank you for your help.
 
 
0 Kudos
Message 1 of 3
(6,868 Views)
Hi jargal -

It sounds like you're just using the wrong resource string.  I have an NXT that I've named "voodoo."  It sounds like you are trying to use just that name (voodoo) as the VISA resource string to Bluetooth Is Paired.  But that string alone doesn't give enough information about how to connect to the NXT over Bluetooth.  Here's a complete resource string:

BTH::voodoo::00:16:53:01:02:03::4

That can be broken down into 4 sections, separated by the double colons ( :: ).

BTH = the connection medium, Bluetooth (as opposed to USB)
voodoo = the name of the NXT
00:16:53:01:02:03 = the Bluetooth address of the NXT; you can view this on your NXT under the Settings / NXT Version menu (the ID entry)
4 = the outgoing virtual COM port used to communicate with this NXT; listed on your computer in the Bluetooth Devices control panel

You could also use the Find NXT VI (same palette as Create NXT Object) to have that string automatically built for you from the NXT name.  Hope this helps!

Message Edited by James B. on 09-10-2007 10:22 AM

------
James Blair
NI R&D
0 Kudos
Message 2 of 3
(6,861 Views)

Hi James,

 

I understand what the problem was...as direct commands were running well using usb connection whith the same string, I thought i could use it in bluetooth.

 

Thank you for your help !

 

Jargal

0 Kudos
Message 3 of 3
(6,851 Views)