Cicode Programming Reference > Cicode Function Categories > Fuzzy Logic Functions Introduction > FuzzySetCodeValue

FuzzySetCodeValue

Sets a value for the specified input of the specified instance.

Syntax

FuzzySetCodeValue(hFuzzy, iIOIndex, iCodeValue)

hFuzzy:

The fuzzy instance handle (and integer greater than 0).

iIOIndex:

Specifies the variable to receive the value. The I/O-Indices start with 0 and increment by 1 for each variable. To find the correct index for a specific variable, the variables need to be sorted in alpha-numerical order, first the inputs and then the outputs.

iCodeValue:

The value to be copied to the variable specified by iIOIndex.

Return Value

0 (zero) if successful, otherwise an error is returned.

Related Functions

FuzzyOpen, FuzzyGetCodeValue

Example

See FuzzyOpen.

See Also

FuzzyTech Functions