getAllParameters

Return all associated coder.descriptor.LookupTableDataInterface and coder.descriptor.BreakpointDataInterface objects

Syntax

dataInterface = getAllParameters(parameterObj)

Description

dataInterface = getAllParameters(parameterObj) returns all associated coder.descriptor.LookupTableDataInterface and coder.descriptor.BreakpointDataInterface objects.

Input Arguments

expand all

The coder.descriptor.LookupTableDataInterface object that represents a Lookup Table block in the model.

Data Types: string

Output Arguments

expand all

The coder.descriptor.LookupTableDataInterface object represents a Lookup Table block in the model. The coder.descriptor.BreakpointDataInterface object represents the breakpoint set data associated with the Lookup Table block.

Examples

expand all

  1. Build the model.

    rtwbuild('rtwdemo_asap2')
  2. Create a coder.codedescriptor.CodeDescriptor object for the required model.

    codeDescObj = coder.getCodeDescriptor('rtwdemo_asap2')
    
  3. Return properties of the Lookup Table parameters in the model.

    params = getDataInterfaces(codeDescObj, 'Parameters')

    The params variable is an array of coder.descriptor.DataInterface, coder.descriptor.LookupTableDataInterface, and coder.descriptor.BreakpointDataInterface objects.

  4. Obtain the details of the model Lookup Table block by accessing the sixth location in the array.

    parameterObj = params(6)

  5. Retrieve all the associated coder.descriptor.LookupTableDataInterface and coder.descriptor.BreakpointDataInterface objects by using the parameterObj.

    dataInterface = getAllParameters(parameterObj)
    

    The code generator returns an array of coder.descriptor.LookupTableDataInterface and coder.descriptor.BreakpointDataInterface objects.

    1×3 heterogeneous DataInterface (LookupTableDataInterface, BreakpointDataInterface) array with properties:
    
        Type
        SID
        GraphicalName
        VariantInfo
        Implementation
        Timing
        Unit
        Range

Introduced in R2020a