Wiki

This version is outdated by a newer approved version.DiffThis version (17 Mar 2017 20:32) was approved by Dan Nechita.

This is an old revision of the document!


Scopy

About

Scopy is a software oscilloscope and signal analysis toolset.

Download Scopy

Installing the application

Once you downloaded the installer, run it and follow all steps.

Launching the application

Run Scopy from the shortcut on your Desktop or from the Start Menu.

Using the application

Home

The Home view is divided into two sections:

  • Devices: Displays a list of devices (USB or remote) that Scopy can connect to. USB devices are detected automatically at startup. The Add button can be used to add remote devices to the list.
  • Web view: Displays the welcome page where useful links can be found.

Scopy Home View


Connecting to a USB device

If a compatible USB device is available it will be displayed under the Select a device section. To connect to that device click on the device and then click the Connect button. If the connection was established, the button will turn green.

Scopy Home View


Connecting to a remote device

To connect to a remote device click on the Plus icon. Enter the IP of the remote device into the Hostname field and click the Connect button. If a device can be detected at the IP you provided, the Connect button will change to an Add button and you can click on it to add the remote device to the list of detected devices. The last step is to click on the icon of the remote device and click on the Connect button.

Scopy Home View


Instruments Menu

Scopy interacts with only one hardware device at a time. Once a device is selected to be used with the application, a list of instruments that are available for that device will be enabled. Each instrument can be opened from the left menu. The icon on the right of the instrument name is a shortcut that allows an instrument to be turned on or off.

The instruments menu can be minimized by clicking on the Scopy button near the top-left window. Scopy Home View


Voltmeter

The voltmeter instrument displays the voltage readings on the two channels of the ADC. A plot of the measurement history is displayed next to the readings.

Voltmeter settings:

  • AC/DC: Selects the measurement domain of a channel: Alternating Current or Direct Current
  • History: Sets the time span of the history a plot should display
  • Histogram: Shows or hides the measurement history plot

To switch to this instrument click on the Voltmeter button from the left menu. Scopy Voltmeter View


Oscilloscope

The oscilloscope instrument consists of a central signal plot and a control panel with the settings for the different instrument options. The plot displays the waveforms that are captured on the available channels.

To switch to this instrument click on the Oscilloscope button from the left menu. Scopy Oscilloscope View

The control panel slides in and out from the right side of the screen and can be opened by pressing the button Scopy Right Panel Settings of any element from the right side of the bottom menu bar. The elements can be: Channel Settings, Cursors, Measure or Trigger.

The channels list is available on the left side of the bottom menu bar. A channel can be activated/deactivated by pressing the radio button on the left of the channel name. Scopy Channel Settings

When pressing on the channel name the channel get selected. Only one channel can be selected at a time. The Channel Settings, Cursors and Measurements settings will all apply (if enabled) to the selected channel.

Scopy Channel Setting Channel settings:

  • Time Base: – It can be changed either by pressing the +/- buttons, writing a value in the edit box. Pressing the center of the range circle toggles between fine/coarse modes.
  • Horizontal Position: – It can be changed either by pressing the +/- buttons, writing a value in the edit box. Pressing the center of the range circle toggles between fine/coarse modes.
  • Volts/Div: – It can be changed either by pressing the +/- buttons, writing a value in the edit box. Pressing the center of the range circle toggles between fine/coarse modes.
  • Vertical Position: – It can be changed either by pressing the +/- buttons, writing a value in the edit box / drag the waveform on the screen vertically using the offset handles on the left of the plot. Pressing the center of the range circle toggles between fine/coarse modes.
  • CH Thickness: Changes the line thickness of the selected channel waveform that is drawn on the plot canvas.


Signal Generator

To switch to this instrument click on the Signal Generator button from the left menu. Scopy Signal Generator View


Power Supply

To switch to this instrument click on the Power Supply button from the left menu. Scopy Power Supply View


Pattern Generator

The pattern generator instrument can be used to generate output from the M2K with user configurable parameters. It consists of 3 parts: the channel manager, the plot and the control panel.

{{ :university:tools:m2k:scopy:pg_3.png?300 | The Run button starts the pattern generation. The Single button should start a single shot generation. It is not currently implemented. The gearwheel button activates the general settings menu in the control panel. The sliders button activates the pattern settings menu in the control panel. The plot shows a preview of the generated signals by the pattern generator. For the enabled channels, the generated waveform is shown. For channel groups (groups of one or more channels) a “decoder” is also shown that shows the binary value of the channel group. The channel manager panel lists all available channels on the device, and allows the user to create custom channel configurations.

The user can enable channels by clicking the button, setting the channel as an output. The channel name is shown in the second column of the channel manager. This name can be changed from the control panel The channel number is in the third column. This is the actual DIO number of the device. The select button is used to merge multiple channels together into a channel group. Channel groups are used to generate more complex patterns that span over multiple channels.

In order to create a channel group, select multiple channels and click the button

The buttons can be used to remove a channel from the channel group or to dissolve the channel group (if the button next to the channel group is clicked). The channel group can also be dissolved if the user selects the channel group and clicks the button. Channel groups can be merged with other channels or channel groups by applying the same procedure as before, select channels and channel groups and group them. An alternative to the select/group mechanism is to drag and drop elements in the channel manager like this: An advantage dragging and dropping elements over using select/group mechanism is that it allows the user to reorder the elements in an intuitive way.

The button hides elements that are not enabled, showing only the enabled elements in the channel manager and plot. Whenever an element in the channel manager is clicked, it becomes highlighted. The highlighted element has a darker tint in the channel manager and the associated waveform in the plot is enclosed within two vertical white lines. The highlighted element indicates that settings in the control panel apply to this element.

The control panel allows the user to set the parameters of the waveform to be generated. The buttons allow navigation through the channel manager. The Pattern combobox allows the user to select one of the currently implemented patterns. The currently implemented patterns are: Clock – generates a clock signal having user selectable frequency, phase and duty cycle Random – generates random values at a user selectable frequency. Binary Counter – generates a binary counter on the channels in the channel group. UART – generates a UART message

The Name editbox changes the name of the channel/channelgroup.





Logic Analyzer

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, 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, 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.



Source code

The source code for the entire application is at github.

university/tools/m2k/scopy.1489770145.txt.gz · Last modified: 17 Mar 2017 18:02 by Dan Nechita