Rules VIs

Owning Palette: Fuzzy Logic VIs

Requires: Full Development System. This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.

Use the Rules VIs to modify the rules for a fuzzy system. Rules describe, in words, the relationships between input and output linguistic variables based on their linguistic terms.

The VIs on this palette can return general LabVIEW error codes and specific PID and Fuzzy Logic error codes.

Palette ObjectDescription
FL Create AntecedentCreates 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.
FL Create ConsequentCreates a consequent, or THEN portion, of a rule for a fuzzy system. A consequent consists of three parts: an output linguistic variable, an operator that specifies to calculate the degree of membership of the output 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 consequents that you create with this VI. You then can wire the array to the consequents input of the FL Create Rule VI.
FL Create RuleCreates a rule for a fuzzy system. You also can use the Rule Editor page of the Fuzzy System Designer to create rules interactively.
FL Get Number of RulesReturns the number of rules in the fuzzy system you specify.
FL Get RuleReturns the antecedents, consequents, and relationships for a rule in a fuzzy system.
FL Get Rules as TextReturns the rules of a fuzzy system in words.
FL Integrate RuleChecks a new rule for conflicts with existing rules in the fuzzy system and, optionally, integrates the new rule into the system.
FL Set RuleModifies the antecedents, consequents, or relationships of a rule in a fuzzy system.