Lab 1: Introduction To HP VEE and Instruments

Quick Start to HP VEE - Visual Programming

What is HP VEE?

HP VEE is a programming language (a.k.a., graphical programming language) optimized for building test and measurement applications - especially programs with operator interface.

The Development Environment Components

Using Menus

    1. Click and hold Device to open the menu. A pull-down menu appears.
    2. Move the mouse pointer down the Virtual Source submenu, then right to Function Generator, and then release the mouse button.
    3. Move the Function Generator to the center of the work area, and click to place the object.
    4. Now open the Function Generator object men-u by clicking the horizontal bar in the upper left-hand corner of the object.

Saving Your Work, Exiting HP VEE, and Re-starting Your Program

To Save Your Work and Exit HP VEE

    1. Select File => Save As ... and complete the dialog box.
    2. Select File => Exit to close the HP VEE application window.

Shortcut: Press Ctrl-E to exit HP VEE.

To Re-start UP VEE and Run Your Program

    1. PC: In Windows95 or Windows NT 4.0 or greater, click Start, moves to the HP VEE 5.0 submenu, and select HP VEE.
    2. Select File => Open and complete the Open File dialog box.
    3. Click the Run button - which looks like a small arrowhead - on the tool bar (below the Debug menu).

Helping Yourself

Using Objects

To Delete an Object from the Work Area

    1. Place the mouse cursor over the object menu and double-click.

- OR -

Open the object menu, and select Cut.

- OR -

Select the object (click on it) and press Ctrl-X.

To Paste a Deleted Object

(To "Undo" a Cut)

    1. After an object has been deleted, click Edit => Paste. An outline of the object appears. Place the object and click to release it.

- OR -

Press Ctrl-V.

To Copy an Object

    1. Click on an object to highlight it, then click Edit => Copy.

- OR -

Click on an object to highlight it, the press Ctrl-C.

To Duplicate (or Clone) an Object

    1. Open the object menu and select Clone.
    2. An outline of the duplicated object appears.

    3. Move the outline to the desired location, and click to place the object.

To Move an Object

    1. Open the object menu and select Move.
    2. The object is highlighted.

    3. Place the mouse pointer over the object, press and hold the left mouse button (called "dragging"), while you move the object to the desired location.
    4. Release to place the object.

Shortcut: You can also click and drag the object.

To Edit the Name of an Object

    1. Open the object menu and select Properties...
    2. A Properties dialog box appears with the current title highlighted.

    3. Type the new title and click OK

- OR -

    1. Double-click the object title bar to go directly to the Properties dialog box.
    2. Type in the new title and click OK.

To Switch an Object Between Iconic and Open Views

    1. To switch from an open to iconic view, click the dot on the right end of the object's title bar. To return to an open view, double-click the icon.

To Size an Object

    1. Place the mouse pointer over the lower right-hand corner of the object until you see a right-angle, then click-and-drag to the desired position.
    2. - OR -

      Open the object menu and click Size. You will see a small right angle on the cursor.

    3. Move the right angle to desired position of the lower-right corner and click.

To Select or Deselect an Object

    1. An object is selected when you click it. HP VEE puts a shadow behind it. To deselect it, just move the mouse pointer over any open area and click.

To Select Several Objects

    1. Press Ctrl, then click-and-drag a rectangle around the objects to be selected.

To Select/Deselect All Objects

    1. To select all objects, click Edit => Select All. (Or press Ctrl-A.)
    2. To deselect them, click on an open area in the window.

To Edit Objects

    1. Click Edit on the menu bar and select the operation you want.

- OR -

Place the mouse pointer anywhere on blank work area space and click the right mouse button.

A pop-up Edit menu appears.

To Create Data Lines Between Objects

    1. Click on or just outside the data output pin of one object, the click on the data input pin of another. (A line appears behind the pointer as you move from one pin to the other.)

To Move the Work Area

    1. (Make sure there is at least one icon in the work area.) Place the mouse pointer anywhere on the background of the work area, press and hold the left mouse button, and move the work area in any direction.

To Clear the Work Area

    1. Select File => New.

To Delete Lines

    1. Press Shift-Ctrl and click the line you want to delete. Or select Edit => Delete Line and click the line you want to delete.

Object Pins and Terminals

To Add Data Input Terminals to an Object

    1. Open the object menu and select Add Terminal => Data Input

