Documentation

Target Scope Usage

  • There can be no more than nine target scopes in a model, whether created by using a real-time Scope block or using the run-time interface. Each target scope can contain up to 10 signals.

  • The combined number of target scopes and Video Display blocks in the model cannot exceed nine.

  • With one graphical target scope active on the target computer, the graphical and numerical formats are displayed. With more than one target scope active, only the format that the Scope mode parameter specifies is displayed.

  • For a target scope, logged data (sc.Data and sc.Time) is not accessible over the command-line interface on the development computer. Logged data is accessible only when the scope object status (sc.Status) is set to Finished. When the scope completes one data cycle (time to collect the number of samples), the scope engine restarts the scope instead of setting sc.Status to Finished.

    If you create a scope object, for example, sc = getscope(tg,1) for a target scope, you cannot get the logged data by typing sc.Data. Instead, you get an error message:

    Scope # 1 is of type 'Target'! Property Data 
    
         is not accessible.

    To view data on the development computer while the data is being displayed on the target computer, define a second scope object with type host. Then synchronize the acquisitions of the two scope objects by setting TriggerMode for the second scope to 'Scope'.

  • To display the target scope image in a display window on the development computer screen, use SimulinkRealTime.target.viewTargetScreen.

    To save the target scope image to a file, right-click in the display window and then click Save as image.

See Also

| |

Related Topics

Was this topic helpful?