Major Bug Fixes

This document describes major bug fixes for the following:

Simulink Performance Tools

Click on a problem area listed below to read how it has been fixed.

Coverage report used unsupported HTML characters
Coverage tool asserted when condition coverage not enabled for model using Fcn block
Cumulative report summary data was taken from delta column instead of total column
Extended Switch block semantics no longer causes a segmentation violation

Coverage report used unsupported HTML characters

Model coverage report for Simulink 5.0 (Release 13) models using a Switch block used some characters that the MATLAB internal Help browser did not support. These characters (the "greater than or equal to" character and the "less than or equal to" character) displayed incorrectly with inconsistent behavior. They have been replaced by the expressions >= and <=.

Coverage tool asserted when condition coverage not enabled for model using Fcn block

When an Fcn block was included in a Simulink 5.0 (Release 13) model and that model had only decision coverage enabled (condition coverage is not enabled), the coverage tool asserted when condition coverage was invoked for internal use. This internal logic has been corrected.

Cumulative report summary data was taken from delta column instead of total column

Within the coverage report each object in the model hierarchy has a summary table with the coverage for the object and its decendents. This table should contain the coverage totals but in the cumulative report the summary information was being captured from the "delta" or middle column of coverage numbers.

Extended Switch block semantics no longer causes a segmentation violation

Specifying model coverage for a Simulink 5.0 (Release 13) model that used a Switch block with the block parameter Criteria for passing first input set to u2 ~= 0 received a segmentation violation. This problem was due to extended Switch block semantics that were not incorporated into the coverage tool. This has been fixed

Stateflow

Click on a problem area listed below to read how it has been fixed.

Code generation in presence of junctions in cycles no longer asserts
Code generation when an address is passed to a custom C-function
No segmentation violation when badly intersecting states are grouped and ungrouped
Output state activity compilation for custom targets
Simulation pause button now pauses SF chart execution
Stateflow action language now supports context sensitive integers
Stateflow now regenerates code for a change in wordsize specification
Stateflow parser allows the use of vectors in conditions
Undo operation now restores the data types of graphical function inputs and outputs
Using Undo and Redo operations after deleting a graphical function
Using Undo operation in chart editor after adding chart output data

Code generation in presence of junctions in cycles no longer asserts

Code generation no longer causes assertion errors for charts containing flow graphs with junctions that belong to a cycle and are preceded by an incoming transition with a transition action.

Code generation when an address is passed to a custom C-function

Stateflow code generation no longer causes assertion failures when the chart contains a call to a custom C-function passing in the address of an output data, as in the example, data = mycustomfcn(&outData);.

No segmentation violation when badly intersecting states are grouped and ungrouped

The Stateflow diagram editor no longer causes a segmentation violation when intersecting grouped states are ungrouped.

Output state activity compilation for custom targets

Generated code for a chart containing output state activity (state output data) for custom targets no longer has extraneous #defines, which caused it to fail to compile. Such code now compiles.

Simulation pause button now pauses SF chart execution

Using the Simulation Pause button did not pause simulation when the Stateflow chart was executing a flow-graph. It now pauses simulation and brings up the Stateflow Debugger.

Stateflow action language now supports context sensitive integers

Context-sensitive constants required a decimal point, for example, "7.0c". This gave users of integer-only models the impression that they were adding floating point numbers to their models. Stateflow now accepts integer context-sensitive constants, for example, "7c", and renders them just like just like their apparent floating point equivalent, for example, "7.0c".

Stateflow now regenerates code for a change in wordsize specification

Stateflow incremental code generation now reacts to a change in Production Hardware word sizes (specified in the Simulink Simulation Parameters dialog), thus avoiding the erroneous simulation results that occurred previously.

Stateflow parser allows the use of vectors in conditions

Stateflow parser allows the use of vector data in transition conditions. Previously, Stateflow disallowed the use of vector data in transition conditions, even though the vector data was being passed to a function returning a scalar.

Undo operation now restores the data types of graphical function inputs and outputs

An Undo operation after the modification of input and output data in a graphical function signature in Stateflow Explorer now restores the data types of the original input and output data of the graphical function.

Using Undo and Redo operations after deleting a graphical function

Stateflow chart editor no longer causes a segmentation violation when Undo and Redo operations are used repeatedly in combination after deleting a graphical function containing input and output data.

Using Undo operation in chart editor after adding chart output data

Using the Undo operation after creating state output data no longer causes errors in chart editing.