Chart-wide debugging

When you simulate a state chart, you can instruct Embed to enter every instruction executed by the C interpreter into a corresponding Log file. If your state chart is not executing correctly, reviewing the Log file can help you erroneous or unwanted code execution.

By default, Embed uses the name of the corresponding block diagram as the Log file name, and stores the Log file in the same directory as the corresponding block diagram.

To enter instructions in the Log file

1.    CTRL+right-click the state chart.

2.    Activate Log Executed C Instructions.

To change the name or location of the Log file

1.    CTRL+right-click the state chart.

2.    Click Browse to enter a new name and location for the Log file.

To examine the Log file

1.    CTRL+right-click the state chart.

2.    Click Open.

The Log file is opened in the default text editor.