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
Saving Your Work, Exiting HP VEE, and Re-starting Your Program
To Save Your Work and Exit HP VEE
Shortcut: Press Ctrl-E to exit HP VEE.
To Re-start UP VEE and Run Your Program
Helping Yourself
Using Objects
To Delete an Object from the Work Area
- 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)
- OR -
Press Ctrl-V.
To Copy an Object
- OR -
Click on an object to highlight it, the press Ctrl-C.
To Duplicate (or Clone) an Object
An outline of the duplicated object appears.
To Move an Object
The object is highlighted.
Shortcut: You can also click and drag the object.
To Edit the Name of an Object
A Properties dialog box appears with the current title highlighted.
- OR -
To Switch an Object Between Iconic and Open Views
To Size an Object
- OR -
Open the object menu and click Size. You will see a small right angle on the cursor.
To Select or Deselect an Object
To Select Several Objects
To Select/Deselect All Objects
To Edit Objects
- 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
To Move the Work Area
To Clear the Work Area
To Delete Lines
Object Pins and Terminals
To Add Data Input Terminals to an Object
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
Shortcut: Just place the mouse pointer over the terminal and press CTRL-D.
To Examine or Alter Terminals
You can also check the data type this way.
To Edit the Terminal Name
(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.To display a signal automatically:
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.
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.
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.
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.
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.
When the scope is triggering properly, the trigger mode portion of the status line is blank.
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.
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.
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.
To make frequency measurements automatically:
The automatic measurement capability of the scope makes frequency measurement easy, as the following steps demonstrate.
To make time measurements automatically:
You can measure the following parameters with the scope: frequency, period, duty cycle, width, rise time, and fall time.
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.
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.
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.
Sin (theta) = (second change in y)/(first change in y)