Shortcut: Just place the mouse pointer over the terminal input area and press CTRL-A.

To Delete Data Input or Output Terminals from an Object

    1. Open the object menu and select Delete Terminal => Input.... choose the input to delete, and click OK.

Shortcut: Just place the mouse pointer over the terminal and press CTRL-D.

To Examine or Alter Terminals

    1. Double-click on the terminal. Change any of the fields, if appropriate, then click OK.

You can also check the data type this way.

To Edit the Terminal Name

    1. Double-click the terminal. The Name input field is highlighted.
    2. Type the new name and click OK.

(The above was taken directly out of Helsel, Robert - Hewlett-Packard Company. Visual Programming with HP VEE, 3rd ed. New Jersey: Prentice Hall PTR, 1998.)

HP 33120A Function Generator / Arbitrary Waveform Generator

Introduction

The HP 33120A is a high-performance 15 MHz synthesized function generator with built-in arbitrary waveform capability. It uses direct digital-synthesis techniques to create a stable, accurate output signal for clean, low-distortion sine waves. It also gives you fast rise and fall-time square wave, and linear ramp waveforms down to 10 mHz and up to 15 MHz in most cases. Other standard waveforms you can generate easily with this state-of-the-art equipment includes triangle, noise, sin(x)/x (or Sinc function), exponential rise and fall, cardiac, and dc volts. One of the most important features that comes with this equipment is its four downloadable 16,000-point arbitrary waveform memories, which means you can create user defined arbitrary waveforms and download it onto the non-volatile memory of the function generator for late use. This is an extremely versatile feature that allows for almost endless possibilities of waveforms this equipment can generate. One other feature worth mentioning is that this function generator has built-in standard HP-IB and RS-232 interfaces, this allows it to be connected to other compatible HP testing equipment and to a work station equipped with an interface card, this way the operation of this equipment can be remotely controlled by the work station. We will demonstrate this capability using HP VEE a little bit later.

Getting to know the equipment

Now familiarize yourself with the front panel of the function generator, although all those keys on there could seem a little confusing, but they are actually organized into 4 groups.

(1) The Function / Modulation keys. These are the first 6 keys from the left on the top row, they represent all the standard waveforms you can generate as well as any possible arbitrary waveforms users have defined. These buttons will be the first step in generating a desired waveform.

(2) The Waveform Modify keys. They are located directly below the Function / Modulation keys on the left side of the bottom row. They are used to set and modify specifications of the generated waveform, such as frequency and amplitude.

(3) The Enter Number unit keys. These include the two columns of keys directly to the left of the output terminals near the right edge of the front panel, and the big round knob above those columns. These are used to enter numbers into the function generator such as when setting the frequency for a sine wave. There are three basic ways you can enter a number into the equipment, sometimes it is easier use one instead of another, but generally which way you choose is mostly up to your preference.

Method 1: Use the arrow keys to edit individual digits. Use the left or right arrows to move the highlighted digit to the left or right, then use up or down arrows to increase or decrease the value of the highlighted digit.

Method 2: Use the arrow keys and the knob. Use the left right arrows to move the highlighted digit as before, but instead of using the up or down arrows, use the knob to increase or decrease the value of the highlighted digit.

Method 3: Use the "Enter Number" mode. If you observe carefully, you will see that many of the keys on the front panel has a single digit number to their left, you can enter a number directly using these keys. First push the "Enter Number" key which is directly below the "Arb" key, then enter the desired number using the numeric keys, then either press "Enter" or one of the four arrow keys which each represent a unit of measurement printed to its right. To cancel anytime in this process, just press "Shift- Cancel".

(4) The Miscellaneous keys. There are a few more keys on the second row between the Modify keys and the Enter Number keys, they are used for some miscellaneous purposes such as storing a current state, etc.

Examples

Now you have familiarized yourself with the front panel, let's do some simple examples.

(1) Generating a sine wave.

Step 1: Turn on the function generator; the power button is near the left most edge of the front panel.

Step 2: After the generator has completed its start up self-test, press the "sine" key which is marked by a little sine wave.

Step 3: Enter the desired frequency by first pressing the "Freq" key, then use one of the three above methods to enter a frequency of 10 kHz. If the "Enter Number" mode is on, the words "Num" will flash on the screen. Note: You can change the units by highlighting it first using the left or right arrows, then use either the knob or the up and down arrows key to cycle through the available units.

