Writing Onboard Programs

NI-Motion

Writing Onboard Programs

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

Almost all NI-Motion functions that execute on the host can run onboard. The size and number of programs is completely flexible. It is ultimately limited by the 32 total memory objects in the Object Registry or by total available memory, whichever is reached first. Refer to Begin Program Storage VI or function for more information. 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.

1  Write the program you want to load onto onboard memory.

    You can use most NI-Motion functions between the Begin Program Storage VI or function
    and the End Program Storage VI or function.  
2  Run the program to store the NI-Motion functions onto the onboard RAM.  
3  Store the program to FLASH memory using the Object Memory Management VI or function
    or MAX for more permanent storage (optional).  

Onboard Program Algorithm

The following figure shows an onboard program algorithm applicable to both C/C++ and LabVIEW code.