To prepare you for later experiments in this course, we have designed a set of exercises to help you familiarize yourself with the capabilities of our oscilloscopes. Some of you have only briefly used 'scopes in your first year lab courses, while others may already be adept with them due to research experience. You should learn something either way, as the capabilities of scopes are truly impressive.
During the lab, you'll be asked to characterize six different unknown signals. In order to get credit for completing the lab, you will need to submit a document in which you include a photo (or sketch or screenshot) or each of the six signals as well your characterizations of that signal.
Hey, I know how to use a scope already!
We'd still encourage you to go through the activities here, as you may learn something useful you didn't know was even a feature of a scope. You're also going to hand in a characterization of six unknown waveforms for this, so if nothing else you can skip to those parts.
Before we get too far into how to use a scope, we should mention why we use them in the first place. After all, doesn't a multimeter measure voltage too? The answer, in short, is time. Multimeters are useful for measuring static quantities that change slowly, but if the phenomena we care about takes place in seconds or less it just can't keep up. Not to mention, even if it could update quickly enough you'd never be able to record the values to interpret what you were seeing. An oscilloscope solves both these problems by being able to capture a snapshot of changes over a timescale of our choosing.
While it may look rather like a largish electronic calculator that would be insanely complicated to operate with about a hundred tiny buttons and a 4.5“ wide screen, Don't Panic. Controls are put into reasonable groupings, and there is quite a bit of feedback given on the screen once you know how to look for it. As you work through these exercises, we'll introduce both the controls and the location of relevant feedback on the screen.
softkeys to get to the main screenDefault Setup button that's around the top right side of the scope.Right now you should be seeing a yellow line in the middle of the screen with a bit of fluctuation to it. That's perfectly normal and the noise is probably some sort of 60 Hz signal that is picked up from power lines in the room.
1 button to select the first input channelAs you do this, look at the left edge and bottom left corner of the screen. When the channel is turned on, the bottom part of the screen will display both the channel name and what the voltage scale is. In addition, a little yellow arrow indicates where the baseline of the signal is. (A blue arrow would indicate the baseline for channel 2).
When you're turning the position knob, you can see that it shifts where the signal is displayed on the screen. This doesn't affect the values that you're measuring, but if you are trying to compare things and forget that you've shifted something then it can cause issues. Not only does it tell you what the offset is, it does so in both terms of a voltage and a number of divisions. This can be handy if you want to set a particular horizontal line on the screen as a reference point when you're looking at a signal.
Now, you'll see on the left-hand edge that instead of indicating a position, there will be a 1 with an arrow pointing down or up, depending on which way you shifted the signal.
When you change the zoom level on a channel, the number of divisions that it is offset remains the same. So, if you were on a 1V scale with 1 division of offset and change to a 5V scale, you now have a 5V offset.
For a whole host of reasons that we won't get in to, there is often a good reason to use a cable that attenuates (reduces) the signal reading by a factor of 10 before it gets to the oscilloscope. This makes it the default assumption that you're using such a cable when you press Default Setup. However, when we're not doing that, we'll need to change one setting to properly read out voltages.
1 button to bring up the channel 1 settingsProbe 10X Voltage settingsAttenuation1X
You'll need to do this any time you press the Default Setup button, unless you don't mind all your voltages being off by a factor of 10.
That's enough playing with the position of the signal, let's actually look at something. We'll use a function generator to start off with, since 'scopes are quite good at measuring periodic signals. We'll start with our faithful companion of periodic signals, the sine wave.
Output1 button. It should light up green when you do this.Default Setup button to restore your scope settings to a baseline stateAttenuation settings afterwards!At this point, you should see something like the following on your scope:
There are a few things that have changed, even though you can't see the whole signal yet.
Trig`d in green in the top center of the screen.The frequency estimation acts as a nice sanity check sometimes, but may not be the best way of reading out an unknown signal. More important is the fact that the scope is now properly triggering.
One thing that becomes apparent after using a scope for a bit is that it can't continuously show you what your signal is doing. It takes a bit of time for it to gather together data points and to display them. You wouldn't want to just have the screen update as fast as the machine can go either, since if it was updating at a different rate than your signal you wouldn't be able to see anything very clearly. We'll explore this in a bit.
Now its time to get a better look at out signal. Thanks to the function generator, we already know what we should expect: a 1kHz sine wave that has a 5V difference between the peaks.
Vertical Scale knob counter-clockwise to zoom out so that you can see the whole waveform. It should work well at a 1V scale.If you zoom out to a 250 ms per division time base, you may see something quite unexpected: a sine wave. This is due to a phenomena called aliasing. Simply put, if a signal is getting sampled at a rate lower than its frequency, you can get something that appears to be a lower frequency signal. There's a whole theory in signal processing called the Nyquist Shannon sampling theorem that goes into this, but a rule of thumb is that you need to sample a signal at at least twice its frequency to get a reliable measurement.
You'll eventually want to actually get some numbers out of the scope, rather than just looking at the squiggly lines.
division is the space between two of the dotted lines; each dot in the vertical lines is 20% of a division.This is how all measurements on oscilloscopes were made in ye olde days. Sure, you might use a ruler or means of magnifying the image, but for a good few decades that was it. With a digital scope, we've got some additional options that can make life easier.
Writing on the face of a scope is a good way to invoke the wrath of its owner, but we can do one better. The Cursor button will let us pick vertical or horizontal lines that we can draw across the screen and read out values with 50% less squinting.
Cursor button, on the top row of buttons.Type to Amplitude.Your screen should look something like the following:
All that being done, you'll probably have something that's around a 5 volt difference. You'll also probably notice that the cursors only move one pixel at a time, so the readout is quantized. Long story short, that quantization factor is 4% of the voltage division you have selected.
Time.From here, you'll notice that there are some additional features to the time cursors. Not only do you get a readout of the time since triggering for each cursor, you get the voltage at that point as well as the frequency and period associated with the interval. Neat!
Another option we have is to use some of the scope's built in measurement features. This can be handy when there are multiple things you need to keep track of across both signals and the cursors won't cut it.
Measure button in the top middle row of the controls.
The right-hand side of the screen should now have options for measurement gating, the two input channels, the Math channel, and a Snapshot option.
Ch1Period measurement.There should now be a box in the lower-left side of the screen showing you the period of your signal.
Frequency optionYou can turn measurements off by toggling them again. These scopes can show up to 6 automatic measurements at once.
Peak-Peak voltage, the Minimum voltage, and the Maximum voltage.
You might notice some more fluctuation going on here than you had with the cursors. That's because the scope is continuously calculating values based off of the current set of data it has gathered. The frequency in particular seems susceptible to wandering like this. Thankfully, the scope has a handy tool that helps us smooth out these fluctuations: the Averaging option.
Averaging is just what it says on the tin: It will collect data from multiple triggering events and average out the readings. For something with a well-defined period, this is amazing for eliminating random noise. Let's check it out.
Acquire button in the middle of the Horizontal control groupAverage optionAcquire again to toggle the menu offEven averaging only 16 times should be enough to get a rock solid reading on the measured values here. In fact, the scope manufacturer essentially expects that you'll use averaging when making measurements. To go back to normal:
Sample option
The middle choice (Peak Detection) is something that is used for hunting noise or fast events, we'll get to its uses later. You'll also notice that you can toggle the number of waveforms averaged from 4 to 128, with the downside being that you'll have to wait a while for things to settle for high averaging values
We only mentioned triggering earlier, but its time to go back to it again since it will be the cause of many of your scope woes. The problem is that the scope gathers data too quickly to be able to display it continuously on a screen. One way of dealing with this might be to set a refresh rate (e.g. 50 times a second), but that would become a headache if you were even slightly off from the frequency you wanted to look at. Instead, what we do is specify when to gather data. We do this by selecting a voltage (positive or negative) and a slope (again, positive or negative). Modern digital scopes are able to buffer data continuously, so they can effectively show you what happened before the trigger event! On the other hand, analog scopes could only start drawing after the trigger and thus started on the far left side of the screen instead of the center. Hopefully it will start making sense as we play with the controls
The trigger controls on our scope are grouped together on the right-hand side, consisting of a knob and two buttons. Well, that's not quite true. The Run/Stop and Single buttons on the top-right corner of the scope are somewhat related.
Run/Stop button a few times and observe what changes
The most obvious thing should be that the waveform stops changing. You'll also see that the indicator in the top center of the screen will change to red text reading Stop. At some point in your career you may very well spend time debugging things only to discover that the problem was you stopping the scope display.
Single button once
This should get the scope to gather a single trigger event and then stop, with the text Acq Complete in the top center of the screen.
This isn't a great example of how this would normally go, so let's change our setup.
Single button and watch the trigger status text at the top of the screen
You should see the scope change to Armed in yellow for a moment, followed by Trig`d in green, and then Acq Complete in red again. Since you're asking for one second of data, it takes a moment for it to be gathered in this case. This is the sort of thing that is most useful for either very slow periodic events or single shot events.
Run/Stop button to go back to the regular operating mode.Horizontal scale back to 500$\mu$sNow let's play with the triggering itself a bit.
Level knob on the far right side of the scope controls and observe what happens to the waveformThe place the scope centers your signal should shift as you move the trigger level. If you look at the center of the screen, the voltage of the sine wave should match your triggering voltage as you shift things about. There's a caveat here…
Level knob until it is above/below the waveform
You'll see that when you first move off the waveform, the status will change to Ready before switching to Auto and your screen turning into wiggly soup. This is a feature, not a bug! The idea is that if you don't have your triggering set up to work for your signal, you might still want to see something to get an idea of what you're looking at. Hence, the screen will be snapshoting your waveform at intervals that won't line up with its period. The specific rate isn't specified in the manual, and depends on what your timescale setting it. Enough of that for now; I'm getting dizzy.
Now that we're back to a know state, let's mess with some of the other options.
Menu Button, just above the knobSlope option a few times using the multipurpose knob and see what happensUnless you've done something quite strange, your sine wave should be centered on a point where it is at 0V and decreasing. The little indicator in the corner will also flip directions.
Rising SlopeMode to NormalLevel knob to set the trigger level off the edge of your waveform
New behavior! Now, instead of just showing you whatever, the scope will keep the last image that triggered it on the screen while it waits. You'll see that the indicator in the top-center of the screen will now read Ready instead of Auto. Normal triggering is generally more useful for intermittent events, when you don't know when the next one will happen but you don't want to look at dead time inbetween. But, if you want to see something anyways…
Force Trig button (below the level knob) a few timesThis lets you demand a refreshed signal now, which can help if you're not sure what's going on but don't want to tweak the trigger settings.
The other options here don't really make sense for this signal, so we'll save them for later.
If you'd like to capture an image from the scope using a computer, you can quickly jump to the section on how to Export images here. Taking pictures with your phone is fine too.
We're going to be asking you to characterize signals both in these exercises and throughout the year during your experiments. So, let's define what that means.
For a sine wave, this would be (at a minimum) noting that it is a sine wave, what the amplitude is, if there's an offset (i.e. if the baseline is centered around 0V or something else. For a periodic signal this would be the difference between the maximum and minimum), and what the period is. Basically, enough information that someone would be able to tell if the thing they were looking at was the same or not.
Now that you've gotten a bit of practice manipulating the scope and measuring things, it's time to move on to practicing with a signal you don't know everything about ahead of time.
Next, disconnect your UChicago Signal Blackbox™ and re-connect the function generator.
Let's look at something a bit different: a square wave! Press the Home button on the function generator and select the Square option from the listing of continuous waves. You can do this either via the touch screen or using the blue right arrow beneath the dial on the function generator to change menus and then turning the dial and using it as a pushbutton.
Unless you've been playing with settings, it should match your sine wave here. However, we might also want to know something about just how “square” that square wave is. Do do that, you'll need to zoom in on the time scale. A lot.
The screen should look something like the following:
There are any number of metrics you could use here to characterize how long the transition is, but one is to look at the time taken to go from one fraction of the initial value to a fraction of the final value. For electronic signals, 10% - 90% is standard.
You should get something on the order of a few to tens of ns here. You can also do this measurement via the built-in functions.
Measure menu, select the Rise Time optionThe value you get here is probably pretty unstable, as on this scale there's likely to be some noise on your signal.
Acquire button to turn averaging on and observe the resultThe utility of averaging in this case is the same as before, but it may not be sufficient to completely stabilize the readings. While doing this measurement I watched the rise time change by more than 10% of the average value. However, it took long enough that I couldn't see any difference visually. That, however, ties nicely into another scope feature we can use.
Sometimes we want to compare a signal to itself under a differing set of circumstances. In other words, we want to create a Reference image. Thankfully, there's a handy way to do that in the form of a little white button on the scope!
Before we can view a reference, we need to first chose what trace to save. We can do so as follows:
Save/Recall buttonAction to Save WaveformSave To destination is RefCh1 and the To option is RefASave softkeyThe bottom of the screen should read “Ch1 waveform saved to Ref A” after you do this.
Now that we've saved a waveform, we can recall it using the Ref button.
Ref' button (just to the left of Channel 1's vertical scale knob)Ref A to OnThe scope will now draw the saved trace in white, behind any other signals. This is handy to have when you're trying to optimize some difficult to characterize feature by being able to see how it changed relative to a baseline.
There are limits to the reference feature; specifically that you can't make actual measurements with it. It only captures the image, not the underlying voltage & time measurements.
Refernce menu and toggling it via the softkeyThere is another useful tool for comparing signals that's better for sporadic events
Since our scope has digitized its data, it is straightforward for it to be able to show us an image of what the trace has been doing in the past. To access this feature, do the following:
Utility button (Just above the horizontal controls)Display option via softkeyInfinite for the momentThis will keep a darkened copy of every trace that's been displayed in the background. This is again only a visual indicator; you can't make measurements based off of the persistent image. But you can do things like use cursors to get a range of values, or estimate the frequency of events
To turn persistence off again, use the Utility Menu ⇒ Display option and change the Persist option to off
Plug the UChicago Signal Blackbox™ again, and toggle to the third waveform (the indicator will be blue for this one)
Toggle to the fourth waveform (a yellow indicator)
There are plenty of physical signals that aren't periodic that we still care about, and the details about what occurs when can be critical. For instance, the strain measurements corresponding to first observation of gravitational waves occurred over the span of 100 ms or so, and would've been surrounded by a whole lot of non-events. Any sort of particle physics will involve depositing energy into a detector over time, which is translated to an electrical signal. Let's get into how we can use an oscilloscope for measuring events.
For us to observe events, we first need to generate some. Thankfully, the Rigol DG800 devices are Arbitrary waveform generators, meaning that they can do some pretty nifty beyond what older function generators could do. We'll still use the older terminology sometimes due to it being less clunky.
It should look something like the following:
The pulses here are still pretty regular, so let's do something about that.
You should now have a train of pulses, 10 ms apart.
An information box saying 'Instrument triggered' should pop up briefly, and you should get a single pulse output.
If you're on auto triggering mode, you might have a hard time seeing the event before it is cleared from the screen.
NormalYou should now be able to catch and keep the single pulse from the function generator.
Sometimes, we just care about the fact that there's an event at all. But most of the time, we can get information about the physical process from the shape of the pulse we're looking at.
Now that second part is going to be tricky, as the signal won't cut off at any nice, sharp transition. Let's use one of the scope's measurement functions to see what it has to say about the situation.
Measurement menu to measure the Pos Width of the signal.Cursor ⇒ Time controls to measure out half of the Pos Width time from the signal's peak
Take a look at the voltage at this this point; it should be half of the maximum value. This is a common standard for pulse measurements, known as the Full Width Half-Max or FWHM. It can be applied to all sorts of pulse shapes, even asymmetric ones, so it makes for a handy metric.
When introducing averaging, we mentioned that there wasn't a need for the Peak Detect option at the time. Well, its time has now come. Sometimes, fast events like pulses can get obscured by the way that the scope presents data; each pixel actually represents multiple measurements. What Peak Detect does is keep the most extreme values instead of smoothing things over. Let's create a need for it now.
Default Setup5.00msAfter doing this, you may notice something curious: Your scope will still be triggering, but only every so often will you actually see the trace move, and it may be irregular.
Acquire menu, select the Peak Detect optionYou should see something like the following:
As you can see, Peak Detect is great for letting you know that something is happening quickly. Each pixel on the scope screen represents multiple data points, which are normally combined to make for a more stable image. When Peak Detect is on, the scope instead selects the extreme data points as representative. Thus, if you use it when it isn't needed, all it will do is accentuate any noise that's already there.
Plug the UChicago Signal Blackbox™ back into the scope, and toggle to the fifth setting (the indicator light will be pink)
Toggle to the last setting (cyan)
There are two kinds of data you can export from the 'scope. A *.jpg screenshot of what is currently shown on the screen, and a *.csv file with the voltage vs time data.
If you have a USB flash drive, you can plug it into the socket on the front of the scope to save your data. To configure what to save, do the following:
Save/Recall buttonAction you want.Save All lets you save both an image and the voltage vs time dataSave Image gives you exactly what's on the screen when you press the buttonSave Setup is used for saving all of the scope settings (offsets, zoom levels, trigger settings)Save Waveform you've seenRecall Setup is used for recovering settings you've saved in the pastRecall Waveform is an alternative to the Recall button menuPrint button here to either save all or save images. Alternatively, The lab computers are already set up so that you can copy a screenshot or data from them by using some Tektronix software. To do so:
Open Choice Desktop program from the desktopSelect Instrument button and select whatever option starts with USBGet Screen button to capture a screenshotWaveform Data Capture if you want to pull numerical information from the scope
So you've saved a trace from the scope. Now what? Well, the data takes the form of a Comma Separated Variable (CSV) file. All this means is that entries in different columns are separated by columns, and rows are new lines. How can you use it?
We'll assume that you can open files and browse them on your own, so let's get to that last one. If you haven't gotten to the Python tutorial yet, ask a TA or instructor for a hand with this bit. It takes a little work to extract the relevant information due to the scope adding a header with setting data and having an odd column format.
To plot some example data:
To plot your own data, you'll have to move it to the same location as the notebook and change the fname variable. Then run the cells again, although you may need to change some later parts like the time interval to get what you want.
If you get a file not found error and verified that it is in the right location, try either changing the name of the file to uppercase or the fname to lowercase. Different operating systems can be picky this way.
Remember to submit your document characterizing the six unknown signals. If you were taking good notes as you went along, you are already finished! If not, go back and collect whatever you need and/or clean up your notes so that they are clear.
Submit this to Canvas by 11:59 pm the day before your next lab session.