Step 4: Enter the amplitude by first pressing the "Ampl" key, and then enter an amplitude of 5 volts using again one of the three methods described above.

Now you should have a sine wave with frequency of 10 kHz and amplitude of 5 volts.

Exercise: Change the frequency of this sine wave to 500 Hz, and amplitude to 500 mV.

Exercise: Generate a square wave with frequency 2.5 MHz and amplitude of 65000 µV using two different methods.

Bonus: Set the duty cycle for this square wave to 60%. Note: for square wave, duty cycle can go from 20% - 80%.

(2) Generating a DC offset voltage.

Step 1: Press the "Offset" key.

Step 2: Enter a magnitude of - 1.5 volts. Note: If the "Enter Number" mode is enabled, press the "+-" key to toggle the value between positive and negative.

(3) Output a stored arbitrary waveform.

There are five built in arbitrary waveforms (sinc, negative ramp, exponential rise, exponential fall, and cardiac). The list may also contain up to four user defined arbitrary waveform names.

Step 1: Press the "Shift and Arb" keys, which will bring up the arbitrary waveform list.

Step 2: The first choice on the list is sinc, to see the other members of the list, either use the knob or the left and right arrow keys to cycle through the choices. Now go back to sinc, and press "Enter". Note the "Arb" indicator turns on.

Step 3: Now give this waveform a frequency of 20 kHz and an amplitude of 5 volts as before.

Exercise: Display the other four built in waveforms in order, adjust frequency or amplitude as desired so you can see what they all look like.

(4) To store and recall an instrument state.

You can store up to three different instrument states in non-volatile memory. This enables you to recall the entire instrument configuration with just a few key presses from the front panel, even after the instrument has been turned off.

Step 1: Create a Triangle waveform with frequency 1 kHz and amplitude 3 volts.

Step 2: Press the "Shift-Store" keys to turn on the state storage mode. Three memory locations (numbered 1, 2, and 3) are available to store instrument configurations. Right now "STORE 1" should be on the screen representing memory location 1, it will remain there for 10 seconds, repeat this step as needed. Use the up and down arrows to select memory location 2.

Step 3: Press "Enter" to store current state to memory location 2.

To recall a previously stored state, first change the configuration of the current state by generating a sine wave.

Step 4: Press the "Recall" key.

Step 5: Use up and down arrow to select the correct memory location, in this case, memory location 2.

Step 6: Press "Enter" key to recall the state.

An HP VEE Example

As mentioned above, HP 33120A is capable of being controlled remotely by a computer; many complicated tasks can be significantly simplified using the computer interface. Assuming you have read the section on HP VEE, we will now go through a quick example of controlling the function generator using HP VEE. In this example, we will generate a frequency sweep; this is useful to determine the frequency response of a system.

Step l: Start HP VEE, place the HP33120A instrument panel driver in the working area by going to I/0 -> Instrument Manager.

Step 2: In the panel driver object, to the right of the "Reset" button, there should be a dialog box with the name of the current panel name. Right now, it should be "Main Panel". From this panel, you can select the appropriate waveform to be swept and set other attributes for this waveform as desired. For this example, select the sinusoidal wave with amplitude of 1 volt. Note: To change an attribute, just left click on the corresponding dialog box, select or type the desired value, then select "OK".

Step 3: Left click on dialog box with the words "Main Panel", from the pop up window, highlight "Sweep Panel", and then click on "OK". Notice the dialog box now says "Sweep Panel" and the controls on the panel have now changed to the appropriate sweep controls.

Step 4: Set the "Swp Start" to 1000 Hz, this is the frequency where the sweeping will start from. Set "Swp Stop" to 100 kHz, this is the frequency where the sweeping will end. Together, they define the range of the sweep. Leave the rest of the attributes alone. "Swp Time" should be 1, "Spacing" should be linear, "TrigSource" should be immediate.

Step 5: Click on the "Swp State" box to toggle it on, now the function generator should start sweeping from 1 kHz to 100 kHz continuously, then back to 1 kHz to start over.

Step 6: To stop the sweeping, click on "Swp State" dialog box again to toggle it off.

Exercise: Generate a square wave sweep from 1 kHz to 10 kHz with sweep time of 2s.

HPE3631A DC Power Supply

