set_value()Sets the value of an input fuzzy variable. int set_value(int var_idx, float value) Parameters
Return Value
RemarksYou are only allowed to set the value for input variables. Output variables have their value calculated dependent on the rules and input variable values. If you try to set a value outside the range of the variable, the variable's value is set to the closest either the min or max value (whichever is closest to the value passed in). The index of the variable should be from the .h file exported from the Spark! model. The variable's index may not coincide with the screen position of the variable. See Export .h File for more information Example
|
|