LABVIEW NXT.vi Compile to LEGO?

NI工程師你好:
我使用
LEGO 8527
Labview 8.5 
為何使用NXT.VI ,Compile不進NXT控制器裡呢?
                                                                      謝謝
圖片:
http://tw.myblog.yahoo.com/jw!mzZdj.6AHxST_PYNzqJ3O6QEFW.R/gallery?fid=2
已解決!
轉到解決方案。

Installation Instructions
Before you install the LabVIEW Toolkit for LEGO® MINDSTORMS® NXT 1.0.1 Patch, verify the computer meets the following conditions:
A compatible version of LabVIEW is installed.
The LabVIEW Toolkit for LEGO® MINDSTORMS® NXT 1.0 is installed.
LabVIEW is not running.
Windows
Complete the following steps to install the LabVIEW Toolkit for LEGO® MINDSTORMS® NXT 1.0.1 Patch for Windows.
Download the LabVIEW Toolkit for LEGO® MINDSTORMS® NXT 1.0.1 Patch from ni.com/academic/mindstorms.
Unzip the nxttoolkit101patch.zip file and open the directory that corresponds to the LabVIEW version installed on the computer.
Copy the vi.lib directory you downloaded and paste this directory into the labview directory.
In the copy warning dialog box, select Yes to All.