The HPE3631A is a high performance 80-Watt triple output DC power supply with HP-IB and RS-232 interfaces, it has excellent load and line regulation and low ripple and noise, as well as the ability to store and recall instrument states.

The operation of this power supply is fairly simple and straightforward. The following example illustrates usage of the equipment.

Example: In this example, we will set an output level for the 6 volts output terminal.

Step 1: Turn on the power supply; the power button is located at the lower left hand corner of the front panel.

Step 2: Press the "+6V" key, which is the first key from the left on the first row. Now the screen should show the current output voltage of the 6-volt output.

Step 3: To change the output voltage, either use the big round knob or use the left and right arrow key on the right side of the front panel. Set it to +5 volts.

Exercise: Send -20 volts to the -25 volt output terminal.

You can also store and recall the current instrument state using very similar procedures as for the HP33120A function generator.

Another key you will frequently use is the "Output On/Off" key; this is to toggle all the outputs either on or off. It is recommended that you turn off the outputs when making a change to your circuits.

HP 54616C Oscilloscope

Introduction: HP 54616C offers exceptional waveform viewing and measurements in a small, lightweight package. This oscilloscopes give you: 1 ns peak detect; 2 GSa/s sample rate; 500 MHz bandwidth, and 1 ns/div Main and Delayed time bases; Selectable input impedance; Protection of the internal 50 Ohm load; Horizontal and vertical pan and zoom; Color Display. This oscilloscope is very easy to use because of their familiar controls and real time display.

To connect a signal to the oscilloscope:

The input impedance of this scope is selectable either 50 Ohm or 1 M-Ohm. The 50-Ohm mode matches 50-Ohm cables commonly used in making high frequency measurements. The 1 M-Ohm mode is for use with probes and for general-purpose measurements.

  1. Connect the 10:1 probe from channel 1 to the front-panel probe compensation signal on the oscilloscope.
  2. Press [Autoscale].
  3. Use a nonmetallic tool to adjust the trimmer capacitor on the probe for the flattest pulse possible as displayed on the scope.

To display a signal automatically:

  1. Connect a signal to the oscilloscope.
  2. Press [Autoscale].

When you press [Autoscale], the scope changes the front-panel setup to display the signal.

However, if you pressed [Autoscale] unintentionally, you can use the Undo Autoscale

Feature. To use this feature, perform the following step

The scope returns to the configuration in effect before you pressed [Autoscale].

To set up the vertical window:

