Skip to main content

NRC_ReadBoolVar(int num)

Read the value of a BOOL variable

Type

bool=>Read the value of a BOOL variable

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
numintThe number of the BOOL variable, value range: 0 < num <= 100

Sample code

bool boolVar = NRC_ReadBoolVar(1);//Read the value of variable GB001 and assign it to boolVar