FL Get Membership Function VI

Owning Palette: Membership VIs

Requires: Full Development System

Returns the shape, color, and points of a membership function for a linguistic variable. You can return a membership function from a fuzzy system or from an array of membership functions. The data type you wire to the fuzzy system in input determines the polymorphic instance to use.

Use the pull-down menu to select an instance of this VI.

 Add to the block diagram  Find on the palette

FL Get Membership Function (Fuzzy System)

membership function index specifies the index of the membership function whose information you want to return. membership function index corresponds to the order in which the membership function was created.
variable index specifies the index of the linguistic variable whose information you want to return. variable index corresponds to the order in which the linguistic variable was created.
input/output specifies whether the linguistic variable corresponding to variable index is an input or output variable.

0Input—Specifies that the linguistic variable corresponding to variable index is an input variable.
1Output—Specifies that the linguistic variable corresponding to variable index is an output variable.
fuzzy system in specifies the complete information for a fuzzy system. Wire the fuzzy system out output from another VI to the fuzzy system in input of this VI.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
fuzzy system out returns the complete information for a fuzzy system. Wire this output to the fuzzy system in input of another VI.
name returns the name of the membership function, or linguistic term.
shape returns the shape of the function that determines the degrees of membership for the linguistic variable.

0Triangle—Indicates that a triangle function determines the degrees of membership for the linguistic variable.
1Trapezoid—Indicates that a trapezoid function determines the degrees of membership for the linguistic variable.
2Singleton—Indicates that a singleton function determines the degrees of membership for the linguistic variable. A singleton function has only one point. Therefore, no value of the linguistic variable has partial membership within the corresponding linguistic term.
3Sigmoid—Indicates that a sigmoid function determines the degrees of membership for the linguistic variable.
4Gaussian—Indicates that a Gaussian function determines the degrees of membership for the linguistic variable.
5User-Defined—Indicates that the user-defined shape corresponding to the user-defined shape index determines the degrees of membership for the linguistic variable.
points returns the values of the linguistic variable corresponding to the base and top points, in order from left to right and base to top, of the membership function. The degree of membership of the linguistic variable within the linguistic term name is 0 at the base points and 1 at the top points. points returns one point for a singleton function, three points for a triangle function, and four points for trapezoid, sigmoid, Gaussian, or user-defined functions.
error out contains error information. This output provides standard error out functionality.
color returns the color of the membership function when you view the membership function in the Fuzzy System Designer.
user-defined shape index returns the index of the user-defined shape that determines the degrees of membership for the linguistic variable. This parameter is applicable only if shape returns User-Defined. Define the user-defined shapes in the user-defined membership function shapes array in both the FL New Fuzzy System VI and the User-Defined instance of the FL Create Membership Function VI.

FL Get Membership Function (MF Array)

Returns a membership function from an array of membership functions.

membership function index specifies the index of the membership function whose information you want to return. membership function index corresponds to the order in which the membership function was created.
membership functions in specifies an array of membership functions. Wire the membership functions out output from another VI to the membership functions in input of this VI.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
membership functions out returns an array of membership functions. Wire the membership functions out output of this VI to the membership functions in input of another VI.
name returns the name of the membership function, or linguistic term.
shape returns the shape of the function that determines the degrees of membership for the linguistic variable.

0Triangle—Indicates that a triangle function determines the degrees of membership for the linguistic variable.
1Trapezoid—Indicates that a trapezoid function determines the degrees of membership for the linguistic variable.
2Singleton—Indicates that a singleton function determines the degrees of membership for the linguistic variable. A singleton function has only one point. Therefore, no value of the linguistic variable has partial membership within the corresponding linguistic term.
3Sigmoid—Indicates that a sigmoid function determines the degrees of membership for the linguistic variable.
4Gaussian—Indicates that a Gaussian function determines the degrees of membership for the linguistic variable.
5User-Defined—Indicates that the user-defined shape corresponding to the user-defined shape index determines the degrees of membership for the linguistic variable.
points returns the values of the linguistic variable corresponding to the base and top points, in order from left to right and base to top, of the membership function. The degree of membership of the linguistic variable within the linguistic term name is 0 at the base points and 1 at the top points. points returns one point for a singleton function, three points for a triangle function, and four points for trapezoid, sigmoid, Gaussian, or user-defined functions.
error out contains error information. This output provides standard error out functionality.
color returns the color of the membership function when you view the membership function in the Fuzzy System Designer.
user-defined shape index returns the index of the user-defined shape that determines the degrees of membership for the linguistic variable. This parameter is applicable only if shape returns User-Defined. Define the user-defined shapes in the user-defined membership function shapes array in both the FL New Fuzzy System VI and the User-Defined instance of the FL Create Membership Function VI.