The following exercise guides you through the vertical keys, knobs, and status line.

  1. Center the signal on the display with the Position knob.
  2. The Position knob moves the signal vertically, and it is calibrated. Notice that as you turn the Position knob, a voltage value is displayed for a short time indicating how far the ground reference is located from the center of the screen.

  3. Change the vertical setup and notice that each change affects the status line differently.
  4. You can quickly determine the vertical setup from the status line in the display.

    Channels 1 and 2 have a vernier softkey that allows the Volt/Div knob to change the vertical step size in smaller increments. These smaller increments are calibrated, which results in accurate measurements.

    To set up the time base:

    The following exercise guides you through the time base keys, knobs, and status line.

        1. Turn the Time/Div knob and notice the change it makes to the status line.
        2. Change the horizontal setup and notice that each change affects the status line differently.

    A softkey menu appears on the display with six softkey choices.

    To trigger the oscilloscope:

    The following exercise guides you through the trigger keys, knobs, and status line.

    1. Turn the trigger Level Knob and notice the changes it makes to the display.
    2. As you turn the Level knob or press a trigger menu key, for a short time two things happen on the display. First, the trigger level is displayed in inverse video. If the trigger is de coupled, it is displayed as a voltage. If the trigger is ac coupled, it is displayed as a percentage of the trigger range. Second, if the trigger source is turned on, a line is displayed showing the location of the trigger level.

    3. Change the trigger setup and notice that each change affects the status line differently.
      • Press [Source]. A softkey menu appears on the display showing the trigger source choices.
      • Toggle each of the softkeys and notice that each key causes the status line to change.
      • Press [External Trigger]. A softkey menu appears on the display showing the external trigger choices.
      • Press [Mode]. A softkey menu appears on the display with five trigger mode choices.
      • Toggle the Single and TV softkeys and notice that they affect the status line differently. (You can only select TV if the trigger source is either channel 1 or 2.)

      When the scope is triggering properly, the trigger mode portion of the status line is blank.

        • Press [Slope/Coupling]. A softkey menu appears on the display. If you selected Auto level, Auto, Normal, or Single as a trigger mode, six softkey choices are displayed.
        • Toggle each of the softkeys and notice which keys affect the status line.
      • External trigger input coupling (ac or dc) is selected from the External Trigger menu.
        1. Adjust the Holdoff knob and observe how it changes the display.

    Holdoff keeps the trigger from rearming for an amount of time that you set. Holdoff is often used to stabilize the display of complex waveforms. The Holdoff range is from 300.0 ns to about 13.5 s.

    To use pan and zoom:

    Pan means to move the acquired waveform horizontally or vertically. Zoom means to expand or compress the acquired waveform horizontally or vertically. Pan and zoom allows you to examine your captured waveform once the acquisition has been stopped.

    1. Press the [Stop] key.
    2. To pan horizontally, turn the Delay knob.
    3. To pan vertically, turn the Position knob.
    4. To zoom horizontally, turn the Time/Div knob.
    5. To zoom vertically, turn the Volts/Div knob.

    When you pan and zoom after the acquisition is stopped, the displayed waveform changes to reflect the data acquired by the last trigger.

    To use storage oscilloscope operation:

    There are four front-panel storage keys. They are white instant action keys that change the operating mode of the oscilloscope. The following steps demonstrate how to use these storage keys.

    1. Connect a signal to the scope and obtain a stable display.
    2. Press [Autostore]. Notice that STORE replaces RUN in the status line on the top line of the display.
    3. For easy viewing, the stored waveform is displayed in half bright and the most recent trace is displayed in full bright. Autostore is useful in a number of applications.

      • Displaying the worst-case extremes of varying waveforms
      • Capturing and storing waveform
      • Measuring noise and jitter
      • Capturing events that occur infrequently
    4. Using the Position knob in the Vertical section of the front panel, move the trace up and down about one division.

    To make frequency measurements automatically:

    The automatic measurement capability of the scope makes frequency measurement easy, as the following steps demonstrate.

    1. Connect a signal to scope and obtain a stable display.
    2. Press [Time].
    3. Toggle the Source softkey to select a channel for the frequency measurement.
    4. Press the Freq softkey. The scope measures the frequency and displays the result on the lower line of the display.

    To make time measurements automatically:

    You can measure the following parameters with the scope: frequency, period, duty cycle, width, rise time, and fall time.

    1. Connect a signal to scope and obtain a stable display.
    1. Press [Time]. A softkey menu appears with softkey choices. 3 of the softkeys are time measurement functions.
    2. Press the Next Menu softkey.
    3. Press the Rise Time softkey. The scope measures the rise time of the signal and displays the result on the display.

    To make voltage measurements automatically:

    You can measure the following voltage parameters with the scope: peak-to-peak, average, rms, maximum, minimum, top, and base.

    1. Connect a signal to scope and obtain a stable display.
    2. Press [Voltage]. A softkey menu appears with six softkey choices. 3 of the softkeys are voltage measurement functions.
    3. Source Selects a channel for the voltage measurement

      Voltage Measurements Three voltage measurement choices are available: Vp-p, Vavg, and Vrms.

      Clear Meas erases any measurement results from the display.

    4. Press the Vrms softkey. The scope measures the rms voltage and displays the result on the display
    5. Press the Next Menu softkey. Another voltage measurement softkey menu appears.

    To use the XY display mode:

    The XY display mode converts the scope from a volts vs. time display to a volts vs. volts display. This exercise shows a common use of the XY display mode by measuring the phase shift between two signals of the same frequency with the Lissajous method.

    1. Connect a signal to channel 1, and a signal of the same frequency but out of phase to channel 2.
    2. Press [Autoscale], press [Main/Delayed], then press the XY softkey.
    3. Center the signal on the display with the Position knobs, and use the Volts/Div knobs and the vertical Vernier softkeys to expand the signal for convenient viewing.
    4. Press [Cursors].
    5. Set the Y2 cursor to the top of the signal, and set Y1 to the bottom of the signal.
    6. Move the Y1 and Y2 cursors to the center of the signal.
    7. Calculate the phase difference using formula below.

    Sin (theta) = (second change in y)/(first change in y)