Branching Onboard Programs

NI-Motion

Branching Onboard Programs

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

To create loops, or conditional if statements, insert labels in the program you are storing and use the Jump to Label on Condition VI or the Jump on Event function to jump to that label based on the condition.

Branching Onboard Programs Algorithm

The following figure shows an onboard program waiting for an I/O line to go active before starting a move applicable to both C/C++ and LabVIEW code.