Similar Messages

  • "HOW to use Labview call Dll compiled by VC++"

    "hello,I use VC++ compile a DLL,and i want to call DLL Function in LABVIEW program.But there is a dll function
    when i call it in labview.There is error.The prototype of Dll Function that make error is "USHORT DLLFUN __stdcall IBWRT(unsigned short dev_address,const char *pstrWrite)",The second paramenter is a char pointer,
    and the paramenter pass a command which content is
    "MEASURE:CURRENTC? 1A,0.001MA".
    When i use VC++ to call this function,i program followed:
    CString m_wrt;
    int ReturnW;
    m_wrt="MEASURE:CURRENTC? 1A,0.001MA";
    char buffer[40];
    strcpy(buffer,m_wrt);
    ReturnW=IBWRT(4,buffer);
    and this call is correct.
    But when i use labview to call this function.ther
    e is
    error.So, who can help me,to tell me how to call this
    function.Thanks."

    Are you asking about porting code or calling C++ code in LabVIEW?  As far as porting code, there's no easy way to move code back and forth between LabVIEW and C++.  However, if you are trying to call C++ code in LabVIEW, you can compile it as a DLL and call it in LabVIEW using the Call Library Function node.
    Chad B. » National Instruments » ni.com

  • "LabVIEW FPGA: The compilation failed due to timing violations, but there is no path information because the timing violations are not of type PERIOD

    The compilation of my labview fpga vi fails with the error message "LabVIEW FPGA:  The compilation failed due to timing violations, but there is no path information because the timing violations are not of type PERIOD".
    In the 'final timing (place and route)' report, the requested frequencies are all below the maximum frequencies and the compilation error message is only displayed at the very end on the 'summary' page.
    I tried to optimize my labview fpga vi with pipelining, but had no success.
    Can anybody offer some advice on how to debug fpga code with this error? Is this really a timing error or something else?
    Software:
    Labview 2011, fpga 2011, xilinx tools 12.4 sp1
    Hardware:
    NI PXIe-1071 Chassis
    NI PXIe-8108 Embedded controller
    NI PXIe-7965R FPGA FlexRIO FPGA module
    NI 5761 250 MS/s 14 bit Analog input digitizer
    The Xilinx log of the compilation run is attached.
    Also, this issue was already discussed in this thread ~6 months ago, but no satisfying answer was offered so far...
    Thanks,
    Fabrizio
    Attachments:
    xilinxlogc.txt ‏2313 KB

    Hi Kyle,
    the problem is: I have one computer which compiles the VI successfully and a second one which shows that error. Both use the same software setup (LV2011SP1+RT+FPGA from DS2012-01). Both use the same project file - atleast SVN shows no difference.
    - You can have one FPGA VI where one computer is compiling successful and a second one complains. (Btw. I have a SRQ running in Germany on this topic.)
    - More problems: After successful compiling on first computer and transferring all to second computer (using SVN, including the full project folder with all files like bitfiles, lvproj, and everything) the second computer is unable to start the RT executable due to error "FPGA VI needs to recompile". Solution so far: Call the FPGA-OpenReference with the bitfile instead of the VI (as I used to do until now)...
    - More problems: After modifying the FPGA-OpenReference to use the bitfile (on the 2nd computer) and transferring all the files back to the 1st computer (using SVN as before, including the whole project) the 1st computer complains: FPGA-OpenReference is creating a different reference than is used in the VI. So what happens here? On one computer my VI is ok, the reference is typed correctly. Transferring all the files to a different computer the VI isn't ok anymore due to changes of the reference??? You know: all files are the same: lvproj, FPGA bitfile didn't change, cRIO reference didn't change...
    All those problems didn't occur on my RT-FPGA projects in LV2010SP1. I'm not pleased...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • LabVIEW NXT toolkit and Vista

    Hi All,
    This is not a burning problem, but have folks tried out the NXT toolkit with Vista?  I've installed Vista Business Edition under our MSDNAA license on a development machine to start slogging through compatability issues with our current suite of software, and it appears the LabVIEW NXT toolkit may be an early casualty.
    The toolkit installs fine under Vista BusEd, but the NXT console application crashes when I try to run it from the LabVIEW IDE menu.
    Any thoughts/experiences with this?
    Best regards,
    -Bill  =]

    Hi Joel,
    Thanks for your reply.  The specifics of my development system are below:
    OS: Windows Vista Business
    Proc: Intel Pentium 4 CPU 2.80 GHZ
    RAM: 1014 MB
    Type: 32-bit OS
    I chose to use the Vista UPGRADE of WinXPsp2 rather than a wipe and clean install.  Before upgrading the OS I removed all previous versions of LabVIEW (7.1 and 8.0) and also removed the Mindstorms NXT-G system.
    After the OS upgrade to 32-bit VistaBusEd, I installed LabVIEW 8.20, then Mindstorms NXT-G, several LabVIEW Toolkits and finally the LabVIEW NXT Toolkit.
    When I try to load LabVIEW code that uses (for example) the sendDirectCommand.vi from the FantomSDK, I get the following block diagram error:
    "Call Library Function Node 'fantom.dll:nFANTOM100_iNXT_sendDirectCommand': function not found in library
    Details: The function name specified for this node cannot be found in the library.  Right-click the Call Library Function node and select Configure, then choose the correct function name.
    When I follow the Details procedure, I specify the exact location of the fantom.dll, select nFANTOM100_iNXT_sendDirectCommand from the Function name dropdown listbox, the Thread is set to Reentrant and the Calling convention is set to "C".........after closing the dialog I get:
    Error loading "C:\.....path.....\fantom.dll".
    A dynamic link library (DLL) initialization routine failed.
    Also, when I create a blank vi and drop a function from the LabVIEW NXT toolkit, such as NXTToolkit.DC.FindNXT.vi on the block diagram, I imediately get the following similar error:
    Error loading "fantom.dll".
    A dynamic line library (DLL) initialization routine failed.
    Does this help?
    Many thanks,
    -Bill  =]
    p.s. - BTW, the Minstorms NXT-G system works as expected under the 32-bit VistaBusEd using both USB and Bluetooth.....so I guess VistaBusEd is able to intialize and communicate through the fantom.dll when used by NXT-G.
    Message Edited by qswitch on 12-19-2006 08:36 AM

  • Labview does not compile my vi!

    Labview does not compile my vi. It says "could not compile vi, bad dsoffset, dso = -1".
    I was still wiring the vi and was able to compile it several times before this error appeared. It shows
    a broken run arrowa and when I click on it to see the list of errors it shows this message.
    Does not go away even if I restart labview.

    Hi, I already have had this problem a few times before. The wiring is correct but there is a sense-mistake in your programme. Check the use of your arrays, this is a problem I often have.
    If you need more help, you can also attache your VI.

  • Is it possible to take a labview application and compile it to run on an embedded processor?

    Hi
    I was wondering if anybody out there knows if it is possible to take a labVIEW application and compile it to run on an embedded processor (e.g. ARM7)?
    If so does anybody know what the required capability of the target processor is (i.e. RAM, ROM etc.) and what tools I need.
    Many thanks
    Ash

    Ash,
    There is also another option for processors like the ARM7.  You can load a PDA OS on it and use the LabVIEW PDA toolkit.  The LabVIEW PDA toolkit is MUCH easier to use and is quite a bit less expensive.  You will have the problem of getting the OS correctly configured, but in the long run, it may still be cheaper and easier.  I use it quite a bit with my Dell Axim X51v which has this processor and Windows Mobile 5.  There are still problems to work out, but not nearly what there are with LabVIEW Embedded.
    If you want to go the LabVIEW Embedded route and you need some help, let us know on this forum.  There are several of us that have experience and can help to guide you.
    Hope that this helps,
    Bob Young
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • 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

  • LABVIEW NXT LEGO firmware problem

    hi everybody
    i am trying to connect LEGO NXT mindstorm robot with labview, i installed the latest version of LABVIEW toolkit. but when i tried to connect the NXT it gives me this error which i dont understand why, because i have latest version of toolkit installed in my PC with LABVIEW 8.6, and the upgraded firmware in NXT i.e 1.05 . even though i tried with 1.04 and 1.02 but it is still giving me the same error(attached). some one has idea whats wrong on my side?
    thanks
    looking forward 
    Regards
    hussain.. 
    Solved!
    Go to Solution.
    Attachments:
    LEGO error.JPG ‏84 KB

     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.

  • Labview NXT 2013

    In the 2013 version of Labview for NXT some of the vi's such as Steering On no longer work with our NXT lego brick and motors.  In addtion the motor Drive Distance Vi that turns a motor a specified distance works unpredictably.  Are these Vis not working for anyone else?
    Finally, is there a way to calibrate the Polysensor when used for Light Sensing?  In a previous version of Labview there was a Calibrate Vi that could nicely be used to calibrate the light sensor for the old NXT_LightSensor vi .  This calibrate vi does not work with the Polysensor configured for use with the Light Sensor.  Without being able to calibrate the Polysensor the contrast is limited to output values of about 40 to 60 instead of 0 to 100.
    This semester my students were highly frustrated with the performance of the 2013 Labview for NXT vis.  As stated above several didn't work at all and some worked in highly unpredictable ways.  Are there bugs in the Labview for NXT 2013 module or is Labview for NXT now optimized for the EV3?  If this is the case will I have to replace all 46 of my NXT bricks with EV3's if I want to continue to program them with Labview?

    Assuming it is optimized for the EV3, which I would expect is a good guess, why would you need to upgrade anything?  The easiest fix would be to revert back to the software that was working well for you.  It'd also be the cheapest solution.

  • LabView Crashing and compile server error.

    Hi,
    I'm having some errors when I compile code for my FPGA (PXI-7831R). I am using LabView 8.2.1.
    Sometimes labView crashes completely and sometimes it comes up with a compile server error.
    My code contains 3 VI's. The first send sends digital output and reads digital input 10 times and then called another VI to save these results. The second VI repeats the first VI 10 times.
    When the first VI is compiled on its own it works (including the saving data VI which saves it to a FIFO) but when the second VI is compiled, that is when it errors.
    I have attached the compile server errors and the screen dumps of when labView crashes.
    Can anyone suggest what I am doing wrong?
    Thanks.

      ok. Let me try and make my problem a little clearer....
    I have now combined all the VI's into one.
    It is supposed to write to the digital output and read from the digital outputs 10times at a rate of 10us and store the data to the FIFO. This process is then repeated at a rate of 80ms for 8 times.
    I have attached a word document with an explanation on the error. 
    Attachments:
    lvlog07-26-07-12-04-50.txt ‏3 KB
    Problem Explaination.doc ‏61 KB
    f623_appcompat.txt ‏93 KB

  • LabVIEW FPGA: The compilation failed due to a xilinx error

    I'm getting a "Compilation failed due to Xilinx error" trying to compile code in LabVIEW 2013.The code had compilated successfully in labview2012. Any suggestions on what is causing this issue?
    Details:
    ERROR:HDLCompiler:432 - "C:\NIFPGA\jobs\THY4t7n_z6im2K7\NiFpgaAG_0000003a_SequenceFrame.vhd" Line 29: Formal <cparametersignal> has no actual or default value.
    INFO:HDLCompiler:1408 - "C:\NIFPGA\jobs\THY4t7n_z6im2K7\NiFpgaSetOutputDataEnable.vhd" Line 37. cparametersignal is declared here
    ERROR:HDLCompiler:854 - "C:\NIFPGA\jobs\THY4t7n_z6im2K7\NiFpgaAG_0000003a_SequenceFrame.vhd" Line 21: Unit <vhdl_labview> ignored due to previous errors.
    VHDL file C:\NIFPGA\jobs\THY4t7n_z6im2K7\NiFpgaAG_0000003a_SequenceFrame.vhd ignored due to errors
    -->
    Total memory usage is 204688 kilobytes
    Number of errors : 2 ( 0 filtered)
    Number of warnings : 4 ( 0 filtered)
    Number of infos : 0 ( 0 filtered)
    Process "Synthesize - XST" failed
    Compilation Time
    Date submitted: 2014/2/26 18:15
    Date results were retrieved: 2014/2/26 18:17
    Time waiting in queue: 00:06
    Time compiling: 02:02
    - PlanAhead: 01:16
    - Core Generator: 00:00
    - Synthesis - Xst: 00:35
    Solved!
    Go to Solution.

    I have got the same error, Have you solved this error?
    What you have done?
    jasonneu wrote:
    I'm getting a "Compilation failed due to Xilinx error" trying to compile code in LabVIEW 2013.The code had compilated successfully in labview2012. Any suggestions on what is causing this issue?
    Details:
    ERROR:HDLCompiler:432 - "C:\NIFPGA\jobs\THY4t7n_z6im2K7\NiFpgaAG_0000003a_SequenceFrame.vhd" Line 29: Formal <cparametersignal> has no actual or default value.
    INFO:HDLCompiler:1408 - "C:\NIFPGA\jobs\THY4t7n_z6im2K7\NiFpgaSetOutputDataEnable.vhd" Line 37. cparametersignal is declared here
    ERROR:HDLCompiler:854 - "C:\NIFPGA\jobs\THY4t7n_z6im2K7\NiFpgaAG_0000003a_SequenceFrame.vhd" Line 21: Unit <vhdl_labview> ignored due to previous errors.
    VHDL file C:\NIFPGA\jobs\THY4t7n_z6im2K7\NiFpgaAG_0000003a_SequenceFrame.vhd ignored due to errors
    -->
    Total memory usage is 204688 kilobytes
    Number of errors : 2 ( 0 filtered)
    Number of warnings : 4 ( 0 filtered)
    Number of infos : 0 ( 0 filtered)
    Process "Synthesize - XST" failed
    Compilation Time
    Date submitted: 2014/2/26 18:15
    Date results were retrieved: 2014/2/26 18:17
    Time waiting in queue: 00:06
    Time compiling: 02:02
    - PlanAhead: 01:16
    - Core Generator: 00:00
    - Synthesis - Xst: 00:35
    Mahran

  • Labview 2011 FPGA Compile Error

    Hi,
    I'm new to FPGA. I want to use Labview 2011 SP1 with the Spartan 3E starter kit from Xilinx (Spartan 3E driver available from NI labview website).
    I'm trying to work my way through the examples that came with the driver. I've run into the same compiler error with a number of the examples. The error is attached.
    Error 7 occurred at Read from Text File in niFpgaCompileWorker_CheckForErrors.vi->niFpgaCompileWorker_JobComplete.vi->niFpgaCompile_Worker.vi:1
    Possible reason(s):
    LabVIEW:  File not found. The file might have been moved or deleted, or the file path might be incorrectly formatted for the operating system. For example, use \ as path separators on Windows, : on Mac OS X, and / on Linux. Verify that the path is correct using the command prompt or file explorer.
    C:\NIFPGA\compilation\Shift_FPGATarget_Shift_87E8371C\Spartan3EStarter.bld
    I've checked the registry to ensure that the path to the compiler is correct.
    Any assistance would be welcome.
    Regards,
    James.
    Attachments:
    Labview2011_FPGA_CompileError.JPG ‏96 KB

    Hi,
    I don't have any Xilinx tools installed - other than the ones that installed with the Labview FPGA module.
    I have attached the compilation logs and output results from my attempt.
    I have renamed the extension on the following files from .lvtxt to .txt
    BuildResults.txt
    CodeGenerationResults.txt
    Regards,
    James
    Attachments:
    BuildResults.txt ‏5 KB
    XilinxLog.txt ‏42 KB

  • LabVIEW 2013 SP1 Compile Worker Fails

    Hello,
    after receiving the new DVDs with LabVIEW 2013 SP1 and successfull installation, I wanted to compile my FPGA.vi.
    The Compile Worker does not start an I get the attached error Message. The additional Download of Xilinx Compilation tools 14.4 from the NI Website does not help.
    When I choose the FPGA Compilation Tools via the Start menu, the Compile Worker does not start. When I try to start the FPGACompileServerConfiguration an Error occurs (see picture).
    At the Moment I hav not Idea what to do. Perhaps someone can help.
    What does I have to do to convert my system back to the Version 2013?
    Attachments:
    FehlermeldungCompileWorker.jpg ‏41 KB
    ErrorwhenstartingFPGACompileServerConfiguration.jpg ‏15 KB

    dfschunk,
    Thanks for your post. We are aware of an issue with the compile tools installed from the 2014 developer suite (2013 sp1) where the compile worker is installed with missing dependencies. We are taking immediate action to push out a fix for this and you will receive a notification through NI update service when the fix is available.
    In the meantime, our recommendation is to downgrade to the 2013 installation of the Xilinx tools. No fixes were made between 2013 and 2013 sp1 in the compile worker or in the Xilinx tools so no worries there.
    Go to Control Panel >> Programs and Features and select National Instruments Software. 
    This will launch a window where you have the option to select various NI software products and modify/repair/remove them.
    Select NI LabVIEW FPGA Xilinx 14.4 Tools and select Remove.
    After the software has been un-installed, go to the NI LabVIEW 2013 FPGA Module Xilinx Tools 14.4 donwloads page and install this version of the tools (released with 2013) or you may install the tools from your original LabVIEW 2013 developer suite disks.
    Please post back or call support if you have any problems with this process, we want to make sure you are up and running until we push out a fix.
    Nick C | Staff LabVIEW Platform Product Support Engineer | National Instruments

  • Interface between LabView Executables and compiled MATLAB code

    Query: Does anyone have experience of calling compiled MATLAB functions from a LabView Executable?

    Hello
    Well, I am using some applications as you ask. Some calculus was done in matlab, so, now, it is compiled as dll an front end and other calculatiosn are in Labview. matlab dll are registered as activex, and so are called from labview. Integration is so good, tha some old matlab application was changed to Labview and matlab dll.
    I must to state that I am not the integrator. My part is only Labview. So, should you have further questions, I can pass this thread to the integrator company. I do not promisse answers.
    But it runs fine.
    Cheers
    Alipio
    "Qod natura non dat, Salmantica non praestat"

  • 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!

Maybe you are looking for