flex_run_prog

NI-Motion Functions

flex_run_prog

Device Compatibility

Device Compatibility
7330
N
7340
Y
7344
Y
7350
Y
7390
N
NI SoftMotion Controller for CANopen—Xenus
N
NI SoftMotion Controller for CANopen—Accelnet
N

Run Program

Usage

status = flex_run_prog(u8 boardID, u8 program)

Purpose

Runs a previously stored program.

Parameters

Name Type Description
boardID u8 assigned by Measurement & Automation Explorer (MAX)
program u8 program number

Parameter Discussion

program is the program number. Valid program numbers are 0x01 through 0xFF (1 through 255).

Using This Function

This function initiates execution of the functions stored in the selected program. You can run programs out of either RAM or ROM. You can run up to ten (10) programs simultaneously.

A program can run another program but you cannot have a program run itself. Attempting to store a recursive Run Program function in a program generates an error and does not store the function.