NI C/C++ Development Tools 2013 Win32Eng NI Real-TimeʵʱϵͳӲ¼þ±à³Ì¹¤¾ßEclipse2013
NI C/C++ Development Tools 2013 Win32Eng NI Real-TimeʵʱϵͳӲ¼þ±à³Ì¹¤¾ßEclipse2013C/C++ Development Tools
C/C++ Development ToolsÓÃÓÚ¶ÔÔËÐÐNI Linux Real-Time²Ù×÷ϵͳµÄNIÓ²¼þ½øÐбà³Ì¡£
C/C++ Development ToolsÊÇÒ»¿îʵÓóÌÐòÈí¼þ£¬°üÀ¨ÃæÏòC/C++¿ª·¢ÈËÔ±µÄC/C ++¹¤¾ßÁ´ºÍEclipse IDE 4.3.2¡£Èç¹ûNIÓ²¼þÔËÐеÄÊÇʹÓÃOpenEmbedded¿ª·¢µÄNI Linux Real-Time²Ù×÷ϵͳ£¬Ôò¿ÉʹÓøÃʵÓóÌÐò¶ÔÆä½øÐбà³Ì¡£C/C++ Development ToolsÀ¨ÓÃÓÚARMv7 LinuxµÄGNU C£¦C++±àÒëÆ÷ÒÔ¼°x64 Linux¡£
×¢²áÉ̱êLinuxµÄʹÓûñµÃÁËLinus TorvaldsרÊôÊÚȨÉÌLMIµÄÔÙÊÚȨ£¬Linus TorvaldsÓµÓÐLinux×¢²áÉ̱êÔÚÈ«Çò·¶Î§ÄÚµÄËùÓÐȨ¡£
WindowsϵͳÏ£¨LinuxºÍMACϵͳÏÂÇë×ÔÐÐÁ˽âÇå³þ£©NIµÄ¸÷ÖÖÈí¼þ¡¢Ä£¿é¡¢¹¤¾ß°ü¡¢Çý¶¯³ÌÐò£¬Ê¹ÓÃNIÐí¿ÉÖ¤¹ÜÀíÆ÷À´¼¤»îµÄ£¬¾ø´ó²¿·ÖµÄ¶¼¿ÉÒÔʹÓÃNI Lincense ActivatorÀ´¼¤»î£ºNIÐòÁкÅSerial NumberÉú³É¼¤»î¹¤¾ßNI License Activator£¬LabVIEW/VBAI/VDM/VASµÈÈí¼þÄ£¿é¹¤¾ß°üÆƽ⹤¾ß²»ÏÞ°æ±¾http://visionbbs.com/thread-490-1-1.html
ÊÓ¾õÂÛ̳µÄ¸÷ÖÖNI×ÊÔ´£¬³ýÁËÊÓ¾õÏà¹ØµÄÄ£¿éÓÐʹÓÃÍ⣬´ó²¿·ÖµÄ¶¼²»»áʹÓ㬽öÌṩ×ÊÔ´²»Ìṩ¼¼ÊõÖ§³Ö¡£×ÊÔ´µÄÏÂÔصØÖ·Ò»°ã»áͬʱÌṩNI¹Ù·½ºÍ°Ù¶ÈÍøÅ̵ĵØÖ·¡£Ä³Ð©¹¤¾ß°üNIµØַʧЧ»òûÓÐNIµØÖ·£¬Ö»ÄÜʹÓðٶÈÍøÅ̵ØÖ·£»Èç¹û°Ù¶ÈÍøÅ̵ØַʧЧ¹ýÆÚ£¬¿ÉÁªÏµÂÛ̳¿Í·þ¸üС£NIµÄ·þÎñÆ÷ÔÚÃÀ¹ú£¬ÓÐʱºòËٶȺÜÂý»òÏÂÔØÈÝÒ׳ö´í£¬ÕâÑù»áÔì³É°²×°Ê±¸÷ÖÖ´íÎó¶øÎÞ·¨°²×°¡£½¨ÒéÔÚÏÂÔØÍê³Éºó£¬¶ÔÏÂÔØ×ÊÔ´×öУÑéºÍ(NIÒ»°ã»áÌṩMD5»òSHA256µÈ)ÑéÖ¤£¬Óë¹Ù·½»òÊÓ¾õÂÛ̳ÌṩµÄУÑéºÍ¶Ô±È£¬Ò»Ö¾ͿÉÒÔ°²×°£»Èç²»Ò»Ö£¬ÔòÐèÒªÖØÐÂÏÂÔØ¡£ÊÓ¾õÂÛ̳ÔçÆÚÏÂÔØÉÏ´«µÄ×ÊÔ´£¬»ù±¾É϶¼ÊÇÕý³£ÏÂÔصÄ×ÊÔ´£»2019ºóÏÂÔصÄ×ÊÔ´£¬¶¼ÓëNIµÄÕýȷУÑéºÍ¶Ô±È¹ý£¬±£Ö¤ÊÇÕýÈ·µÄ×ÊÔ´²ÅÉÏ´«µ½°Ù¶ÈÍøÅÌ¡£Ð£ÑéºÍ¹¤¾ßÏÂÔصØÖ·£ºÎļþHash¼ÆËãÆ÷FHash£¬ÎļþУÑéºÍÑéÖ¤ÏÂÔØÎļþÕýÈ·ÐÔÑéÖ¤£¬MD5Öµ¼ÆËã¡¢SHA1Öµ¼ÆËã¡¢SHA256Öµ¼ÆËã¡¢CRC32Öµ¼ÆËãhttp://visionbbs.com/thread-26524-1-1.html
NI C/C++ Development Tools 2013
·¢²¼ÈÕÆÚ£º2013/8/6
°üº¬µÄ°æ±¾£º2013ÍêÕû°æ
ÊÜÖ§³ÖµÄ²Ù×÷ϵͳ
Windows Server 2008 R2 64-bit
Windows 8.1
Windows Server 2003 R2 32-bit
Windows XP 32-bit
Windows 8
Windows 7
English
Ó¦ÓóÌÐòλÊý£º32λ
УÑéºÍ£º
Îļþ´óС: 366027552 ×Ö½Ú (349.07 MB)
ÐÞ¸ÄÈÕÆÚ: 2022-03-25 23:55
MD5: 86084553d0817cec88de24d5a308d32e
SHA1: b8b98497c774ec358bc99248ca3f33bcb3d55096
SHA256: a51337e4e08a5a83642bfac41ca4dedd8fdfb3388a7ed0f03de695b53735c8f4
CRC32: a602b537
°Ù¶ÈÍøÅ̺ÍNI¹Ù·½ÏÂÔصØÖ·£º
Çë×¢²áµÇ¼ÊÓ¾õÂÛ̳Õ˺ţ¬¹ºÂò¸½¼þ²é¿´ÏÂÔصØÖ·
Getting Started with C/C++ Development Tools for NI Linux Real-Time, Eclipse EditionThis tutorial outlines how to create C/C++ projects using C/C++ Development Tools for NI Linux Real-Time, Eclipse Edition, build an executable from your project source code, and run and debug the executable on your NI Linux Real-Time target.
Table of ContentsInstallation
Configuring C/C++ Development Tools for NI Linux Real-Time, Eclipse Edition, for First Use
Creating a C/C++ Project
Creating a Build of a C/C++ Project
Configuring a Remote System
Running a C/C++ Executable on Your NI Linux Real-Time Target
Debugging a C/C++ Project
Important Information
Installation
[*]Install Java (Java SE 6 or greater is recommended), which you can download at http://www.java.com/getjava.
[*]Install C/C++ Development Tools for NI Linux Real-Time, Eclipse Edition.
Back to TopConfiguring C/C++ Development Tools for NI Linux Real-Time, Eclipse Edition, for First UseComplete the following steps to configure C/C++ Development Tools for NI Linux Real-Time, Eclipse Edition, for first use:
[*]Launch C/C++ Development Tools for NI Linux Real-Time, Eclipse Edition.
[*]When prompted, select a folder in which to store Eclipse projects and click OK.
¡ñTipEnable Use this as the default and do not ask again to save a project folder as your default workspace.
[*]In the Eclipse welcome screen, select the Workbench icon on the far right to open the workbench view.
[*]C/C++ Development Tools for NI Linux Real-Time, Eclipse Edition, highlights the active perspective on the perspectives bar, as shown in the following image. The first time you use C/C++ Development Tools for NI Linux Real-Time, Eclipse Edition, the workbench view opens in the C/C++ perspective.
In the next section of this tutorial, you create a new project in the C/C++ perspective.
Back to TopCreating a C/C++ ProjectComplete the following steps to create a C or C++ project in C/C++ Development Tools for NI Linux Real-Time, Eclipse Edition:
[*]Switch to the C/C++ perspective.
[*]Select File»New»Project to open the New Project Wizard.
[*]Expand the C/C++ folder and select C Project or C++ Project depending on the programming language you wish to use.
[*]Click Next to open the C Project page.
[*]Enter a project name in the Project name text box.
[*]Select the Hello World ANSI Project under the Executable folder in the Project type listbox.
¡ñNoteThis tutorial uses the Hello Word ANSI Project for instructional purposes. You can select any project type that fits your needs.
[*]Select Cross GCC in the Toolchains listbox to enable cross-compilation, which configures the compiler to create executable code for embedded systems, such as your NI Linux Real-Time target.
[*]Click Next to open the Basic Settings page.
[*]Enter the basic properties of your project in the Author, Copyright notice, Hello world greeting, and Source text boxes.
¡ñNoteThe Source text box specifies the directory on your development computer hard drive used to store the project source code.
[*]Click Next to open the Select Configurations page.
[*]Enable Debug to configure the project to allow debugging your executable, and/or enable Release to configure the project to allow building a smaller, faster executable optimized for release.
¡ñNoteFor purposes of this tutorial, ensure you enable Debug.
[*]Click Next to open the Cross GCC Command page.
[*]In the Cross compiler prefix text box, enter arm-none-linux-gnueabi-, including the hyphen (-) at the end, to specify the correct compiler for NI Linux Real-Time targets.
[*]In the Cross compiler path text box, browse to the location of the \<National Instruments>\Eclipse\toolchain\gcc-4.4-arm\i386\bin directory to specify the location of the compiler.
[*]Click Finish to create your project and return to the workbench view.
In the next section of this tutorial, you create an executable build of your project to enable it to run.
Back to TopCreating a Build of a C/C++ ProjectBefore you can run your project, you need to test that your source code compiles by creating an executable build of your project. Complete the following steps to create an executable build of a C/C++ project:
[*]Switch to the C/C++ perspective.
[*]Modify the template source code if you want to adapt the template to your application needs, or enter C/C++ code if you selected a blank project. For purposes of this tutorial, you do not need to make changes to the Hello Word ANSI Project source code.
[*]Right-click your project in the Project Explorer tab and select Properties.
[*]Select C/C++ Build in the left pane of the Properties dialog box.
[*]Select Internal builder from the Builder type pull-down menu for the Debug configuration. Selecting the internal builder uses C/C++ Development Tools for NI Linux Real-Time, Eclipse Edition (instead of an external build file) to build the executable.
¡ñNoteFor purposes of this tutorial, you work only with the Debug configuration, but this section also applies to the Release configuration.
[*]Click Apply and then OK to close the Properties dialog box.
[*]Select Project»Build Project in the workbench view to create an executable of your project.
[*]The Console tab displays Build Finished if the build completes successfully, as shown in the following image.
In the next section of this tutorial, you prepare to run the executable on your NI Linux Real-Time target by adding your target to the project.
Back to TopConfiguring a Remote SystemBefore you can run the executable you created in the previous section on your NI Linux Real-Time target, you need to add your target to the project. Complete the following steps to configure your target as a remote system in C/C++ Development Tools for NI Linux Real-Time, Eclipse Edition:
[*]Select Window»Open Perspective»Other to open the Open Perspective dialog box.
[*]Select Remote System Explorer.
[*]Click OK to add the Remote System Explorer perspective to the workbench.
[*]Click the Define a connection to remote system button, circled in the following image, to open the New Connection wizard.
[*]Select SSH Only under the General folder.
¡ñNoteYou also can select Linux as the remote system type, but since connecting to NI Linux Real-Time targets requires SSH, selecting SSH Only shortens the number of configuration steps by pre-selecting SSH options.
[*]Click Next to open the Remote SSH Only System Connection page.
[*]Select a profile to contain the remote system connection from the Parent profile pull-down menu. For information about profiles, refer to the Remote System Explorer Profiles topic of the C/C++ Development Tools for NI Linux Real-Time, Eclipse Edition Help, available by selecting Help»Help Contents from the workbench view.
[*]Enter the hostname or IP address of your NI Linux Real-Time target in the Host name text box.
¡ñTipYou can use Measurement and Automation Explorer (MAX) to identify your target's hostname and IP address.
[*](Optional) Enter a description or change the connection name in the Description and Connection name text boxes to help you identify your target when it appears in the Remote System Explorer perspective.
[*]Click Finish.
[*]Your target displays in the Remote Systems tab in the Remote System Explorer perspective, as shown in the following image.
[*]Expand the Sftp Files folder under your target to explore the files on your target.
[*]When prompted, enter the user name and password assigned to your target and click OK. The default user name is admin and the default password is a blank password.
¡ñNoteNational Instruments recommends you set a password for improved security. For information on setting a password, refer to the Logging in to your System topic of the Measurement & Automation Explorer Help, available by selecting Help»MAX Help from MAX.
With a successful logon, you establish an SSH connection to your target and enable transferring files to it. In the next section of this tutorial, you copy and run a C/C++ executable on your target.
Back to TopRunning a C/C++ Executable on Your NI Linux Real-Time TargetAt this point in the tutorial, your project contains a target and an executable. Complete the following steps to run your C/C++ executable on your target:
[*]Select Run»Run Configurations to open the Run Configurations dialog box.
[*]Select C/C++ Remote Application in the left pane.
[*]Click the New launch configuration button, circled in the following image, to specify settings for running an executable on your target.
[*]Select your target from the Connection pull-down menu.
[*]Click the Browse button beside the Remote Absolute File Path for C/C++ Applications text box to open the Select Remote C/C++ Application File dialog box.
[*]Right-click the My Home directory in the listbox and select New»Folder to create a folder on the target in which to place a copy of the executable.
[*]Enter a name for the folder you created in the previous step in the New folder name text box.
[*]Click Finish to return to the Run Configuration dialog box.
[*]Append your project name (or whatever name you wish to assign to the executable) to the file path populated in the Remote Absolute File Path for C/C++ Applications text box.
¡ñNoteThis text box specifies the file path (including the executable name) on your target where the compiler copies the executable. In this example, the file path reads /home/admin/ProjectFolder/MyProjectName, where MyProjectName defines the executable name, as shown in the following image.
[*]Click Apply and then Run to copy and run the executable on your target.
[*]The program execution displays in the Console tab, as shown in the following image.
In the next section of this tutorial, you explore the debugging functionality available in C/C++ Development Tools for NI Linux Real-Time, Eclipse Edition.
Back to TopDebugging a C/C++ ProjectC/C++ Development Tools for NI Linux Real-Time, Eclipse Edition offers functionality for debugging your project. Complete the following steps to debug a C/C++ project in C/C++ Development Tools for NI Linux Real-Time, Eclipse Edition:
[*]Select Run»Debug Configurations to open the Debug Configurations dialog box.
[*]Select the Debugger tab.
[*]Click the Browse button beside the GDB debugger text box.
[*]Select arm-none-linux-gnueabi-gdb.exe in the <National Instruments>\Eclipse\toolchain\gcc-4.4-arm\i386\bin directory to specify the correct debugger for NI Linux Real-Time targets.
[*]Click Open.
[*]Click Apply and then Debug to start debugging the project.
[*]Click Yes when C/C++ Development Tools for NI Linux Real-Time, Eclipse Edition, prompts you to switch perspectives.
Exploring the Debug Perspective
[*]The Debug tab in the upper left displays the call stack of each running thread.
[*]The Variables tab in the upper right lists C/C++ variables in your source code.
[*]The project tab in the center left displays source code and highlights lines as they execute.
¡ñTipYou can hover your cursor over the source code to display detailed information about a function or variable.
[*]To add a breakpoint, highlight a line of code and select Run»Toggle Breakpoint. A breakpoint suspends the execution of a program at the location where the breakpoint is set.
Exploring the Debug Toolbar
The Debug toolbar includes the following buttons:
¡ñInstruction Stepping ModeEnables instruction stepping mode to examine a program as it steps into disassembled code.
¡ñDrop to FrameRe-enters the selected stack frame in the Debug view.
¡ñUse Step FiltersEnables step filters in the Debug view.
¡ñStep ReturnContinues execution to the end of the current routine, then follows execution to the caller of the routine.
¡ñStep OverExecutes the current line, following execution inside a routine.
¡ñStep IntoExecutes the current line, including any routines, and proceeds to the next statement.
¡ñResumeResumes execution of the currently suspended debug target.
¡ñSuspendHalts execution of the currently selected thread in a debug target.
¡ñTerminateEnds the selected debug session and/or process.
¡ñDisconnectDetaches the debugger from the selected process.
Back to TopImportant InformationCopyright
©2013 National Instruments. All rights reserved.
Under the copyright laws, this publication may not be reproduced or transmitted in any form, electronic or mechanical, including photocopying, recording, storing in an information retrieval system, or translating, in whole or in part, without the prior written consent of National Instruments Corporation.
National Instruments respects the intellectual property of others, and we ask our users to do the same. NI software is protected by copyright and other intellectual property laws. Where NI software may be used to reproduce software or other materials belonging to others, you may use NI software only to reproduce materials that you may reproduce in accordance with the terms of any applicable license or other legal restriction.
End-User License Agreements and Third-Party Legal Notices
You can find end-user license agreements (EULAs) and third-party legal notices in the following locations:
[*]Notices are located in the <National Instruments>\_Legal Information and <National Instruments> directories.
[*]EULAs are located in the <National Instruments>\Shared\MDF\Legal\license directory.
[*]Review <National Instruments>\_Legal Information.txt for information on including legal information in installers built with NI products.
Trademarks
Refer to the NI Trademarks and Logo Guidelines at ni.com/trademarks for information on National Instruments trademarks. Other product and company names mentioned herein are trademarks or trade names of their respective companies.
The registered trademark Linux® is used pursuant to a sublicense from LMI, the exclusive licensee of Linus Torvalds, owner of the mark on a world-wide basis.
Eclipse is a trademark of Eclipse Foundation, Inc.
Patents
For patents covering the National Instruments products/technology, refer to the appropriate location: Help»Patents in your software, the patents.txt file on your media, or the National Instruments Patent Notice at ni.com/patents.
Ò³:
[1]