National Instruments NI-Motion User Manual

Page 245

Advertising
background image

Chapter 14

Onboard Programs

© National Instruments Corporation

14-37

NI-Motion User Manual

Figure 14-22 shows the subroutine that causes the motor to rotate
counter clockwise.

Figure 14-22. Counter Clockwise Subroutine Using LabVIEW

1

Begin Program Storage

2

Set Operation Mode

3

Load Target Position

4

Load Velocity in RPM

5

Load Accel/Decel in RPS/sec

6

Start Motion

7

Select MOMO

8

Wait on Condition

9

End Program Storage

10 Motion Error Handler

1

10

9

2

3

4

6

7

5

8

Advertising