Eclipse Setup Guide EN

User Manual:

Open the PDF directly: View PDF PDF.
Page Count: 11

DownloadEclipse Setup Guide EN
Open PDF In BrowserView PDF
Page 1 sur 11

I.

Necessary files

Eclipse
http://www.ni.com/download/labview-real-time-module-2014/4846/en/

C Support for myRIO
http://www.ni.com/download/labview-myrio-toolkit-2018/7583/en/

NiRIO Drivers
http://www.ni.com/download/compactrio-device-drivers-january-2019/7833/en/

Java
https://www.java.com/fr/download/

Université Claude Bernard | 2019
VASA Kristjan | VIALLET Engueran

2 / 11

II.

Configuration of myRIO

Install « NiRIO Driver » leaving the default installation options. Restart the
computer when asked after the installation finishes.
When the installation is complete, connect your myRio to your computer.
The window below should appear.

Choose « Launch the Getting Started Wizard » and follow the
instructions. The firmware will be flashed and updated on your
myRIO.
When the installation is finished, launch «
should be on the start menu).

NI MAX » (a shortcut

Expand « Remote systems » and wait until myRIO is detected.
Select it, then check « Enable Secure Shell Server (sshd) » then
«
Save ».
Close NI Max and myRIO USB Monitor.

Université Claude Bernard | 2019
VASA Kristjan | VIALLET Engueran

3 / 11

III.

Installation

Install Java then Eclipse.
After installing, launch Eclipse (Start/National Instruments/C &
C++ Development Tools for NI Linux Real-Time 2014, Eclipse
Edition).
Close the « Welcome » window so you can access your project.
Create a new

C/C++project, and name it, for example, « APIForRIO ».

Choose « Empty Project » and « Cross GCC ». Click « Next » two times.
Cross compiler prefix
Cross compiler path
(On a x64 computer)

arm-nilrt-linux-gnueabiC:\Program Files (x86)\National
Instruments\Eclipse\14.0\arm\sysroots\i686-nilrtsdkmingw32\usr\bin\armv7a-vfp-neon-nilrt-linux-gnueabi
On your project create a folder named « src »; inside it create a file named «
main.cpp » and
lastly create another folder named «
CAPI » (so its path will be APIForRIO/src/CAPI).
Extract « C_Support_for_myRIO_v6.0 » in a different directory.
Copy the files from « …/C Support/source/ » in the folder that you just created (CAPI).
Right click «
workspace.

CAPI », then «

Refresh » to update the modifications that you just did to your

Right click on the name of the project, then « Properties ».
In « C/C++ Build » option, choose « Internal builder » instead of « External builder ».

Expand « C/C++ Build » then click on « Settings ».
•
In «

In the «

Cross GCC Compiler » section

Symbols → Defined symbols (-D) »: Add a new symbol named « MyRio_1900 ».
•

In the «

Miscellaneous » sections

In the field « Other flags », add « -mfpu=vfpv3 -mfloat-abi=softfp » for more precision with floating
numbers.
Other flags

-c -fmessage-length=0 -mfpu=vfpv3 -mfloat-abi=softfp

Université Claude Bernard | 2019
VASA Kristjan | VIALLET Engueran

4 / 11

•
In «

In the «

Cross G++ Compiler » section

Preprocessor »: add a symbol named « MyRio_1900 ».

•

In the «

Miscellaneous » section

In the field « Other flags », add « -mfpu=vfpv3 -mfloat-abi=softfp » for more precision with floating
numbers.
Other flags
•

In the «

-c -fmessage-length=0 -mfpu=vfpv3 -mfloat-abi=softfp
Cross G++ Linker /

Libraries» section

Add the following libraries and path of libraries:
Libraries

Library search path

dl
visa
pthread
"${workspace_loc:/${ProjName}/src/CAPI}"
Make sure that your window
matches this window and validate
the new properties by clicking OK.

Université Claude Bernard | 2019
VASA Kristjan | VIALLET Engueran

5 / 11

IV.

Connection to myRIO

On Eclipse, choose «

Choose «

Remote System Explorer »

Define a connection to remote system »

Click on «
SSH Only », then fill the fields « Host name » and « Connection name » with
« 172.22.11.2 » and « myRIO » respectively.

Then, click on « Next », « Next », « Next » then « Finish ».
A new connection appeared. Expand it, open «

Sftp Files » then «

Root ».

A window will pop up and ask for the user’s name and password: enter
« admin » as a user name and leave the field of the password empty.
Then confirm.
Go to «
/var/local/natinst » and create a new folder named
« bitfiles ». Right click on this folder, then « Export from project… »
Go to the left window, into the « CAPI » folder. Check on the right window
«
NiFpga_MyRio1900Fpga60.lvbitx » then click « Finish ».

Université Claude Bernard | 2019
VASA Kristjan | VIALLET Engueran

6 / 11

MyRIO is now configurated to support interactions on C/C++ language.
To return to your project, click «

C/C++ » on the top right side.

Université Claude Bernard | 2019
VASA Kristjan | VIALLET Engueran

7 / 11

V.

Configuration of the uploading

Right click on the project on Eclipse, then « Run As », then « Run configurations… »

Rright click on « Remote Application », then click on «

New».

Name your configuration, choose the connection (myRIO previously connected), the project
(APIForRIO), the path of the application to send and the path of the distant implantation. Verify the
concordance with the following screenshot:

Université Claude Bernard | 2019
VASA Kristjan | VIALLET Engueran

8 / 11

VI.

Functional check

In the «
main.cpp » file, #include « CAPI/MyRIO.h » then click on the name that you gave to your
configuration, in our case «
Run on myRIO ».

If the configuration is correct, the console should give the output of myRIO.

To verify the good functioning of the registers, here is a little program to turn on the LEDs of myRIO:

Université Claude Bernard | 2019
VASA Kristjan | VIALLET Engueran

9 / 11

Université Claude Bernard | 2019
VASA Kristjan | VIALLET Engueran

10 / 11

VII.

Useful links to go further
•

Default FPGA personalities

http://zone.ni.com/reference/en-XX/help/373925B-01/myriohelp/myrio_fpga_personalities/
Documentation (associated registers…):
http://www.ni.com/product-documentation/14655/en/

•

Extension board documentation

https://learn.ni.com/teach/resources/808/robot-builder-s-guide-pitsco-tetrix-prime-for-ni-myrio
Used ports descriptions (motors, gyroscope…) from page 38 to page 44.

Université Claude Bernard | 2019
VASA Kristjan | VIALLET Engueran

11 / 11



Source Exif Data:
File Type                       : PDF
File Type Extension             : pdf
MIME Type                       : application/pdf
PDF Version                     : 1.7
Linearized                      : No
Page Count                      : 11
Language                        : fr-FR
Tagged PDF                      : Yes
XMP Toolkit                     : 3.1-701
Producer                        : Microsoft® Word pour Office 365
Creator                         : Engueran Viallet
Creator Tool                    : Microsoft® Word pour Office 365
Create Date                     : 2019:03:13 13:57:52+01:00
Modify Date                     : 2019:03:13 13:57:52+01:00
Document ID                     : uuid:0C45DB50-34F3-4BAF-BC46-32CA71C1CD5A
Instance ID                     : uuid:0C45DB50-34F3-4BAF-BC46-32CA71C1CD5A
Author                          : Engueran Viallet
EXIF Metadata provided by EXIF.tools

Navigation menu