Labview Code - National Instruments NI-Motion User Manual

Motion control
Table of Contents

Advertisement

Chapter 14
Onboard Programs

LabVIEW Code

1
1 Load Constant to Variable
2 Load Constant to Variable
3 Begin Program Storage
4 Set Operation Mode
5 Load Velocity
NI-Motion User Manual
This example moves axis 1 between target positions of 5000 and –5000.
The host reads the target position only after the move has completed, and
the new target position has been calculated. Figure 14-17 shows the code
that runs as an onboard program.
3
4
5
2
6 Insert Program Label
7 Load Target Position
8 Start Motion
9 Select MOMO
10 Wait on Condition
Figure 14-17. Synchronization Onboard Code in LabVIEW
9
6
7
8
10
11 Multiply Variables
12 Set User Status MOMO
13 Jump to Label on Condition
14 End Program Storage
15 Motion Error Handler
14-28
13
11
12
14
15
ni.com

Advertisement

Table of Contents
loading

Table of Contents