LabVIEW for LEGO MINDSTORMS and LabVIEW for Education

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending Bluetooth Messages

Is there a way to send Bluetooth messages to an NXT brick from within LabVIEW? I want something that establishes a connection like the NXT Direct Commands do, but sends a simple BT text message originating from the PC and recieved by the brick. Thanks.
0 Kudos
Message 1 of 4
(8,033 Views)
How about the "Message Write" VI located on the Direct Commands >> Bluetooth Messages palette?
------
James Blair
NI R&D
0 Kudos
Message 2 of 4
(8,032 Views)
Let's say I connect to a NXT brick via Direct Command vi's. I was under the impression that if I then use the Bluetooth "Message Send' vi, a message would be sent via Bluetooth /from/ the brick the application(PC) connected to. What I need is a way to send a Bluetooth message from the application(PC) that will be recieved by the brick connected to.
0 Kudos
Message 3 of 4
(8,026 Views)
I think you're getting a little confused.  There are actually two "Message Write" VIs included in the toolkit.

The first runs on the NXT and will send a message to a particular mailbox on a particular connection.  (The connection could have been made to the PC or to another NXT.)  That VI is located on the palettes at Addons >> NXT Toolkit >> NXT Library >> BT Messages >> Write Message.  It has an orange bar across the top of the icon.  You'd use this VI if you were writing a program you intended to download and run on an NXT.

The second VI is the one I mentioned in my previous post, which is found at Addons >> NXT Direct Commands >> BT Messages >> Message Write.  It has a gray bar across the top of the icon.  This will send a message from the PC to the NXT, just as if you were sending one of the other direct commands from the PC to the NXT.  This is the VI that I think accomplishes what you want.
------
James Blair
NI R&D
0 Kudos
Message 4 of 4
(8,022 Views)