Documentation

SimulinkRealTime.target.viewTargetScreen

Open real-time window on development computer

Syntax

viewTargetScreen(target_object)

Description

example

viewTargetScreen(target_object) opens a Simulink® Real-Time™ display window for target_object.

The behavior of this function depends on the value for the environment property TargetScope:

  • TargetScope enabled (graphics display) — The function uploads a single image of the target computer screen to the display window. The display is not continually updated because the target computer produces a higher data volume when its graphics card is in VGA mode.

    To request a screen update, right-click in the display window and then select Update Simulink Real-Time Target Screen.

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

  • TargetScope disabled (text display) — The function transfers text output once every second to the development computer and displays it in the window.

    To save the text output to a file, right-click in the display window, and then select Save as text file.

Examples

collapse all

Get target object for default computer, open window display with target computer screen

tg = slrt;
viewTargetScreen(tg)

Get target object for 'TargetPC1', open window display with target computer screen

tg = slrt('TargetPC1');
viewTargetScreen(tg)

Input Arguments

collapse all

Object that represents the target computer. Before calling this function, make sure that you start the target computer with the Simulink Real-Time kernel and apply the required Ethernet link settings.

Example: tg

Introduced in R2014a

Was this topic helpful?