07-20-2009 06:14 AM
Solved! Go to Solution.
07-20-2009 10:06 AM - edited 07-20-2009 10:06 AM
youchange wrote:
So I want that the NXT in some way sent the data values to the pc.
I dont know which is the best way to do it, if just with BT messages, or with a excell file,...
Michael Gasperi's book, "LabVIEW for LEGO MINDSTORSM NXT" has examples of both. Chapter 15 he shows how to write a program on the NXT that stores the data to a file while you have a program on the host that waits for the file to appear and then uploads it to the PC. On the NXT you just use open file for write, write file, close file. On the PC you use upload file to PC block to get the data. You can also use the PC to control the NXT and tell it to start running, etc..
With bluetooth, you can use send message/receive message on both sides.
07-20-2009 10:29 AM
ok! thanks for your answer
I also want to ask you if you think it will be real time, or almost; because I want it to control a two wheel self balancing, so I need to read the data oon the pc as soon as posible. what do you think?
07-20-2009 11:08 AM
youchange wrote:ok! thanks for your answer
I also want to ask you if you think it will be real time, or almost; because I want it to control a two wheel self balancing, so I need to read the data oon the pc as soon as posible. what do you think?
Any time there is communication between any target (NXT or not), it's almost never deterministic. In addition, the communication latency is frequently high. With the NXT, the communication is not deterministic and the latency is rather long. Thus, it's unlikely you'll be able to get the loop rate you need to do a self balancing robot if you do the processing on the PC. You should do the algorithm on the NXT's processor.
07-20-2009 11:39 AM
thanks again,
the problem is that if I make the control on the NXT I cannot use floating data. Any idea?
07-20-2009 01:03 PM
Toolkit 2.0 and the new firmware supports floating point (though it is emulated).
http://zone.ni.com/devzone/cda/tut/p/id/4435
07-20-2009 03:24 PM
01-11-2010 04:32 AM
Hi Frields,
I am a new LabVIEW user. I want to control remotely (may be via bluetooth) a LEGO MINDSTORSM NXT Robot by labVIEW . Anyone please help me what the basic steps I have to follow.
-Konica
10-25-2013 01:22 AM
This article is intended to indicate the installation and configuration process between LabVIEW and educational robot Lego Mindstorms NXT wirelessly, this will enable LabVIEW developers in having a mobile platform for the development of projects and autonomous robots, we need to install some programs the computer:
https://decibel.ni.com/content/docs/DOC-32448