Skip to main content

IAR Embedded Workbench for RL78 5.20

Getting started using Smart Analog (event logging)

In this section:
If you use an emulator and a device that support Smart Analog data collection and display, you can view Smart Analog data as event logs.
  1. To enable Smart Analog data collection, choose Project>Options>Debugger>Driver>Setup and select the option Collect data, see Setup.

  2. To view collected Smart Analog data, you can choose between these alternatives:

    • Choose Driver>Timeline to open the Timeline window and choose Enable from the context menu. You can now view collected Smart Analog data for each channel as a graph (Event graph). See also Timeline window—Events graph.

    • Choose Driver>Event Log to open the Event Log window and choose Enable from the context menu. You can now view the collected Smart Analog data for each channel as numbers. See also Event Log window.

    • Choose Driver>Event Log Summary to open the Event Log Summary window and choose Enable from the context menu. You will now get a summary of all collected Smart Analog data. See also Event Log Summary window.

    Note

    Whenever the Events graph or the Event Log window is enabled, you can also enable the Event Log Summary window to get a summary. However, if you have enabled the Event Log Summary window, but not the Event Log window or the Event graph in the Timeline window, you can get a summary but not detailed information about collected Smart Analog data.

  3. Select the graph and right-click to view the context menu. Here you can choose to:

    • Change the radix (you can choose between displaying values in hexadecimal or in decimal format). Note that this setting affects also the Event Log window and the Event Log Summary window.

    • Show the numerical value of the variables

    • Show the value of the collected Smart Analog data

    • Select the style of the graph (as bars, levels, or linear)

    • Select the size of the graph (S, M, or L)

    • Go to source

  4. Start executing your application program to collect the log information.

  5. To view the information, look at either the Event Log window, the Event Log Summary window, or the event graph for the specific channel in the Timeline window.

  6. If you want to save the log or summary to a file, choose Save to log file from the context menu in the window.

  7. To disable event logging, choose Disable from the context menu in each window where you have enabled it.

Note

In Smart Analog debug mode, the only debug commands that can be used in the C-SPY Debugger are Go, Break, and Stop Debugging.