Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

SMO1f22 / stateflow / rn

.pdf
Скачиваний:
16
Добавлен:
08.02.2015
Размер:
588.89 Кб
Скачать

Version 7.2 (R2008b) Stateflow® and Stateflow® Coder™ Software

Changes for the General Pane of the Simulation Target Dialog Box.

In previous releases, the General pane of the Simulation Target dialog box for library models appeared as follows.

In R2008b, these options are no longer available. All library models inherit these option settings from the main model to which the libraries are linked.

27

Stateflow® and Stateflow® Coder™ Release Notes

Changes for the Custom Code Pane of the Simulation Target Dialog Box.

Release Appearance

Previous Custom Code pane of the Simulation Target dialog box

New Simulation Target pane of the Configuration Parameters dialog box

28

Version 7.2 (R2008b) Stateflow® and Stateflow® Coder™ Software

For details, see “Library Models: Mapping of GUI Options from the Simulation Target Dialog Box to the Configuration Parameters Dialog Box” on page 30.

Changes for the Description Pane of the Simulation Target Dialog Box. In previous releases, the Description pane of the Simulation Target dialog box appeared as follows.

In R2008b, these options are no longer available. For older models where the Description pane contained information, the text is discarded.

29

Stateflow® and Stateflow® Coder™ Release Notes

Library Models: Mapping of GUI Options from the Simulation Target Dialog Box to the Configuration Parameters Dialog Box. For library models, the following table maps each GUI option in the Simulation Target dialog box to the equivalent in the Configuration Parameters dialog box. The options are listed in order of appearance in the Simulation Target dialog box.

 

Old Option in the

New Option in the

Default Value of New

 

 

Simulation Target Dialog

Configuration Parameters

Option

 

 

Box

Dialog Box

 

 

 

General > Enable

None

Not applicable

 

 

debugging / animation

 

 

 

 

General > Enable overflow

None

Not applicable

 

 

detection (with debugging)

 

 

 

 

General > Echo expressions

None

Not applicable

 

 

without semicolons

 

 

 

 

General > Build Actions

None

Not applicable

 

 

None

Simulation Target > Source

''

 

 

 

file

 

 

 

Custom Code > Include

Simulation Target > Header

''

 

 

Code

file

 

 

 

Custom Code > Include

Simulation Target >

''

 

 

Paths

Include directories

 

 

 

Custom Code > Source

Simulation Target > Source

''

 

 

Files

files

 

 

 

Custom Code > Libraries

Simulation Target >

''

 

 

 

Libraries

 

 

 

Custom Code >

Simulation Target >

''

 

 

Initialization Code

Initialize function

 

 

 

Custom Code >

Simulation Target >

''

 

 

Termination Code

Terminate function

 

 

 

Custom Code > Reserved

None

Not applicable

 

 

Names

 

 

 

30

Version 7.2 (R2008b) Stateflow® and Stateflow® Coder™ Software

 

Old Option in the

New Option in the

Default Value of New

 

 

Simulation Target Dialog

Configuration Parameters

Option

 

 

Box

Dialog Box

 

 

 

Custom Code > Use local

Simulation Target > Use

off

 

 

custom code settings (do

local custom code settings

 

 

 

not inherit from main

(do not inherit from main

 

 

 

model)

model)

 

 

 

Description > Description

None

Not applicable

 

 

Description > Document

None

Not applicable

 

 

Link

 

 

 

Note For library models, Simulation Target options in the Configuration

Parameters dialog box are not available in the Model Explorer.

GUI Enhancements in Real-Time Workshop Code Generation Options for Nonlibrary Models

The following sections describe enhancements to the Real-Time Workshop pane of the Configuration Parameters dialog box for nonlibrary models.

31

Stateflow® and Stateflow® Coder™ Release Notes

Enhancement for the Real-Time Workshop: Symbols Pane of the Configuration Parameters Dialog Box. In previous releases, the

Real-Time Workshop > Symbols pane of the Configuration Parameters dialog box appeared as follows.

In R2008b, a new option is available in this pane: Reserved names. You can use this option to specify a set of keywords that the Real-Time Workshop build process should not use. This action prevents naming conflicts between functions and variables from external environments and identifiers in the generated code.

32

Version 7.2 (R2008b) Stateflow® and Stateflow® Coder™ Software

You can also choose to use the reserved names specified in the Simulation Target > Symbols pane to avoid entering the same information twice for the nonlibrary model. Select the Use the same reserved names as Simulation Target check box.

For more information, see “Reserved names” in the Real-Time Workshop Reference.

33

Stateflow® and Stateflow® Coder™ Release Notes

Enhancement for the Real-Time Workshop: Custom Code Pane of the Configuration Parameters Dialog Box. In previous releases, the Real-Time Workshop > Custom Code pane of the Configuration Parameters dialog box appeared as follows.

In R2008b, a new option is available in this pane: Use the same custom code settings as Simulation Target. You can use this option to copy the custom code settings from the Simulation Target > Custom Code pane to avoid entering the same information twice for the nonlibrary model.

34

Version 7.2 (R2008b) Stateflow® and Stateflow® Coder™ Software

For more information, see “Use the same custom code settings as Simulation Target” in the Real-Time Workshop Reference.

GUI Changes in Real-Time Workshop Code Generation Options for Library Models

The following sections describe changes in the panes of the RTW Target dialog box for library models.

35

Stateflow® and Stateflow® Coder™ Release Notes

Changes for the General Pane of the RTW Target Dialog Box. In previous releases, the General pane of the RTW Target dialog box for library models appeared as follows.

In R2008b, these options are no longer available. During Real-Time Workshop code generation, options specified for the main model are used.

36

Соседние файлы в папке stateflow