The main window


Launching the program, the main window is presented:


Different areas can be identified:

Command area
 
In this area the START and STOP frequency and the running mode can be selected, from here the sweeping cycle is started and stopped
Graphic area
 
In this area the samples read back from the AD/C will be plotted, here the DUT output can be analyzed.
Auxiliary commands area
 
Special commands to interface additional devices like the input/output attenuators or the amplifier gain control are available in this area

Command area

The command area of the main window allows user to select the START and the STOP frequency, the sweeping mode and to run the measuring cycle.

START and STOP frequencies can be selected either by clicking any "arrow" that identify the single digit "thumbswitch" style or entering the numeric value with the keyboard.
Move the mouse over the frequency you want to change.

Click it, the program will present the value without the "decimal" separators, enter the new frequency in Hz. Press the "TAB" key or click anywhere in the window, program will verify that the new value can be accepted and will present it formatted.

The START frequency is the frequency always generated by the DDS, if you want to use the sweeper, as a fixed generator, just enter here the frequency you want to output. When the program is launched the generator is activated, a reset command is issued to the DDS, and the device is initialized to the START frequency. Every time the START frequency is changed, the appropriate command is addressed to the DDS forcing to generate the new frequency.

The STOP frequency can be less or greater than the START frequency. The sweeping run will always begin at the START frequency and the output will be increased or decreased until the STOP value is reached. Then cycle restarts.

The SWEEP ON button starts the sweeping run. The number of steps managed by the program is 400 per each cycle, resolution is 1 Hz. Before to initialize the cycle, the program tests that the difference between the START and the STOP frequency is at least 400 Hz, in case of error request to select new frequencies is presented.

400 is the number of samples plotted on the Horizontal Frequency axe (X). The program automatically calculates the size of the single step and presents this value in Hz.

The max frequency of the Horizontal axe will be also calculated according with the START and the STEP frequencies.

The resolution of the Amplitude axe (Y) depends on the characteristic of the AD/C used.

While the SWEEP ON button is pressed his label is changed to SWEEP OFF. Press it again will stop the sweeping process.

Three sweeping modes are available:

Standard: the measure from DUT is read once and plotted at every step.
Slow: the program reads 3 times the AD/C output per each step and calculates the average value.
Very slow: the AD/C output is read 5 times, the max and min values are ignored, the average value is calculated

Sweeping modes are available only when the h/w is interfaced via the parallel port.

Graphic area

This is the area where the output of DUT is plotted.


When the sweeping cycle is running the program reads back from the AD/C the 400 samples per cycle and real time plots them on the screen.

Different scales can be selected for the Amplitude Y axe:

Linear scale
Logarithmic 1V (1 Volt is the Vref)
Logarithmic 1V (1 Volt is the Vref) and 10dB of offset
Logarithmic 10V (10 Volt is the Vref)

 

To change the full scale value, click it and enter the new one.
Pressing the TAB key the scale is redraw according with the new value entered.
The graph will be refreshed based on the new scale.

The graph plotted can be analyzed selecting the view "TABLE" from the menu bar or pressing the button "Table".
The "Table" view lists the Frequency and the Amplitude (Volt or dB) of each sample received from the AD/C.
The mouse can be moved around the graph.
The position of the pointer is shown in the fields "Cursor position"

"SetUp/Preference" menu allows forcing the pointer to follow the path of the graph (white crossing lines) when moved.

The analysis of the graph can be also done with the help of markers.

Select the "View/Marker" from the menu or press the button "Marker". The program presents the position of 4 markers: 2 for the Frequency axe (blue vertical lines) and 2 for the Amplitude axe (blue horizontal lines).

The value of the "Frequency" and "Volt/dB" of each marker are shown in the "Marker" windows

Position the marker moving the cursor over the graph then press the mouse button:

Marker Mouse button
M1Click left
M2Click right
M3Shift + Click left
M4Shift + Click right

or click over the field "Frequency" for the marker M1 and M2, "Volt/dB" for the marker M3 and M4 and enter the new value.

Auxiliary commands area

Two auxiliary windows (menu "View/AUX1" and "View/AUX2") allow interfacing:

  • 2 digital circuits
  • 1 analog device

Command buttons were created here to manage the attenuator circuits that control the output of the DDS unit and the input from the AD/C. The I2C standard protocol has been also implemented, this can interface several devices like digital potentiometers that are useful to control the gain of a linear amplifier.

The auxiliary command windows are very flexible and can be fully personalized, via the "SetUp/Configuration" menu. It is possible to assign to the windows any title like "Generator out" or change the description of the buttons and their values. The Configuration paragraph details the different options available.

AUX 1 commands

8 bistable independent buttons are available in each window, one or more can be pressed at the same time. The value of the pressed buttons is shown and updated each time a specific button changes the status.

8 output lines are connected to the 8 buttons (see the Hardware Interface paragraph), in order to drive 8 on/off devices.

The original design was focused to drive a couple of digital attenuators (Macom AT200, 4 bits, DC to 2GHz, 30dB att.) or an array of solid state rele.

AUX2 commands

A slide bar is also available in the second Auxiliary window (AUX2).
Use this command to interface a digipot device like the chip Maxim 1803 - Addressable Digital Potentiometer or any device that accepts the I2C bus/protocol.
Default design was devoted to control the gain of the input amplifier.