
30
|
ni.com
|
Getting Started with NI 9512 and P7000 Drives
Creating a Project in La
b
VIEW 2011 SP1 or Earlier
1.
Launch LabVIEW.
2.
Select
File»New Project
or
Project»New Project
to display the
Create Project
dialog
box. You can also click the
Empty Project
link on the Getting Started window.
3.
Select
Help
and make sure that
Show Context Help
is checked. You can refer to the
context help throughout the tutorial for information about items on the block diagram.
Step 5: Add Resources to the Project
1.
Right-click the top-level project item in the
Project Explorer
window and select
New»
Targets and Devices
from the shortcut menu to display the
Add Targets and Devices
dialog box.
2.
Make sure that the
Existing target or device
radio button is selected.
Tip
If you do not have hardware installed, you can select the
New target or device
radio button to display a list of targets and devices that you can create without a
physical target or device present. Throughout this tutorial, you can perform similar
offline configuration steps to follow along and learn about using the NI SoftMotion
Module and LabVIEW.
3.
Expand
Real-Time CompactRIO
.
4.
Select the CompactRIO controller to add to the project and click
OK
.
5.
If you have LabVIEW FPGA installed, the
Select Programming Mode
dialog box
appears. Select
Scan Interface
to put the system into Scan Interface mode.
Tip
Use the
CompactRIO Chassis Properties
dialog box to change the
programming mode in an existing project. Right-click the CompactRIO chassis in the
Project Explorer
window and select
Properties
from the shortcut menu to display
this dialog box.
6.
Click
Discover
in the
Discover C Series Modules?
dialog box if it appears.
7.
Click
Continue
. LabVIEW adds the controller, the chassis, and all the modules to the
project.
Note
If you are using an NI 9144 chassis, refer to
Adding the EtherCAT Master
Device To the LabVIEW Project
in the
Getting Started with NI 951x C Series
Modules and LabVIEW
for instructions about adding the EtherCAT master device
and detecting the C Series modules.
8.
Right-click the target in the
Project Explorer
window and select
New»NI SoftMotion
Axis
from the shortcut menu to open the
Axis Manager
dialog box, shown in Figure 19.
9.
Click
Add New Axis
. The NI 9512 module is automatically bound to the NI SoftMotion
axes. You can double-click the axis name to rename the axis and give it a descriptive name,
but you cannot use the same name for two different axes.