FL Create Antecedent VI

Owning Palette: Rules VIs

Requires: Full Development System

Creates an antecedent, or IF portion, of a rule for a fuzzy system. An antecedent consists of three parts: an input linguistic variable, an operator that specifies whether to calculate the degree of membership or the degree of non-membership of the input linguistic variable within a linguistic term, and a linguistic term.

You can use the Build Array function or a loop to build an array of rule antecedents that you create with this VI. You then can wire the array to the antecedents input of the FL Create Rule VI.

 Add to the block diagram  Find on the palette
variable index specifies the index of the linguistic variable you want to use for the antecedent. variable index corresponds to the order in which the linguistic variable was created.
membership function index specifies the index of the membership function you want to relate to the corresponding linguistic variable. membership function index corresponds to the order in which the membership function was created.
condition specifies whether to calculate the degree of membership or the degree of non-membership of the linguistic variable in the membership function.

0=—Tells the VI to calculate the degree of membership, or μ.
1!=—Tells the VI to calculate the degree of non-membership, or 1 – μ.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
antecedent returns the antecedent, or IF portion, of a rule. The antecedent consists of three parts corresponding to the variable index, condition, and membership function index, respectively.
error out contains error information. This output provides standard error out functionality.