Synchronizing Host Applications with Onboard Programs

NI-Motion

Synchronizing Host Applications with Onboard Programs

Note  This section applies only to NI 73xx motion controllers.

The host and the onboard program can write to the move complete status (MCS) register using the Set User Status MOMO VI or function. This VI or function controls the upper three bits in the MCS register using the MustOn/MustOff (MOMO) protocol.

Use these bits to synchronize an application running on the host computer with an onboard program, as shown in the following figure.

For example, consider a host application that reads an onboard variable that has been updated by an onboard program. Use the following algorithm to synchronize the host application with an onboard program, and read an onboard variable that has been updated by an onboard program.

Synchronizing Host Applications with Onboard Programs Algorithm

The following figure shows an algorithm for using an onboard program to synchronize host applications applicable to both C/C++ and LabVIEW code.