National Instruments NI-Motion User Manual page 235

Motion control
Table of Contents

Advertisement

Chapter 14
Onboard Programs
I/O register for
sending commands
and reading data
Read move complete
status function execute
from within host application
Figure 14-15. Synchronizing Host Applications with Onboard Programs
For example, consider a host application that reads an onboard variable
that has been updated by an onboard program. Use the algorithm in
Figure 14-16 to synchronize the host application with an onboard program,
and read an onboard variable that has been updated by an onboard program.
Host Application
Onboard Program
Poll the MCS waiting for
Update the variable
bit 13 to be set high
on the device
Read the onboard variable
Set Bit 13 on MCS
Continue execution
Reset bit 13 to 0
of the next function
Figure 14-16. Synchronization Algorithm
© National Instruments Corporation
14-27
NI-Motion User Manual

Advertisement

Table of Contents
loading

Table of Contents