Skip to main content

NRC_SetCycleIndex(int index)

Set the total number of times the current job file is to be run

Set the total number of times the current job file is to be run. When setting, the current running times will also be reset to 1

Type

int=>Set the total number of times the current job file is to be run

Return valueDescription
0The function is called successfully
-101Invalid input parameter
-102The target object does not exist. This typically occurs when the system initialization is incomplete, and calling other functions may return this value
-103The target object is currently in an inoperable state

Parameter Option

ParameterTypeDescription
indexintThe total number of times the current job file is to be run, set to 0 to run cyclically. Parameter range: index >= 0

Sample code

NRC_SetCycleIndex(3);//Set the current job file to run 3 times