Wiki

This version is outdated by a newer approved version.DiffThis version (11 Aug 2017 15:47) was approved by amiclaus.The Previously approved version (21 Jun 2017 12:35) is available.Diff

This is an old revision of the document!


Scopy Logic Analyzer

General

To switch to this instrument click on the Logic Analyzer button from the left menu.

Scopy Logic Analyzer

This instrument can run continuously, repeatedly triggering, by pressing the Run button or triggering once, by pressing the Single button.

The logic analyzer instrument consists of a channel manager, a central signal plot and a control panel for different settings.

The channel manager allows the user to enable or disable channels, set triggers, create groups of signals or set protocol decoders to groups. The groups can be created by selecting channels and pressing the button Scopy Group Channels or by dragging one channel/group over another channel/group. The drag and drop mechanism also allows the user to reorder the channels.

The channel manager can be collapsed by pressing the button Scopy Collapse Manager located above the plot.

Logic Analyzer Pin

Channel manager configuration for a pin:

  • Switch for enabling/disabling a channel.
  • Channel name.
  • Channel index.
  • Dropdown for trigger selection.
  • Check box for selecting a channel.

Logic Analyzer Pin in Group

Channel manager configuration for a pin belonging to a group:

  • Channel name.
  • Channel index.
  • Dropdown for decoder role selection.
  • Dropdown for trigger selection.
  • Orange delete mark for removing channel from group.

Logic Analyzer Group

Channel manager configuration for a group:

  • Switch for enabling/disabling a group.
  • Arrow button for collapsing/expanding the group.
  • Group name.
  • Dropdown for decoder selection.
  • Orange delete mark for removing the group
  • Check box for selecting the group.

The plot displays the signal data captured on the enabled channels and the decoded data for active groups.

The control panel can be opened by pressing the button Scopy Right Panel Settings of any element from the right side of the bottom menu bar, by using the General Settings button Scopy Right Panel Settings or the Channel Settings button Scopy Right Panel Settings. The available elements in the bottom menu bar are Trigger Settings and Cursor Settings.

Logic Analyzer General Settings General Settings:

  • Time Base: – It can be changed either by pressing the +/- buttons or writing a value in the edit box. Pressing the center of the range circle toggles between fine/coarse modes.
  • Time Trigger Position: – It can be changed either by pressing the +/- buttons or writing a value in the edit box. Pressing the center of the range circle toggles between fine/coarse modes.




The default values for this instrument can be set by pressing the button Scopy Reset Instrument.

Channel Settings:

If a channel is highlighted in the channel manager, the settings for that particular channel are displayed in this panel. All the channels/groups allow the user to change the name by writing a value in the edit box.

The buttons Scopy Channel Navigation from the top right side of the panel allow navigation through the list of active channels.

For groups, if a decoder is set, the required and optional roles for that decoder are displayed in this panel.



Use Cases


Prerequisites

  1. Connect ADALM2000 to your computer via USB.
  2. Start Scopy and connect to the device.
  3. From the left menu, choose the Logic Analyzer.


Enable & run multiple channels

Click to display ⇲

Click to hide ⇱

  1. Disable 8 channels using the channel manager located in the left side of the plot. To disable a channel use .
  2. Use Hide inactive channels to hide the disabled channels. The plot will contain only the enabled channels.
  3. To acquire 1 s of data, change the time base to 100 ms, using the time base selector in the right menu. Open the right menu using Scopy Right Panel Settings.
  4. Start the acquisition using Start the Logic Analyzer. After 1 s you should see 8 signals on the plot.


Reset instrument

Reset instrument to default settings

Click to display ⇲

Click to hide ⇱

  1. Open the right menu using Scopy Right Panel Settings.
  2. Click Scopy Reset Instrument.
    The expected result is the following:
    All the 16 channels should be enabled and visible, the time base should have the value 1 ms. The time trigger position should be 0.


Create channel groups, decode & change UI elements

Create channel groups, run and decode the signals, setup protocol decoders and change visual parameters for signals (color, thickness).

Click to display ⇲

Click to hide ⇱

  1. Create a channel group with 3 channels.
    Use Select channel to select the channels.
    After selecting 3 channels, use Scopy Group Channels to create the group
    Create channel group
  2. Move the channel group at the top of the channel list. Use drag and drop to move the channel group.
  3. Setup a Parallel decoder for this group. Use the dropdown located in the right side of the group name to set a decoder.

    For each channel in this group, set its role for the decoder using the dropdown located in the right side of the pin’s number. The roles for these 3 channels should go from D0(Data0) to D2(Data2). The order is not relevant.

  4. Start the acquisition using Start the Logic Analyzer. On the plot, above the 3 channels, the decoded information should appear.

    Stop the acquisition.
  5. Change the name of the existing group.
    Select the group. Open the right menu using Scopy Right Panel Settings.
    Use the mouse wheel to scroll until the Name text box is visible. Change the name of the group to “GROUP 1”.
  6. Create another channel group with 2 channels. (See step 1). Merge the two channel groups.
    To merge two channels group, use drag and drop. Select one channel group, and drag it inside the other channel group.
    You should have 5 channels in the first channel group (“GROUP1”) and the second channel group should stay the same.
  7. Complete the roles for the remaining channels in GROUP1. Observe the decoded value changing.
  8. Change signal color and thickness.
    Select GROUP1. Open the right menu using Scopy Right Panel Settings. Use the mouse wheel to scroll until the Thickness dropdown. Set the thickness to 5. This should change the thickness of every channel in the group.
  9. Select the first channel from the group. Use Scopy Right Panel Settings to open the right menu. Change the High color to yellow.


Trigger Settings

Click to display ⇲

Click to hide ⇱

  1. From the left menu, choose the Pattern Generator tool.
    Select channel 0 and create a group.
    Select the group and set the Clock pattern using the right menu.
    Do not start the Pattern Generator.
  2. From the left menu, choose the Logic Analyzer tool.
    Open the right menu using Scopy Right Panel Settings.
    Use the time base selector to set the time base at 1 ms.
    Use the time position selector to set the time position at 0 ms.
    Close the right menu using Scopy Right Panel Settings.
  3. Set a “rising edge” trigger on channel 0, using the channel manager in the left side of the plot
  4. Press to acquire one buffer of data.
    The plot should remain the same, without any signals.
  5. Now Start the Pattern Generator using the left menu.
    The Pattern Generator generates a clock on the first channel, so the Logic Analyzer should trigger, and the signals should now be visible on the plot.


Interaction with Scopy Pattern Generator

Click to display ⇲

Click to hide ⇱

  1. From the left menu, choose the Pattern Generator tool.
    Select channel 0 and create a group.
    Select the group and set the UART pattern using the right menu. Set the following parameters:
    1. baud: 115200
    2. data to send = “hello”.
  2. Start the Pattern Generator using the top right button.
  3. From the left menu, choose the Logic Analyzer.
    Create a group that contains channel 0. The group will be created at the bottom of the channel manager. Select the group and open the right menu using
  4. Set the UART decoder to the group.
  5. Set the RX role to channel 0.
  6. Press to acquire just one buffer of data.
    Depending on the time base, the displayed data may change. At a time base of 1ms, the result is the following.

    The decoded data is not visible, but using the “zoom” feature, you can check out specific areas of the plot.
    To zoom in, place the mouse over the plot and use the mouse wheel
  7. Enable the cursors using .
    Use the handles from the plot to move the cursors. Check their position and the measured signal using the cursor status below the plot.

Return to Scopy Main Page

university/tools/m2k/scopy/logicanalyzer.1502459273.txt.gz · Last modified: 11 Aug 2017 15:47 by amiclaus