Main Content

lutmemoryusage

Class: FunctionApproximation.LUTMemoryUsageCalculator
Namespace: FunctionApproximation

Calculate memory used by lookup table blocks in a system

Syntax

memory = lutmemoryusage(calculator,system)

Description

memory = lutmemoryusage(calculator,system) calculates the memory used by each lookup table block in the specified model or subsystem.

Input Arguments

expand all

Model or subsystem containing lookup table blocks, specified as a character vector.

Data Types: char

Output Arguments

expand all

Table displaying the memory, in bits, used by each lookup table block in the specified system.

Examples

expand all

Use the FunctionApproximation.LUTMemoryUsageCalculator class to calculate the memory used by lookup table blocks in a model.

Create a FunctionApproximation.LUTMemoryUsageCalculator object.

calculator = FunctionApproximation.LUTMemoryUsageCalculator

Use the lutmemoryusage method to get the memory used by each lookup table block in the sldemo_fuelsys model.

openExample('simulink_automotive/ModelingAFaultTolerantFuelControlSystemExample',...
    'supportingfile','sldemo_fuelsys');
lutmemoryusage(calculator,'sldemo_fuelsys')
ans =

  5×2 table

                                                    BlockPath                                               MemoryUsage
         _______________________________________________________________________________________________    ___________

    1    "sldemo_fuelsys/fuel_rate_control/airflow_calc/Pumping Constant"                                      1516    
    2    "sldemo_fuelsys/fuel_rate_control/control_logic/Throttle.throttle_estimate/Throttle Estimation"       1516    
    3    "sldemo_fuelsys/fuel_rate_control/control_logic/Speed.speed_estimate/Speed Estimation"                1436    
    4    "sldemo_fuelsys/fuel_rate_control/control_logic/Pressure.map_estimate/Pressure Estimation"            1364    
    5    "sldemo_fuelsys/fuel_rate_control/airflow_calc/Ramp Rate Ki"                                           192      

Version History

Introduced in R2018a