Using Gscope Applications

When a gscope application is run from the command line, you will see the main window, as shown in Figure 1. This window is the GtkScopeApp widget. Within this widget, the canvas with the black background is the GtkScope widget. The GtkScopeApp widget has a menubar, the GtkScope canvas with the X and Y axis rulers, the zoom and bias factors and polling period of the scope and display parameters for each signal. Each of these elements are described below.

Figure 1. Gscope Main Window

The Menubar

The menubar consists of the File, View, Settings, Scopes and Help menus. These menus are described below.

The GtkScope Canvas

The GtkScope canvas displays the signal data. It is surrounded by an x-axis and a y-axis ruler. In the polling mode, the x-axis ruler is sized in seconds. In the playback mode, the x-axis is sized so that each pixel represents one sampling period (see the section called Sampling Period). For default values of the zoom and bias factors (see the section called Zoom and Bias Factors), the y-axis is sized so that it ranges from 0 to 100. A left click on any part of the canvas will popup a window that displays the x-axis and the y-axis coordinates.

Zoom and Bias Factors

The zoom and bias factors allow scaling and translating the signal data. The zoom parameter scales the data and by default is set to 1. When the Y Zoom scale is different from 1, the y-axis is scaled accordingly. For instance, when the y-zoom factor is set to 0.5, the y-axis ranges from -50 to 150 (range is two times the default and centered at 50). The bias parameter translates the data and by default is set to 0. The X Bias scale is active in the playback mode only since it does not make sense to translate signal data along the time axis in polling mode. Its value ranges from 0 to 1. The Y Bias scale ranges from -2 to 2. A unit change in the y-bias value translates the scope data by the size of the y-axis (which depends on the y-zoom value) and the y-axis is translated accordingly.

The zoom and bias factors can be changed by using the spin buttons or by directly typing into the text area. However, to activate the change in value, the return key must be pressed. When the values are changed but not activated, the background color of the text area is changed from its original color. When the return key is pressed and the new value is activated, the background color of the text area is restored to its original color.

Sampling Period

Signal Display Parameters

The display parameters for each signal are shown below the zoom and bias factors. For instance, 5 signals are shown in Figure 1 in the section called Using Gscope Applications (actually the Audio signal is hidden). Each signal has a name and a color associated with it. The signal name is shown in the signal color in the Signal Name button. Left clicking on the Signal Name button toggles display of the signal. When the signal is not displayed, the Signal Name button has a light background as shown by the Audio signal in Figure 1 in the section called Using Gscope Applications. To the right of this button is the Value button. In polling mode, when this button is toggled, the signal value is continuously displayed.

Display options for each signal can be set by right clicking on the Signal Name button. This action will pop a window shown in Figure 2. The name and the color of the signal are shown at the top of the window. The signal color can be changed by clicking on the top-right button. The Mode button determines the mode in which lines are drawn (see Line Mode in the section called The Menubar). Note that this mode button allows each signal to be drawn in a different mode. The next two values Min and Max are specified as the minimum and the maximum values of the signal data. For default values of the zoom and bias factors (see the section called Zoom and Bias Factors), the minimum value of the signal is shown on the bottom of the scope and the maximum value of the signal is shown on the top of the scope. Note that the signal can generate values above the maximum or below the minimum. However, these values will not be visible in the scope for default zoom and bias factors. When the minimum and the maximum values are changed, they can be activated by pressing the return key or by clicking on the Apply or the Ok buttons.

Figure 2. Signal Options Window