Main Content

Simulink.Mask.Util.hasDialogControlOfType

Determine if dialog control of specified type is present in mask

Since R2022b

    Description

    Simulink.Mask.Util.hasDialogControlOfType(blockPath, Type) determines if any dialog controls of the specified type are present in the mask dialog. This method returns a logical 0 or 1.

    example

    Examples

    collapse all

    Open the model slexMaskLookupTableControlExample.

    load_system("slexMaskLookupTableControlExample.slx")

    Check if any dialog controls of the lookuptablecontrol type are present in the Sharing Breakpoints block.

    Simulink.Mask.Util.hasDialogControlOfType...
        ("slexMaskLookupTableControlExample/Sharing Breakpoints" ...
        ,"lookuptablecontrol")
    ans = logical
       1
    
    

    Input Arguments

    collapse all

    Name of the block or the path to the block, specified as a character vector or string.

    Data Types: char | string

    The type of dialog control, specified as a character vector or string.

    Data Types: char | string

    Version History

    Introduced in R2022b