by DC from as low as 6V up to 16V.
It comes with a USB cable and a port
for communicating and programming by a
host PC. It has a USB host port that can
also support a USB memory device, which
is handy for data logging applications. It
has a Wi-Fi interface for wireless control
and communication, and the unit has an
internal three-axis accelerometer as well.
The LabVIEW software that this article
will demonstrate is LabVIEW 2015 running
on a Windows 8 PC. It will probably be
best to see how LabVIEW works through a
demonstration. Before attempting the
following demonstration program, it is
assumed that the user has installed NI
LabVIEW 2015 and has connected the
MyRIO unit to the host PC through the
USB cable. When this is done, NI software
will automatically detect the presence of the MyRIO unit
and make sure that the proper software is downloaded
and installed into the unit. The NI programs will also give
the user a chance to test the pushbutton, LEDs, and
accelerometer, so you can be sure everything is working
correctly before you build your own program.
This first demonstration program will be as simple as
possible and not use any external connections. The
program will simply light up one of the four built-in LEDs
when the user pushbutton (BUTTON0) is pressed. It’s
located on the bottom side of the unit.
LabVIEW can be launched either from a Windows
menu or — each time the MyRIO is plugged into a USB
user five options. Select the second option: Go to
LabVIEW 2015 (Figure 3). After launching LabVIEW, you
will see what’s shown in Figure 4. From here, select
Create Project. You should now see the window shown in
Figure 5. Next, select myRIO > myRIO Project and you
will see the window in Figure 6, and then finally check
out the project view window in Figure 7.
This project has a program ready to run called
Main.vi; expand the + next to the NI-myRIO-1900.
Double-click on Main.vi and you should see the front
panel shown in Figure 8.
From this front panel window, select Window > Show
42 December 2016