Getting results to the Lego mindstorm NXT brick

In a nutshell, my group and I are trying to use eye movements to control the Lego mindstorm, ie look left turn left look right turn right etc. We will be acquiring the eye movement signals through labview signal express and running those signals into labview to move the NXT robot. We are in need of assistance in both the signal importing into labview and the subsequent utilization of the said signal by the NXT. We already have the NXT toolkit and are able to succesfully run basic programs. The problem we've had is that we need the results continuously imported into the NXT so that we can maintain control of the vehicle.  So basically we need pretty close to real time results, sort of like a joystick type of thing. My group members and I have limited experience with labview so any assistance is appreciated. 

Hello King945,
Here is a link that walks through sending and reading Bluetooth messages. I have also include a basic NXT Front Panel Control vi. The vi will work if the NXT toolkit is installed and if the NXT brick is wired to the computer through a USB cable. Also, if you integrate the Bluetooth messaging with this vi you should be able to control the NXT using front panel controls through Bluetooth.
Wear
National Instruments
Product Support Engineer
Attachments:
Front_Panel_Steering_Control.vi ‏102 KB

Similar Messages

  • System Identification and Transfer Function of the LEGO MINDSTORM NXT Robot

    Can anybody please help with the below question.
    Using your LabView interface, input different values of power and record the output value of the number of wheel rotations. You can convert the latter into speed by measuring the diameter of the wheel. Then, type ‘ident’ in the command line of Matlab to launch a graphical user interface for system identification. Using the data collected for input power and recorded speed, you can derive the transfer function for your robot in the Laplace domain.
    You will notice that it is possible to approximate the transfer function to a first order system.
    Add disturbance to your system such as wind drag, road profile or friction. You might want to model the disturbance as a sinusoidal waveform.
    Analyse the system response in LabView in order to tune the response.
    Finally, write a LabView program to test your controller.
    Set both Integral and Derivative to 0
    Increase the value for Proportional controller to 0.5, 0.8, 1, 1.1, 1.3, and 1.5
    Select a suitable simulation stop time.
    Compare each simulation results and draw some conclusions.
    Record the steady-state error. Has it dropped to near zero?
    Record the rise time. Has it decreased to less than 0.5 second? And for what values of Kp?
    Check whether this response is realistic i.e. a real cruise control system generally cannot change the speed of the vehicle from 0 to 10m/s in less than 0.5 second.
    Adjust the gain (Kp) to give a reasonable rise time and add an integral controller to eliminate the steady-state error.
    Change both Kp and Ki and see what happens to the response. When you adjust the integral gain Ki, start with a small value since a large Ki can destabilise the response. (Ki =0.001, 0.002, 0.003, 0.004).
    Then you need to adjust both the proportional gain Kp and the integral gain Ki to obtain the desired response. Record the values of Kp and Ki that can meet all the design criteria.
    Write the PID-feedback control LabVIEW program as described above.
    Does it work? Quantify! Show us it is working
    Hand in a short report on the PID project on the cruise control of the LEGO MINDSTORM NXT Robot. Your report should contain an introduction to cruise control and uses of PID controllers, a brief explanation of how PID feedback control works. The printout of the Block Diagram and Front Panel of your LabVIEW program should be attached at the end of your report.
    Put it all together. There are many questions that can be explored and written up in the result section. Be creative.
    Here are some things that may be addressed: Check whether your system can stabilise speed to within 1%. What are the optimal PID parameters that you have found? Can you choose PID parameters to both reach the set speed quickly and also maintain the speed within good accuracy once the system has reached the set speed? Can you control the speed of small steps? Explain your results?

    Thanks for that.
    DanHarryman wrote:
    HI ToolMonkey
    You should be able to build control system to do this using PID control VIs. The following paper is a good place to start when working with PID systems. 
    http://www.ni.com/white-paper/6440/en
    Let me know how you get on using some of the functions in this. 
    Thanks 
    Dan.H
    UKAE

  • Connecting LEGO mindstorms NXT to my computer

    I am trying to learn Labview using the LEGO mindstorms NXT robot. I installed Labview 2009 and started working, but when I open the NXT terminal in the NXT module it claims that the NXT is not connected although it is (via USB). Any ideas ? Could this have to do with the fact that I am using Windows Vista ?
    Thanks

    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    
    Atom
    Certified LabVIEW Associate Developer

  • NI LabVIEW 2009 LEGO MINDSTORMS NXT Module Released!

    This software allows users to run code on their computers to control LEGO® NXT Bricks and compile, download, and run LabVIEW code directly to the NXT.  The new NXT Module 2009 represents a considerable improvement in features and usability over past versions.
    Totally redesigned APIs
    Full access to LabVIEW debugging tools
    Control NXT bricks either by running code in LabVIEW or compiling and deploying code to the NXT brick
    VIs for TETRIX kits are available out of the box
    Support for all LEGO® MINDSTORMS NXT 2.0 sensors.
    NXT Applications  Data Viewer, Piano Player, NXT Multimeter, Remote Control, and Scope
    The module can be downloaded here. 
    Please feel free to ask questions and provide feedback to NI R&D.
    Thanks,
    Mark
    Product Support Engineer - LabVIEW R&D
    Mark
    LabVIEW R&D

    Nice! But I guess that doesn't mean that you will be releasing a free version any time soon... does it. 
    Oh! BTW (slightly off topic) you should remove the "Select Your Operating System" block on the Student edition cd order form. It just gets peoples hopes up that they might get a mac version. 
    Andrew 
    Message Edited by AndrewDudney on 10-22-2009 10:27 PM

  • LabVIEW Toolkit for LEGO MINDSTORMS NXT in Windows Vista

    Anybody knows how install LabVIEW Toolkit for LEGO MINDSTORMS NXT with Windows Vista?. Installing it gives me an error that says 'The windows installer is corrupt. To attempt to resolve the issue, please register the engine by running regsvr32.exe on msi.dll'. But it doesn´t work.
    Thanks in advance

    The work around for this issue is to install each of the MSI files setup.exe calls when running the installer.  I was able to reproduce this issue for the 1.0 toolkit I was unable to do so for the 2.0 toolkit.  This being said the instructions bellow are for those of you who are running into this issue with the 2.0 toolkit.
     Listed bellow are the MSIs  you will need to run (shown here at their default location after the self extracting EXE has been run).  You should run these MSI in the following order.
    C:\National Instruments Downloads\LabVIEW\7.1\LabVIEW NXT Toolkit\2.0\Products\MetaUninstaller\MU\MetaUninstaller.msi
    C:\National Instruments Downloads\LabVIEW\7.1\LabVIEW NXT Toolkit\2.0\Products\MDFSupport\MDF\MDFSupport.msi
    C:\National Instruments Downloads\LabVIEW\7.1\LabVIEW NXT Toolkit\2.0\Products\MDFSupport\MDF\EULADepot.msi
    C:\National Instruments Downloads\LabVIEW\7.1\LabVIEW NXT Toolkit\2.0\Products\LVLEGONXTTK\LVLEGONXTTK\LVLEGONXTTK.msi
    C:\National Instruments Downloads\LabVIEW\7.1\LabVIEW NXT Toolkit\2.0\Products\LVLEGONXTTK_LV71\LVLEGONXTTK_LV71\LVLEGONXTTK_LV71.msi
    C:\National Instruments Downloads\LabVIEW\7.1\LabVIEW NXT Toolkit\2.0\Products\NXT_Driver64\LegoMindstormsNXTdriver64.msi
    A similar procedure can be used to install the 1.0 toolkit if need be.  You can get the install order from the parts from the [Parts] section of the setup.ini.  
    Mark
    LabVIEW R&D

  • NI LabVIEW Toolkit for LEGO MINDSTORMS NXT

    Labview 7.1.0と一緒に、タイトルのtool kitを使って、
    LEGO MINDSTORMS NXTを動かそうとしているのですが、
    一括コンパイル、nxt tool kit 1.0.1 patchコピーを終え、
    "Getting Started with the LabVIEW toolkit for LEGO MINDSTORMS NXT"(添付)
    の最初の"Building a LabVIEW VI that Runs on the NXT"に従って、
    作成したVIをNXT上で動かそうとしたのですが、
    Debugボタンを押すと、コンパイル、ダウンロードまではうまくいくのですが、
    ダウンロードされたプログラムがNXT上で動作せず、動かそうとすると、
    NXT本体のディスプレイにFILE ERROR!と表示されます。
    NXTのバージョンは、1.03で、
    "LabVIEW Toolkit for LEGO® MINDSTORMS® NXT"を
    一括コンパイルした際には、次のようなメッセージが表示されました。
    #### Starting Mass Compile: 2008年7月2日 18:41:42
      Directory: "C:\Program Files\National Instruments\LabVIEW 7.1\vi.lib\addons"
    Failed to load (C:\Program Files\National Instruments\LabVIEW 7.1\vi.lib\addons\NXTToolkit\shared\NXTToolkit.GetRelevantContexts_8_0.vi)
    Failed to load (C:\Program Files\National Instruments\LabVIEW 7.1\vi.lib\addons\NXTToolkit\shared\NXTToolkit.OpenVIRefInContext_8_0.vi)
    Failed to load (C:\Program Files\National Instruments\LabVIEW 7.1\vi.lib\addons\NXTToolkit\shared\NXTToolkit.RemoveScrollbars_8_0.vi)
    #### Finished Mass Compile: 2008年7月2日 18:42:58
    Labview 7.1では関係ないのかなと思っているのですが、関係あるでしょうか?
    その他でも、不具合原因について、心当たりのある方がいらっしゃいましたら、
     アドバイス頂ければ幸いです。
    小松崎
    添付:
    LabVIEW_Toolkit_for_LMS_NXT_Getting_Started_Guide.pdf ‏201 KB

    I do know of this one software where you can simulate the NXT, but it might only be for NXT-G programs.
    SimplySim at The NXT Step
    Other than that I don't think there's any way.
    As for the difference between the two, there's a whole ton. Those are two different programs with very different syntaxes. Lego NXT-G is the basic software that comes with the NXT kit. It's a very scaled down version of LabVIEW and is pretty nice. LabVIEW is much more advanced and you can do much more with it, but you are restricted to using the LabVIEW NXT Toolkit and the NXT's cababilities. (no float, only so much RAM, etc.). But you can still do a ton more with it. Yes, you can data log with LabVIEW in, like, many ways.
    Hope that helps!

  • Linux labview eval version for lego mindstorms nxt

    Hi,
    I'm a high school teacher in Tamil Nadu, India. Our school recently purchased 4 lego mindstorm NXT kits. We were happy to find that the new software was powered by labview, because it runs on linux. Our school runs on an Edubuntu LTSP network. So we were sad when we discovered the installation disk only supported MacOS and Windows.
    I looked at the labview site for NXT and saw that we could get a student evaluation copy for use with NXT - so I filled out the forms, but when the link to the FTP site was given, it only provided a Windows and MacOS copy.
    Can we obtain a student copy of labview for Linux for use with our NXT kits?
    Thank you, Jason Stewart.

    Hello Jason,
    I'm sorry I didn't make this more clear in my previous post, but the LabVIEW Student Edition for use with LEGO® MINDSTORMS® NXT is only available for Windows.  This will provide you with the LabVIEW 7.1 Student Edition and then you can download the LabVIEW Toolkit for LEGO® MINDSTORMS® NXT.  This will give you the ability to create custom NXT blocks in LabVIEW.
    Another option would be to purchase the latest LabVIEW Student Edition and then download the LabVIEW Toolkit for NXT.  However, this edition is also only available for Windows.  The customers that are downloading the LabVIEW Toolkit for LEGO® MINDSTORMS® NXT on a Mac OS have purchased the full version of LabVIEW for Mac.
    Your best option would be to contact the NI India Sales Office at [email protected] or 91 80-4119 0000.  They would be able to help you best with this.
    Regards,
    Clint M

  • Is Lego Mindstorms NXT 2.0 Mountain Lion Compatible?

    Is Lego Mindstorms NXT 2.0 software compatible with Mountain Lion? 
    My son saved money for a long time and finally last week had enought to buy NXT.
    I'd like to upgrade my Lion to Mountain Lion but since this NXT is the most important thing in house at the moment I don't want to ruin the experience with uncompatible OS.

    I spoke at length with someone at Lego Mindstorms support. Unfortunately I didn't think to get his name.
    He indicated that its a known crash with the NXT software and Mountain Lion bluetooth. However, he was unable to give me any encouragement regarding when it would get fixed. In particular, he indicated there is also a known issue communicating using broadcom bluetooth chipset which is used in Macs for the last several years. He said the NXT software has been broken talking to broadcom devices since 2007. Five years and no fix.
    He indicated the software is a version of Labview written by National Instruments.
    I've checked my systems. My 2012 Macbook Air and 2011 Mini use broadcom chips, while my 2007 white macbook has "cambridge silicon radio". I am able to communicate using my 2007 white macbook running snow leopard.
    Overall I can't say I'm happy with Lego's response. It essentially sounds like their software has been broken for years and they haven't bothered to fix it. I'm personally in a bind since the system we had envisioned using for first lego league isn't practical to use without bluetooth. I realize bluetooth can't be used in competition.
    It doesn't seem the Lego supports their NXT software well nor the Mac platform.

  • Labview 2009 Module Mobile And Lego Mindstorms NXT

    Hi
    I've installed the mobile toolkit in labview 2009 but when I created a new mobile project I didn't find the NXT Programmings category on menu.....
    are they not supported?
    I would like to control my nxt with my PDA through bluetooth.
    Thanks in advance for help 

    Hi,
    which NXT software did you exacly installed? LabVIEW Module for LEGO MINDSTORMS NXT or LabVIEW Toolkit?
    I would like to be sure to have corretcly understood: in a mobile project, the function palette of a VI under a PDA target does not have the NXT palette, correct?
    Bye!
    Licia

  • Lego mindstorm nxt 2010 install error

    Hi, I tried to install lego mindstorm nxt 2010 (LVLM2010) and got errors that some files are missing - see attached file. Please help and regards, Walter
    Attachments:
    NXTinstallErrors.doc ‏305 KB

    Hi again.I did entpacking once more and tried to install it again. Now I got an error that LV2010 have to be installed before (LV2011 is already installed!) - see attached error message. So I Think that this package cannot be installed on LV2011. What do you mean? Walter
    Attachments:
    NXTinstallErrorLVnotInstalled.doc ‏155 KB

  • Today I purchased an ATT mifi liberate hotspot to use with my early 2011 MBP,   the iPad Air I also purchased today. I've been testing out all the settings on the hotspot, but can't seem to get results with the GPS switch. GPS just spins, searches, doesn'

    Today I purchased an ATT mifi liberate hotspot to use with my early 2011 MBP, along with the iPad Air (128GB, WiFionlyI also purchased today. I've been testing out all the settings on the hotspot, but can't seem to get results with the GPS switch. GPS just spins, searches, doesn'. I can access the hotspots settings in Safari on the laptop and still the problem persisits. I did install some new GPS drivers recommended by AT&T, that doesn't seemed to have work. Could it be that there is a port wrong somewhere? Can anybody make heads or tails of this? Any assistance is gratefully appreciated...

    Today I purchased an ATT mifi liberate hotspot to use with my early 2011 MBP, along with the iPad Air (128GB, WiFionlyI also purchased today. I've been testing out all the settings on the hotspot, but can't seem to get results with the GPS switch. GPS just spins, searches, doesn'. I can access the hotspots settings in Safari on the laptop and still the problem persisits. I did install some new GPS drivers recommended by AT&T, that doesn't seemed to have work. Could it be that there is a port wrong somewhere? Can anybody make heads or tails of this? Any assistance is gratefully appreciated...

  • Blutooth connection with the robot Lego Mindstorms NXT

    Hi,
    I have got a license for Bluetooth Stack for Windows by Toshiba.
    I try to connect to the Lego robot, Mindstorms NXT : http://mindstorms.lego.com/en-us/default.aspx
    But it does not work.
    The connection seems to be good and both NXT and PC find each other, but when I try to communicate, the NXT says "line is busy".
    Does somebody can tell me if he can get through this issue ?
    Does Toshiba and Lego have a deal about connecting issues ?
    Thank you.

    Hello
    Do you have Toshiba notebook or you just use Toshiba BT stack?
    How to get through this issue? Should someone of us spent 250 Euros to buy this and test it at home? Dear oracid this is user-to-user forum and you can get some help from someone who has identical hardware at home and can help you with his experience.
    Deal between Toshiba and Lego in my opinion there is no deal. Every manufacturer who build hardware and want to use BT must know how this works. On the hardware market there are specific specifications for each communication technology and what Toshiba do is to build and offer specified hardware.
    In your case you should contact Lego support and ask for help. they have, probably, tested own stuff with different hardware platforms, operating systems and BT software so Lego should have enough experience with own products.

  • Two statements, get results from the first statement?

    Ok maybe I made it sound a little harder than it is, but this is what I am trying to do. I have a result set from from a database call when I pass in the username and password . In the 1st call I get the Users info: User_ID, first_name, lastname, etc...
    But I either need to get info from the first statement, and pass it to the 2nd statement or just do two statement calls calling the same info and passing it to my user object? I dont know which if any is faster, or better. The only thing I need from the first statement is the user_id. In the 2nd statement I need the user_id to find out the user permissions.
    Here is the original code when It was getting the user info and permissions from the same table. try
               dba = new DbAccess();
               java.sql.Connection con = dba.getConnection();          
    java.sql.DriverManager.getConnection("jdbc:oracle:thin:@kares:1523:appd","user","pass");  
               ps = con.prepareStatement("SELECT USER_ID, LAST_NAME, FIRST_NAME, LOGIN, PASSWORD," +
               "X, Y, Z FROM RD_USERS WHERE LOGIN=? and PASSWORD=?");
               ps.setString(1, user);
               ps.setString(2, pass);
               rs = ps.executeQuery();
               // set the user attributes
               if ( rs.next() )
                  loginValid = true;
                  setUserId(rs.getInt("USER_ID"));
                  setLastName(rs.getString("LAST_NAME"));
                  setFirstName(rs.getString("FIRST_NAME"));
                  setLoginName(rs.getString("LOGIN"));
                  setPassword(rs.getString("PASSWORD"));   
                  X = rs.getBoolean("X");
                  setX(X);
                  Y = rs.getBoolean("Y");
                  setY(Y);
                  Z = rs.getBoolean("Z");
                  setZ(Z);
               else
                  setLastName(null);
                  setFirstName(null);
                  setLoginName(null);
                  setPassword(null);
                  setX(false);
                  setY(false);
                  setZ(false);
               rs.close(); rs = null;
               ps.close(); ps = null;
               //dba.close(); dba = null;
            } The code above gets the info from one table, I now need to get the X, Y, and Z from a different table, but I need the USER_ID first. So, the first table is set up with the user_id and user info, and the 2nd table is set up with the user_id and user permissions

    Thanks DrClap I started on the the query and I did it a little differently, but it should hopefull do the same thing. my tables are constructed as so:
    USER
         USER_ID
         FIRST_NAME
         LAST_NAME
         USER_NAME
         PASSWORD
         ETC....
    USER_PERMISSIONS
         USER_ID
         PERMISSION X
         PERMISSION Y
         PERMISSION Z
         ETC....
    My Select looks something like this
    ps = con.prepareStatement("SELECT a.USER_ID, a.LAST_NAME, a.FIRST_NAME, a.USER_NAME, a.USER_PASSWORD," +
               "b.X, b.Y, b.Z FROM RD_USERS a, RD_PERMISSIONS b WHERE USER_NAME=? and USER_PASSWORD=?");
    This is where I come to a crossroads, Can I add on another AND to say "WHERE a.USER_ID = b.USER_ID
    and do I use the =, or is it ==, or .equals(). Thanks in advance.
    orozcom

  • I perform a search, get results, find the message I was after. How do I locate this message within my (relatively) complex folder and subfolder structure?

    Hi,
    I use structured subfolder system to keep my emails organized (hundreds and hundreds of folders).
    When I perform a search, get a list of results and within this list I find the email I was after, HOW do I locate the message? In other words, how can I open the folder which contains that particular email?
    Thank you in advance for your time and effort.

    Not a perfect solution but maybe a workaround.
    http://www.ehow.com/how_8222645_folder-thunderbird.html

  • Synchronized Send for getting results from the database

    I am new into XI. I have a scenario where id will be read from a file, a selection to be made from database and the results written to a file. I have created a BPM
    receiver -> synchroizedSend(JDBC) -> Send
    Please suggest me how to use Synchronized send to execute a query and getting the RsultSets.

    Hi
    Check this relative thread for the synchronous send step
    Synchronous Sending followed by Transformation
    were can i see synchronous send in the BPM editor
    Message was edited by:
            Anusha  Ramsiva

Maybe you are looking for

  • A/v out

    Can I plug an audio video cable into the headphone jack of my curve and plug red yellow white rca hookup to my tv monitor like an ipod video out?

  • Vb6 ODBC - Syntax error or access violation in oracle 11g migration

    Hi, We have VB6 application with Oracle 10g and the same is working fine. Now, we are migrating to Oracle 11g now and we have updated the odbc drivers too. { call M_FR(?, ?, ?, ?, ?, ?, ?, ?) } L_ID = 890083 V_ID = 1 SUB_ID = 6955141 SUB_SEQ = 1 P_CO

  • Deactivating the Invoice Approval Workflow in SRM 5

    Hi WF GurusM We are setting up Invoice Entry in SRM 5.0 and get the message: No approval workflow found. Inform system administrator. Please can you recommend how we can temporarily deactivate this workflow, so that we no longer get this message. We

  • Plug in? or plug it out?

    What is best for macbooks in general while using; is it pluging it on all the time or unplug it and when the battery drains, plug it again?

  • Questions about database application tables connector

    Hi all, I need to manage with OIM several databases (each one with its custom tables). Also, one of them will be my trusted target on the initial load of users. The structure of our tables is not similar to the included in the example. The documentat