Controlling a Motor from LabVIEW
[
26
]
We already saw in the previous chapter that there are two main views in LabVIEW:
Front Panel
and
Block Diagram
. In your new blank VI, these two views will be
empty. We will rst take care of
Block Diagram
, where we will add the elements to control the Arduino board.Note that we will directly learn about LabVIEW and Arduino by building our
rst project.
If
you want to learn more about the LabVIEW software rst, you can visit this link:
http://www.ni.com/getting-started/labview-basics/
To learn the
basics of Arduino rst, the best option is to explore the ofcial
Arduino website:
http://arduino.cc
The rst thing we will place on the blank VI is a While Loop that you can just
drag-and-drop from the
Functions
menu (which you can call at any moment with
a right-click). The While Loop can be found in the
Structures
submenu. This loop is required for any Arduino board you want to control via LINX, and all the Arduino commands will need to be placed inside this loop.This is how it will look on your VI