Professional Documents
Culture Documents
Install Guide For RPi+LabVIEW+MakerHub
Install Guide For RPi+LabVIEW+MakerHub
Install Guide For RPi+LabVIEW+MakerHub
Date: 15/09/2016
Revision History
Rev Description of Change Author Active Date
Derek
Issue 1.0 First Draft 15/09/2016
Murray
Install Guide: RPi, LabVIEW and MakerHub
Contents
1 Introduction ............................................................................................................................... 3
1.1 Required Downloads ............................................................................................................... 3
1.2 Steps Covered in this Guide ..................................................................................................... 8
2 Set Up the RPi ............................................................................................................................ 9
3 Install LabVIEW 2014 Home Bundle .......................................................................................... 14
4 Install NI-VISA .......................................................................................................................... 32
5 Install Control and Design Simulation Module ........................................................................... 40
6 Install MathScript RT Module ................................................................................................... 48
7 Install JKI VIPM......................................................................................................................... 55
8 Install the MakerHub LINX Package ........................................................................................... 61
9 Configure the RPi to use LINX.................................................................................................... 71
10 Activating LabVIEW 2014 at a Later Date ................................................................................... 83
1 Introduction
This install guide outlines a step-by-step process for installing LabVIEW 2014 Home Bundle and the
LabVIEW MakerHub LINX package for use with the Raspberry Pi (RPi). The flow has been tested on an
RPi 3 Model B, but it should also work for an RPi 2 Model B; note that these are the only two RPi models
which are supported by the MakerHub package. The following points are also important to note in using
this guide:
1. The RPi is using a MicroSD card preloaded with NOOBs, as this is the quickest way to get up and
running. Raspian Jessie is the default RPi OS in the version of NOOBS used in the guide. If you're
not using NOOBS, you will likely have to carry out additional steps which are not covered in the
text.
2. The remote access client PuTTY will be used to interface with the RPi. If you have a
keyboard/mouse/monitor combination connected to the RPi, however, you do not need to use
PuTTY.
3. LabVIEW 2014 32-bit is the only LabVIEW version supported for RPi, and the very good value
Home Bundle is used in this guide. In the EU, this can be sourced here; in the US it can sourced
here. Note that you will generally only be buying an activation code; the software can be
downloaded as detailed in the next section. Alternatively, engineers who already have support
accounts with National Instruments may be able to source the Home Bundle via their usual
sales channels.
4. The guide assumes that you already have the License Code for LabVIEW 2014 Home Bundle
(obtained via the sources listed in the previous point). It is also permissible to install the
program for evaluation purposes (30-days), and purchase a license code at a later date. The
program can then be officially activated using the code.
5. The license for the Home Bundle also covers the use of the Control and Simulation module and
the MathScript module. Installation of these tools is covered in the guide.
6. The MakerHub LINX package is installed via the JKI VI Package Manager, which has become the
defacto standard for installing LabVIEW addons.
7. The host PC in the guide is running Win 7 64-bit. The install steps may be different for other
operating systems. As I understand it, Mac or Linux systems are not currently supported with
LabVIEW-LINX.
The following NI programs need to be downloaded, with specific details given below:
LabVIEW 2014 Home Bundle
NI-VISA
Control Design and Simulation Package
MathScript RT Module
To download LabVIEW 2014 Home Bundle, go to the MakerHub LabVIEW page, and click on
Download Now.
Figure 1.3. Go to the MakerHub LabVIEW page and click on Download Now
Log into your NI account if necessary and you should end up at the following dialog (figure 1.4). Save
to your desired location; note that the download can take some time depending on your network speed.
Scroll down further on the LabVIEW MakerHub page to find the NI-VISA package, as well as the
Control Design and Simulation Module, and the MathScript RT Module:
Finally, PuTTY should be downloaded if the user intends to communicate with the RPi remotely. (This
can be skipped if a keyboard/mouse/monitor combination is used with the RPi). The PuTTY download
page can be found here: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html.
Finally, a Desktop Shortcut can be used for easy access to the program.
Next, connect a LAN cable between your router or other access point to the RPi, and connect the
power cable:
The RPi will take about 30-60 seconds to boot up. Next, if accessing the Pi remotely, its IP address
must be found. The best method is to log in to your router using a specific IP address (e.g.
192.168.1.254, although this will be router-specific) and find a page or field where the IP addresses of
connected devices are given. In my case, I found the address of 192.168.1.15.
Run PuTTY, and enter the correct parameters as shown below for an SSH session (your IP address
may obviously be different). Click Open to start a session with the RPi.
Figure 2.4. Configure PuTTY for an SSH session with the RPi
Enter the login details (default = "pi") and password (default = "raspberry") to login to the RPi. Try a
simple command such as "ls" to verify that you are logged in.
You might also want to update the RPi system using the following commands (note that this can take
a LONG time, 30 minutes or more). You can skip this and come back to it at a later stage if desired.
sudo apt-get update
sudo apt-get dist-upgrade
As can be seen, the RPi in this case is running Raspbian Jessie by default. LabVIEW-LINX is compatible
with this OS and the RPi is ready for use. The PuTTY session can be ended by typing "exit" at the shell
prompt.
In the next section, LabVIEW will be installed on the user's PC.
Above, ensure that the option "When done unzipping open: \setup.exe" is checked, so that the
LabVIEW install procedure will start automatically.
Figure 3.7. Enter the serial number, or leave all fields blank for evaluation mode
When Windows restarts, the NI Update Service will run. Click on View Updates.
Figure 3.25. Accept the two license agreements and click Next
Figure 3.26. Again, accept the two license agreements and click Next
Figure 3.31. Click the Update button to update the NI Update Service
At this point, the LabVIEW Home bundle and all necessary updates are installed. NI LabVIEW 2014
SP1 should appear in the Windows Start menu, as shown below.
Figure 3.37. NI LabVIEW 2014 SP1 (32-bit) appears in the Start menu
4 Install NI-VISA
In this section NI-VISA will be installed. Start by double-clicking the downloaded software
(NIVISA1400full.exe) and unzipping it as in the previous section. The installer should start automatically.
When Windows restarts, the NI Update Service will run. Click on View Updates.
Figure 4.14. Accept the license agreement and click Next to install the update
At this point NI-VISA is installed. The Control and Design Simulation Module will be installed next.
Figure 5.2. Enter your name and LabVIEW 2014 Home Bundle serial number
Figure 5.9. Click Next to launch the Activation Wizard (unless installing in evaluation mode)
The Control Design and Simulation Module is now installed. Next, the MathScript RT module will be
installed.
Figure 6.2. Enter your name and LabVIEW 2014 Home Bundle serial number
Figure 6.8. Next to launch the Activation Wizard (unless installing in evaluation mode)
Figure 7.4. Select the install location (if necessary) and click Next
Figure 7.5. Choose whether to add a Desktop shortcut and click Install
Figure 7.8. When VIPM runs, it will download package links as shown
The package manager window will be empty if you don't have LabVIEW 2015 installed. At this point
you must switch the LabVIEW version to "2014".
Figure 7.10. The package windows populates correctly for LabVIEW 2014
The package window will populate correctly for LabVIEW 2014, as shown. For details on installing the
MakerHub package, go directly to the next section.
Figure 8.5. You may get a prompt to allow access for LabVIEW (you should allow it)
At this point, LabVIEW 2014 will probably be running in the background, and the following dialog
may appear:
Figure 8.10. You should now see the LabVIEW icon beside the installed packages
Other packages can now also be installed. Examples include Open G (see above).
To see that the MakerHub LINX package installed correctly, first run LabVIEW 2014 (restart if
necessary), and click in "File -> New VI".
On the block diagram, search through the functions and find the MakerHub palettes (LINX and
Toolbox).
Next the RPi must be configured to be allow it to run LabVIEW programs; this will be covered in the
next section.
Figure 9.2. Enter RPi IP address, username and password (default = raspberry), and click Connect
Figure 9.3. Click OK when the message "Successfully connected to the target" appears
Figure 9.4. The message "Target configuration updated" appears. Click "Target Info"
Figure 9.9. If the Enable UART option appears, choose whether to enable it or not.
Before running the code, connect an LED and 220ohm series resistor to pin 7 (see also Figure 9.20).
Click the Run arrow to download the code to the RPi.
Figure 9.18. Click Close when the code is fully downloaded. Optionally, also check "Close on successful completion"
Figure 9.20. The LED will light if everything is installed and deployed correctly
Use your code to activate the following modules under LabVIEW 2014 SP1:
Home Edition
Control Design and Simulation Module 2014
MathScript RT Module