Creates a membership function for a linguistic variable. You also can use the Define Variable dialog box to create membership functions interactively.

Note Uses a user-defined function to determine the degrees of membership for the linguistic variable.


icon

Inputs/Outputs

  • cstr.png name

    name specifies the name of the membership function, or linguistic term, you want to create.

  • cdbl.png left base

    left base specifies the numerical value of the linguistic variable corresponding to the left base point of the membership function. The degree of membership of the linguistic variable within the linguistic term name is 0 at the left base value.

  • cdbl.png left top

    left top specifies the numerical value of the linguistic variable corresponding to the left top point of the membership function. The degree of membership of the linguistic variable within the linguistic term name is 1 at the left top value.

  • cdbl.png right top

    right top specifies the numerical value of the linguistic variable corresponding to the right top point of the membership function. The degree of membership of the linguistic variable within the linguistic term name is 1 at the right top value.

  • cdbl.png right base

    right base specifies the numerical value of the linguistic variable corresponding to the right base point of the membership function. The degree of membership of the linguistic variable within the linguistic term name is 0 at the right base value.

  • cerrcodeclst.png error in (no error)

    error in describes error conditions that occur before this node runs. This input provides standard error in functionality.

  • cu32.png color

    color specifies the color of the membership function when you view the membership function in the Fuzzy System Designer. You can wire a color box constant to this input.

  • c1dcclst.png user-defined membership function shapes

    user-defined membership function shapes specifies the x-y values of points that define custom shapes for membership functions. The shape of a membership function determines the degrees of membership for a linguistic variable within the corresponding linguistic term. Use the user-defined shape index to specify which user-defined membership function shape in this array you want to use for the membership function.

    For each custom membership function shape you define, you can use any range of x-values. However, the range of the y-values must be between 0 and 1 such that the first point you specify has a degree of membership of 0 and the last point you specify has a degree of membership of 1. LabVIEW scales the custom shape linearly between the left base and left top points and scales the mirror image of this shape linearly between the right top and right base points. Any points between left top and right top have a degree of membership of 1.

  • c1ddbl.png Y

  • c1ddbl.png X

  • ci32.png user-defined shape index

    user-defined shape index specifies the index of the shape in the user-defined membership function shapes array that you want to use for the membership function.

  • icclst.png membership function

    membership function returns the membership function with the shape, points, and color you specify.

  • istr.png name

    name specifies the name of the membership function, or linguistic term, you want to modify.

  • iu16.png shape

    shape specifies the shape of the function that determines the degrees of membership for the linguistic variable.

  • i1ddbl.png points

    points specifies 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. Specify one point for a singleton function, three points for a triangle function, and four points for trapezoid, sigmoid, Gaussian, or user-defined functions.

  • iu32.png color

    color specifies the color of the membership function when you view the membership function in the Fuzzy System Designer. You can wire a color box constant to this input.

  • ii32.png user-defined shape index

    user-defined shape index specifies the index of the user-defined shape that determines the degrees of membership for the linguistic variable. This parameter is applicable only if you set shape to 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.

  • ierrcodeclst.png error out

    error out contains error information. This output provides standard error out functionality.