lutmemoryusage

Class: FunctionApproximation.LUTMemoryUsageCalculator
Package: FunctionApproximation

Calculate total memory used by lookup table blocks in a model

Syntax

memory = lutmemoryusage(calculator,model)

Description

memory = lutmemoryusage(calculator,model) calculates the memory used by all lookup table blocks in the specified model.

Input Arguments

expand all

Model 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 model.

Examples

expand all

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

Create a FunctionApproximation.LUTMemoryUsageCalculator object.

calculator = FunctionApproximation.LUTMemoryUsageCalculator

Use the lutmemoryusage method to get the total memory used by the lookup table blocks in the sldemo_fuelsys model.

load_system('sldemo_fuelsys')
lutmemoryusage(calculator, 'sldemo_fuelsys')
ans =

  6×1 table

                                                                                                     MemoryUsage
                                                                                                     ___________

    sldemo_fuelsys/fuel_rate_control/airflow_calc/Pumping Constant                                      1516    
    sldemo_fuelsys/fuel_rate_control/control_logic/Throttle.throttle_estimate/Throttle Estimation       1516    
    sldemo_fuelsys/fuel_rate_control/control_logic/Speed.speed_estimate/Speed Estimation                1436    
    sldemo_fuelsys/fuel_rate_control/control_logic/Pressure.map_estimate/Pressure Estimation            1364    
    sldemo_fuelsys/fuel_rate_control/airflow_calc/Ramp Rate Ki                                           192    
    Total                                                                                               6024    

Introduced in R2018a