Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Fuzzy Controller VI

LabVIEW 8.6 PID Control Toolkit Help
June 2008

NI Part Number:
370401E-01

»View Product Info

Owning Palette: Fuzzy Logic VIs

Installed With: PID Control Toolkit

Implements a fuzzy controller designed with the Fuzzy Logic Controller Design Project Manager. You must first load a controller data file, which is the project file that the Fuzzy Logic Controller Design Project Manager generates, from the Load Fuzzy Controller VI.

Details  Example

Controller data is the data stored in the fuzzy controller data file saved from the Fuzzy Logic Controller Design Project Manager. All data is stored in a cluster and must be input from the Load Fuzzy Controller VI.
name 1 is the name of one of the linguistic input variables.
in1 is the input value corresponding to the linguistic input variable specified by name 1.
name 2 is the name of one of the linguistic input variables.
in2 is the input value corresponding to the linguistic input variable specified by name 2.
name 3 is the name of one of the linguistic input variables.
in3 is the input value corresponding to the linguistic input variable specified by name 3.
name 4 is the name of one of the linguistic input variables.
in4 is the input value corresponding to the linguistic input variable specified by name 4.
analog output is the output of the fuzzy controller.
output assessment specifies how the controller output was determined. This output can return the following values:
  • controlled result—Output is calculated from input membership functions and rule base.
  • last result—No fuzzy rules correspond to the input values and output is the last valid output value.
  • default result—No fuzzy rules correspond to the input values and output is the last specified default value.
error-array
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error.
status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.
code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.
source describes the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning.

Fuzzy Controller Details

You can connect the controller inputs of this VI to appropriate process variables using the DAQmx - Data Acquisition VIs. This VI can have up to four inputs and one output. Each used name input must have the name of the assigned input variable. The inputs of unwired name inputs are disabled.

Example

Refer to the Tanks - fuzzy control PI VI in the labview\examples\control\fuzzy\tanks.llb for an example of using the Fuzzy Controller VI.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit