Algorithm - National Instruments NI-Motion User Manual

Motion control
Table of Contents

Advertisement

Algorithm

© National Instruments Corporation
No
Figure 14-8. Updating Velocity Based on ADC Channel Algorithm
Before you execute this program, set the operation mode of the axis to
velocity mode.
14-15
Chapter 14
Begin store
Put motion controller in store mode
Set a label
Read ADC
Read the analog channel, and
save value to an onboard variable
Get velocity value
Multiply ADC value by a
scale factor to calculate velocity
Check if value needs
to be updated
Update if last value is
different from current value
Jump to label
Jump to label if no update
required. Else continue.
Yes
Load velocity
Update the loaded velocity
with the new velocity
Start move
Jump to label
End store
End the store mode
Onboard Programs
NI-Motion User Manual

Advertisement

Table of Contents
loading

Table of Contents