Contents

Look-Up Table

Report on lookup table blocks

Description

The Look-Up Table component reports on the following blocks in the Simulink® Lookup Tables library. Some examples of the lookup table blocks include:

The Look-Up Table component inserts a figure and/or table into the report. The table contains input and output numeric values. A figure plots these values.

    Note:   The Look-Up Table component does not display a table or plot for the Direct Lookup Table (n-D) block if the block is configured to generate the table during simulation as a block input. Instead, the Look-Up Table displays a note in the report to the effect that the table is generated dynamically during simulation.

Look-Up Table Options

This pane allows you to specify the types of lookup table blocks to include in the report and how they appear. If you select none of the check boxes in this pane, the component does not insert anything into the report.

  • The Look-Up Table displays results according to the type of its parent component:

    • Model Loop: Includes all lookup tables in the current model.

    • System Loop: Includes all lookup tables in the current system.

    • Block Loop: If the current block is a lookup table, the reports that block.

    • Signal Loop: Includes all lookup tables connected to the current signal.

    • If the Look-Up Table does not have any of the looping components as its parent, it includes all lookup tables in all open models.

  • Plot 1-D data: Plots data from a 1-D Lookup Table block. Choose the plot type, Line plot or Bar plot, from the corresponding list. The input data appears on the horizontal or x-axis, and the output data appears on the vertical or y-axis.

    For more information on line and bar plots, see 2-D and 3-D Plots in the MATLAB® Graphics documentation.

  • Create table for 1-D data: Creates a table that contains numeric data values from the 1-D Lookup Table block.

  • Plot 2-D data: Creates a plot of 2-D Lookup Table blocks. You can specify whether the data appears as a surface plot or a line plot. The line plot is best for small data sets, and the surface plot for larger tables. For more information on surface and line plots, see 2-D and 3-D Plots in the MATLAB Graphics documentation.

      Note:   This option creates a 2-D slice through n-D data.

  • Create table for 2-D data: Creates a table that contains numeric data values from the 2-D Lookup Table block.

  • Create table for N-D data: Creates a table that contains numeric data values from the n-D Lookup Table block.

Print Options

  • Image file format: Specifies the image file format. Select Automatic HG Format (the default) to choose automatically the format best suited for the output format that you chose in the Report component. Otherwise, choose an image format that your output viewer can read.

    • Automatic SL Format (Uses the Simulink file format selected in the Preferences dialog box)

    • Bitmap (16m-color)

    • Bitmap (256-color)

    • Black and white encapsulated PostScript

    • Black and white encapsulated PostScript (TIFF)

    • Black and white encapsulated PostScript2

    • Black and white encapsulated PostScript2 (TIFF)

    • Black and white PostScript

    • Black and white PostScript2

    • Color encapsulated PostScript

    • Color encapsulated PostScript (TIFF)

    • Color encapsulated PostScript2

    • Color encapsulated PostScript2 (TIFF)

    • Color PostScript

    • Color PostScript2

    • JPEG high quality image

    • JPEG medium quality image

    • JPEG low quality image

    • PNG 24-bit image

    • TIFF - compressed

    • TIFF - uncompressed

    • Windows metafile

  • Paper orientation:

    • Landscape

    • Portrait

    • Rotated

    • Use figure orientation: Uses the orientation for the figure, which you set with the orient command.

    • Full page image (PDF only): In PDF reports, scales images to fit the full page, minimizes page margins, and maximizes the size of the image by using either a portrait or landscape orientation.

    For more information about paper orientation, see the orient command in the MATLAB documentation.

  • Image size: Allows you to specify the image size in the report by selecting Use figure PaperPositionMode setting and setting the PaperPositionMode property of the Handle Graphics® figure.

    • Automatic (same size as on screen):

    • Custom: Specifies a custom image size. Set the image size using the Size field and Units list.

    For more information on paper position mode, see orient in the MATLAB documentation.

  • Size: Allows you to enter the size of the Handle Graphics figure snapshot in the format wxh (width times height). This field is active only if you choose Custom in the Image size list box.

  • Units: Allows you to enter for the size of the Handle Graphics figure snapshot. This field is active only if you choose Custom in the Image size list box.

  • Invert hardcopy: Causes the Handle Graphics InvertHardcopy property to invert colors for printing. In other words, this option changes dark colors to light colors and light colors to dark colors. To change colors in your image, choose one of the following options:

    • Automatic: Automatically changes a dark axes colors to light axes colors. If the axes color is a light color, this option does not invert the color.

    • Invert: Changes dark axes colors to light axes colors, and light axes colors to dark axes colors.

    • Don't invert: Does not change the colors in the image that appears on the screen for printing.

    • Use figure's InvertHardcopy setting: Uses the InvertHardcopy property set in the Handle Graphics image.

    • Make figure background transparent: Makes the image background transparent.

Display Options

  • Scaling: Controls size of the image, as displayed in a browser. Making an image larger using this option does not affect the storage size of the image, but the quality of the displayed image may decrease as you increase or decrease the size of the displayed image.

    Generally, to achieve the best and most predictable display results, use the default setting of Use image size.

    • Use image size: Causes the image to appear the same size in the report as on screen (default).

    • Fixed size: Specifies the number and type of units.

    • Zoom: Specifies the percentage, maximum size, and units of measure.

  • Size: Specifies the size of the snapshot in the form w h (width, height) format. This field is active only if you choose Fixed size in the Scaling selection list.

  • Max size: Specifies the maximum size of the snapshot in the form w h (width, height). This field is active only if you choose Zoom from the Scaling selection list.

  • Units: Allows you to enter units for the size of the snapshot. This field is active only if you choose Zoom or Fixed size in the Image size list box.

  • Alignment: Only reports in PDF or RTF format support this property.

    • Auto

    • Right

    • Left

    • Center

  • Title: Enter text to appear above the snapshot.

  • Caption: Enter text to appear under the snapshot.

Insert Anything into Report?

Yes. Figure and/or table.

Class

rptgen_sl.csl_blk_lookup

Was this topic helpful?