Real-Time Windows Target    

Entering Scope Parameters for Signal Tracing

You enter or change scope parameters to specify the x-axis and y-axis in a Scope window. Other properties include the number of graphs in one Scope window and the sample time for models with discrete blocks.

After you add a Scope block to your Simulink model, you can enter the scope parameters for signal tracing:

  1. In the Simulink window, double-click the Scope block.
  1. A Scope window opens.

  1. Click the Parameters button

    .
  1. A Scope parameters dialog box opens.

  1. Click the General tab. In the Number of axes box, enter the number of graphs you want in one Scope window. For example, enter 1 for a single graph. Do not select the floating scope check box.
  1. In the Time range box, enter the upper value for the time range. For example, enter 1 second. From the Tick labels list, choose all.

    From the Sampling list, choose Sample time and enter 0 in the text box. Entering 0 indicates that Simulink evaluates this block as a continuous time block. If you have discrete blocks in your model, enter the Fixed step size you entered in the Simulation Parameters dialog box.

    Your Scope parameters dialog box will look similar to the figure shown below.

  1. Do one of the following:
  2. In the Scope window, point to the y-axis shown in the figure below, and right-click.

  3. From the pop-up menu, click Axis Properties.
  4. The Scope properties: axis 1 dialog box opens. In the Y-min and Y-max text boxes, enter the range for the y-axis in the Scope window. For example, enter -2 and 2 as shown in the figure below.

  5. Do one of the following:

  Entering Simulation Parameters for Simulink Running a Nonreal-Time Simulation