Writing Onboard Programs - National Instruments NI-Motion User Manual

Motion control
Table of Contents

Advertisement

Note
If you continuously poll data from the host, the onboard program gets preempted and
has less time to run. To keep this from happening, insert a small delay in the polling loops
on the host. Refer to the
Moves, for information about programming delays in the loops.

Writing Onboard Programs

This section and the sections that follow it apply only to the NI 73xx motion
Note
controllers.
© National Instruments Corporation
I/O reaction
Host communications
pre-emptive tasks
2 ms time-sliced tasks
Figure 14-1. Onboard Program Priority
Timing Loops
Almost all NI-Motion functions that execute on the host can run onboard.
You can store up to 32 onboard programs on the motion controller. These
onboard programs remain on the motion controller until you reset it. If you
want the onboard programs to persist through a reset of the motion
controller, save them to FLASH, as shown in Figure 14-2.
section of Chapter 4,
14-3
Chapter 14
Onboard Programs
What You Need to Know about
NI-Motion User Manual

Advertisement

Table of Contents
loading

Table of Contents