Stateflow User's Guide Previous page   Next Page
Stateflow.Target

Constructor for creating a target

Syntax

Description

The Stateflow.Target method is a constructor method for creating a target for a parent machine, that returns a handle to the Target object for the new target.

Arguments

parent_m
Handle to object for the parent machine of the new target

Returns

target_new
Handle to the Target object for the newly created target

Example

The following command creates a new target for the machine with the Machine object whose handle is pm:

The preceding command creates a custom target with name untitled. target_new is a handle to the Target object of the new target which you can use to rename and set properties for the target. The following command renames the new target to rtw, thus making it the Real-Time Workshop® (RTW) target for its parent machine:


Previous page  Stateflow.State Stateflow.Transition Next page

© 1994-2005 The MathWorks, Inc.