Plot-Generation Blocks

Connect model values with a visual result.

Review components that support plot generation. Follow output and configuration details to prepare the intended data view.

Plot Generation Blocks


BuildHistogram

BuildHist

File: general_blocks/Plot_Generation/Build_Hist.sim
Description
This model is used to write a histogram plot file. It is intended to accept the output of a Histogram box, or other function that creates a real vector. BuildHistogram accepts a real vector, creates a graph file, and writes the data values to it, along with title and axes labels. Multiple instances of this function may be used to create multiple graphs. The graph can be viewed with XGraph.

Ports

Input Ports

  • in Data Type: TRIGGER

Output Ports

  • none

Parameters

  • plot_file_name    Data Type: STRING
  • plot_title Data Type: STRING
  • x_title Data Type: STRING
  • y_title Data Type: STRING
  • normalize = 0     Data Type: INTEGER

BuildPlot

File: general_blocks/Plot_Generation/Build_plot.sim
Description
The model is used to initialize a plot-file. At simulation time=0.0, it creates and initializes the specified plot-file. It places the graph title and axes titles. It also establishes a graph-descriptor for statistics recording, so that values can be sent to the graph from any diagram. Multiple instances of this function may be used to create multiple graphs. Additional parameters, such as graph_type=general_plot, are set by this block.
Ports

Input Ports

  • in Data Type: Data Set

Output Ports

  • none

Parameters

  • plot_file_name Data Type: STRING
  • plot_title Data Type: STRING
  • x_title Data Type: STRING
  • y_title Data Type: STRING

BuildPlot_Ytime

BuildPlot Ytime

File: general_blocks/Plot_Generation/Build_plot_count_Ytime.sim

Description
The model plots Y value by CSIM_TIME ( current simulator time). The model is used to initialize a plot-file. At simulation time=0.0, it creates and initializes the specified plot-file. It places the graph title and axes titles. It also establishes a graph-descriptor for statistics recording, so that values can be sent to the graph from any diagram. Multiple instances of this function may be used to create multiple graphs. Additional parameters, such as graph_type=general_plot, are set by this block.
Ports

Input Ports

  • in Data Type: Data Set

Output Ports

  • none

Parameters

  • plot_file_name Data Type: STRING
  • plot_title Data Type: STRING
  • x_title Data Type: STRING
  • y_title Data Type: STRING

BuildPlot_Y

BuildPlot Y

File: general_blocks/Plot_Generation/BuildPlot_Y.sim

Description
The model plots Y vector by count. The model is used to initialize a plot-file. At simulation time=0.0, it creates and initializes the specified plot-file. It places the graph title and axes titles. It also establishes a graph-descriptor for statistics recording, so that values can be sent to the graph from any diagram. Multiple instances of this function may be used to create multiple graphs. Additional parameters, such as graph_type=general_plot, are set by this block.
Ports

Input Ports

  • in Data Type: Data Set

Output Ports

  • none

Parameters

  • plot_file_name Data Type: STRING
  • plot_title Data Type: STRING
  • x_title Data Type: STRING
  • y_title Data Type: STRING

BuildPlot_Yonly

BuildPlotYonly

File: general_blocks/Plot_Generation/BuildPlot_Yonly.sim

Description
The model plots an Y only vector, by count. The model is used to initialize a plot-file. At simulation time=0.0, it creates and initializes the specified plot-file. It places the graph title and axes titles. It also establishes a graph-descriptor for statistics recording, so that values can be sent to the graph from any diagram. Multiple instances of this function may be used to create multiple graphs. Additional parameters, such as graph_type=general_plot, are set by this block.
Ports

Input Ports

  • in     Data Type:Data Set

Output Ports

  • none

Parameters

  • plot_file_name Data Type: STRING
  • plot_title Data Type: STRING
  • x_title Data Type: STRING
  • y_title Data Type: STRING

BuildPlot_XY

BuildPlot XY

File: general_blocks/Plot_Generation/Build_plot_XY.sim

Description
The model plots an Y X vector. The model is used to initialize a plot-file. At simulation time=0.0, it creates and initializes the specified plot-file. It places the graph title and axes titles. It also establishes a graph-descriptor for statistics recording, so that values can be sent to the graph from any diagram. Multiple instances of this function may be used to create multiple graphs. Additional parameters, such as graph_type=general_plot, are set by this block.
Ports

Input Ports

  • Xin Data Type: Data Set
  • Yin     Data Type:Data Set

Output Ports

  • none

Parameters

  • plot_file_name Data Type: STRING
  • plot_title Data Type: STRING
  • x_title Data Type: STRING
  • y_title Data Type: STRING

This page is an editorial rewrite of source documentation. Historical status, availability, and platform notes are not independently verified for a current release. Technical examples are reference material, not a live simulator.