Biological Sciences 300/301, Smith College | Neurophysiology

Lab 1: Using the Oscilloscope

http://www.science.smith.edu/departments/NeuroSci/courses/bio330/labs/L1cro.html

Bio 300/301 Home   |    Schedule   |    Videos   |    Laboratories   |    Administrative Information

 

In our first laboratory, we will review the features of our digital storage oscilloscopes. When you arrive, you and a lab partner should sit near one of the equipment racks. There should be only one team at each rack.

Typically, we will use oscilloscopes for viewing electrical potentials picked up by electrodes on nerves, but today we will look at pre-recorded demonstration signals instead.

A Brief History of Oscilloscopes

An oscilloscope is an instrument for displaying electrical potential (the vertical scale) against time (horizontal scale). The first oscilloscopes were analog instruments. They were built around a "cathode ray tube" (similar to the picture tube in an old TV), which focused a beam of electrons to create a bright spot on the face of the viewing screen. Circuitry inside the oscilloscope swept the spot horizontally across the screen at a steady rate to establish the time axis. A knob on the control panel allowed the experimenter to select a particular horizontal sweep speed from a series of choices that were calibrated in seconds (or milliseconds) per horizontal division.

The electron beam could also be moved up and down on the screen by circuitry that amplified the voltage signal that was fed into the oscilloscope (for example, amplified action potentials from a nerve). Again, a knob on the control panel selected the sensitivity of the vertical axis, in volts or millivolts per vertical division. The experimenter adjusted the vertical sensitivity so that the signals of interest filled the screen but did not overflow it.

For many years, this lab course used "hybrid" analog/digital oscilloscopes that were analog oscilloscopes with an important additional feature: they could take digital samples of the signal, save them in memory, and replay them repeatedly to the screen, thereby "freezing" the trace on the screen. (They could also show traces one after the other without freezing them, in ordinary analog mode.) This hybrid technology was one early way of creating digital storage. Like many other analog or digital oscilloscopes, our instruments could also display two traces, for observing two voltage signals simultaneously, as you can see in the photograph below.

You can see a larger version of this image, and if you are curious, you can view a video about using these hybrid analog/digital oscilloscopes. You can also read an older version of these lab instructions, describing how to use the Hitachi oscilloscopes.

Notice that there are a large number of buttons and dials on the control panel, which students mastered during the semester.

Analog oscilloscopes and hybrid analog/digital oscilloscopes are still manufactured, but most digital storage oscilloscopes now are fully digital. They are essentially specialized computers with graphics screens that emulate analog oscilloscopes. Their digital circuitry takes many thousands of samples per second of the incoming voltage signals, stores them as numbers in the computer's memory, and plots them instantly on the screen. Knobs on the control panel select the horizontal (seconds/division) and vertical (volts/division) scales for the display, just as they did on the original analog oscilloscopes.

Rigol DS1022C Digital Oscilloscopes

Our Rigol DS1022C digital storage oscilloscopes have simplified control panels compared to analog oscilloscopes because many functions are relegated to menus on the screen instead of being controlled by switches on the panel. In spite of their apparent simplicity, digital oscilloscopes usually have more features than their predecessors did.


(click figure to enlarge)

Before we examine individual controls, let's look at the oscilloscope's overall layout, starting at the left:

  • a screen on which the electrical potential is plotted against time. (Under it is a USB port for memory sticks.)
  • to the right of the screen, five gray buttons for responding to menu choices, and a small button for turning the menus off.
  • at the top of the main control panel, buttons to activate menus for various functions, and to stop or run acquisition of data (the button is red because the trace was stopped to take the photo). [See an enlarged photo of the control panel.]
  • below this, on the left, the vertical control area. The two green buttons indicate that both channel 1 and channel 2 are displayed. A small knob at the top controls the vertical position of the trace, and a large knob below controls volts/division.
  • in the lower middle, horizontal controls, including position and time scale, plus a button to bring up a menu for additional functions.
  • at far right, trigger controls, including a knob for trigger level and a menu button.
  • across the bottom, three round BNC jacks for plugging in cables with signals for CH1, CH2, and external trigger.

The Big Three:

Vertical, Horizontal and Trigger Settings

The main control area has knobs for important settings that are adjusted frequently: vertical sensitivity and position, horizontal sweep speed and position, and trigger level. The settings for these knobs are read from text on the bottom of the screen:

  • CH1: Channel 1 is "AC coupled" (a concept we will learn about later), indicated by the squiggle, and its vertical sensitivity is 500 mV per division. Note the color coding: the trace and labels for Channel 1 are yellow.
  • CH2: Channel 2 (blue color) is "DC coupled" (dashed and solid parallel lines) and also is set at 500 mV per vertical division. The highlighted box on "CH2" indicates that it is the channel that is currently controlled by the vertical sensitivity and position knobs. Pressing the green button for CH1 would make Channel 1 the actively controlled channel.
  • Time is the sweep speed, 200.0 ms (200 milliseconds per horizontal division).
  • T (in orange) indicates that the trigger point is 300 ms before the center of the screen.

At the top of the screen we see information about memory and triggering, which we will examine later.

Menu for Channel 1

The knobs for the vertical channels are supplemented by a menu for each channel. To activate the menu for channel 1, press the green "CH1" button. A drop-down menu will appear at the right edge of the screen. Pressing the gray button next to the arrow at the bottom brings up a second menu for channel 1. Pressing the gray button at the top of this menu takes you back to the first one.

Menu 1 (of 2) for channel 1

Menu 2 (of 2) for channel 1

The menu for channel 2 is identical to channel 1. It is activated by pressing the green CH2 button.

Selecting the input coupling for a channel

Our interest will be principally in the top item in the first menu, the input coupling for the channel. It has three settings:

  • AC coupling, for displaying rapid changes in the signal but not slow or steady potentials. We will usually choose AC coupling for looking at action potentials recorded with extracellular electrodes.
  • DC coupling, for looking at steady (or changing) voltages, such as resting potentials recorded with intracellular microelectrodes.
  • Grounding the input circuits. This disconnects the signal coming in through the channel's BNC jack while internally connecting the channel's circuitry to ground (GND), a potential of zero volts. This is useful for establishing the vertical position of the trace on the screen.

To change the input coupling, press the uppermost gray button, next to the "Coupling" setting. A subsidiary menu will pop up. In this example, it shows that channel 1's input coupling is currently set to AC.

The circular arrow reminds you that adjustments are made with the variable menu adjust knob at the top, which lights up. Change the setting and then press the knob to enter your choice.

 

Here the input coupling has been changed to DC:

 

And here, to GND. Note that the trace is now flat because channel 1 has been internally connected to zero volts (ground).

For today, set channel 1's input coupling to DC.

Display Menus

The display menu is launched by a button in the "Menu" area at the top left of the control panel. The display menu has several settings worth knowing about now. In the first (of two) display menus, the top item is Type, which can be "Dots" or "Vectors." Pushing the gray button toggles between these two settings.

"Dots" shows each sample as a point...

while "Vectors" draws lines between the points.

We usually want "Vectors." The other items on the first display menu are:

  • Clear erases the screen.
  • Persist determines whether old traces will remain on the screen (as dim lines), with the newest trace written on top as a bright line (infinite), or instead whether the previous trace will vanish when the new one is written (off).
  • Intensity adjusts the brightness of the traces (by turning the menu adjust knob). We usually want a very bright trace.
  • The down arrow takes us to the second display menu.

In the second display menu, we can

  • choose from three different styles of grids (we want the one with the most boxes);
  • adjust the brightness of the grid by pressing the gray button next to "Brightness" and turning the menu adjust knob.
  • set whether menus will be displayed until we make them go away (Infinite) or instead fade away after a predetermined time (selected from a list);
  • reverse the light/dark layout on the screen (bright screen, dark traces). A reversed screen can be helpful if we wish to save images of the screen for printing, but many people find a bright screen hard to look at.

Launch
Sound Player

It's time now to look at some real signals.

Several demonstration signals are available to be played by your computer's sound system. Launch the Sound Player and press the "play" triangles to hear each sound (press the "pause" button to stop a sound). Then connect your computer's sound output to the oscilloscope's input. To do this,

  • plug a mini-stereo cable into the computer's headphone output (marked with a symbol for headphones), and
  • plug the cable's other end into the stereo jack on the patch panel under the oscilloscope. The green and blue BNC cables should already connect the patch panel to the inputs for CH1 and CH2.
  • If necessary, turn on channel 1 by pressing the green CH1 button.
  • If channel 2 is also on, turn it off by pressing the green CH2 button one or more times until the button goes dark and the blue trace goes away.
  • Press the play triangle for one of the sounds on the sound player.

At this point, channel 1 should display the signal. Press the vertical position knob to place the baseline (and therefore the trace) at the center of the screen. Adjust the vertical scale knob to make the signal fill most of the screen but not overflow it. The scale you chose will be displayed below the screen in units of volts (or millivolts) per vertical division.

Adjust the horizontal scale

The horizontal scale may or may not be optimal for examing the signal. Try various settings to see what they show. Slow sweeps (100 ms per division or greater) will show you the signal as a smear of solid color. This is helpful for the fade-up signal, where a slow sweep shows how the amplitude changes. Fast sweeps (5 ms per division or smaller) will show you the sinusoidal signal's shape. This is especially useful for the steady tone and the frequency sweep.

In practice, you will select whichever horizontal scale shows you the aspect of the signal that you are trying to see. For now, play the steady tone and select a horizontal scale that displays a few cycles of the sinusoidal wave.

The horizontal menu is brief and does not offer any settings we need to alter.

Triggering

 

The trigger controls determine the horizontal position on the screen of the digital samples as they are being taken and displayed. It allows the experimenter to show a particular phase of the signal (for example, the rising phase of an action potential) at the same place on the screen for trace after trace. Without triggering, the events would appear at random places on successive sweeps and be difficult to study. To control triggering, you specify a voltage level that the signal must pass through, and the direction (slope) in which it is going (upwards, positive slope, or downwards, negative slope).The trigger circuits examine the incoming waveform and line up the display based on when the trigger conditions are met. The source for triggering can be the voltage on channel 1, channel 2, an external trigger signal connected to a BNC jack on the bottom right of the control panel, or the 60-cycle AC power line.

Trigger settings are displayed in yellow at the top right edge of the screen:

This example shows that triggering is set for a rising edge (positive slope, symbolized by the upwards arrow). The source is channel 1, indicated by the "1" inside a yellow box. The voltage level for triggering is (+) 8.00 mV, set by the trigger level knob. Pressing the knob forces the trigger level to zero volts, from which it can be adjusted up or down.

The example also shows the position of the trigger point in time. At the top, the zig-zag line represents the entire memory for a trace, and the blue box represents the memory displayed on the screen (in this case, all of it). The orange "T" above the box shows where the trigger moment occurs within the memory. The T in a solid orange box within the display space also shows where the trigger moment occurs. The location of the trigger moment is controlled by the horizontal position knob. Pressing that knob will force the trigger moment to the horizontal center of the display.

The trigger moment is also displayed numerically at the bottom right of the screen. Positive numbers indicate times before (to the left of) the center midline, negative numbers after the midline. In this example, the trigger moment is 300 ms before the midline. Since each box is worth 200 ms, the trigger moment should be 1 1/2 boxes to the left of the midline. You can see (from the black T in an orange box in the image above) that is indeed where it is.

Trigger Menus

Many important trigger functions are controlled by the trigger menu, shown at the left. The trigger menu is probably the menu you will return to most often. There are five major trigger functions on the menu: mode, source, slope, sweep, and setup. Pressing an adjoining gray button brings up a submenu and lights up the menu adjust knob. Turning and pressing the knob selects a setting.

On the mode submenu, we will always use edge triggering.

The trigger source will usually be CH1 or CH2. A channel can serve as a trigger source even if its display is turned off.

We will select the slope depending on the signal we are looking at, choosing positive (upwards) or negative (downwards)

Auto sweep makes the trigger wait briefly for an appropriate signal, but then forces a sweep if no trigger occurs.

Normal sweep gives us full control. The display waits indefinitely for a signal that meets the trigger conditions.

Single sweep is normal sweep with an additional feature: the first captured trace is held until you press the run/stop knob.

Trigger setup allows us to choose an absolute voltage level (DC coupling) or a relative change in voltage (AC).

Some general comments about triggering:

  • Digital storage oscilloscopes will almost always display something on the screen, but it may not be what you are trying to see. The trigger settings are very important.
  • Usually, once you select edge triggering, an appropriate channel as the source, and a slope suitable for the event you are trying to watch, you will not need to change these settings during an experiment.
  • On the other hand, you may find yourself frequently changing the sweep from auto to normal to single and back again. This will require several steps: pressing the trigger menu button (or, if the trigger menu was the last one you used, pressing the small menu on/off button), pressing the sweep button, turning the menu select knob, and pressing the knob.
    Frankly, this is not terrific user-interface design, but we will live with it.
  • If you are using single sweeps, the run/stop button lets you accept a new sweep. Even when you are not using single sweeps, you can freeze the last trace by pressing the stop button.
  • The oscilloscope would like to place the trigger moment at the center of the screen to let you see equal amounts of time before and after the trigger event. You would usually prefer to place the trigger moment at the left edge, or one or two boxes in from the left.
  • Nothing prevents you from setting the trigger moment before or after the data displayed on the screen, but you probably do not want to do this. The zig-zag line at the top of the screen will show you where the trigger moment is (the orange "T"). If it is outside the blue box (which represents the section of captured data that is being displayed on the screen), it is outside the display and probably not where you want it.

    To get it back inside the display, press the horizontal position knob to force the display to shift so the trigger moment is at the horizontal midline, and then adjust the knob to slide the trigger moment to the location you prefer.

Try It Yourself (triggering on a sinewave)

Now it's time to work with triggering using our demonstration signals. Make sure every lab partner has an opportunity to participate directly in making these adjustments.

Play the steady tone if you are not already doing so. Launch the trigger menu and select:

  • edge mode
  • channel 1 source
  • positive slope
  • normal sweep
  • DC coupling from the set-up menu

(1) Press the horizontal position knob to place the trigger moment at the center of the screen. Now, slowly adjust the trigger level control while watching the screen. You should see the voltage crossing the center of the screen rise or fall as you change the trigger level. You are telling the display to determine when the signal crosses a particular level, and to place that sample at the center of the screen (the trigger moment).

If you change the level to a voltage higher or lower than this particular signal supplies, the display will not draw any new traces. (The last trace acquired will remain on the screen until the next trigger event.)

(2) Adjust the trigger level so it is about halfway between the zero baseline and the peak of the sinewave. Examine the trigger slope by relaunching the trigger menu, pressing the gray button for slope, and switching the slope back and forth between positive and negative while watching the screen. (Remember that you must press the menu adjust knob to enter your choice.) The trigger level should not change, but the sinewave should pass through the trigger level in opposite directions, depending on the slope you have chosen.

(3) Next, investigate how to place the trigger moment wherever you like horizontally. Adjust the horizontal position control so the trigger moment shifts left or right from the center of the screen.

(4) When everyone has had a chance to work with the level, slope, and position controls, place the trigger moment two boxes from the left edge, and set the trigger level about halfway between the middle (zero) and the peak of the sinewave. Switch to the fade-up signal, and you should see triggered sweeps only when the signal is large enough to exceed the level you have chosen. The last triggered sweep will stay in place until the signal again meets the trigger conditions. Also try adjusting the trigger level.

(5) Finally, play the frequency sweep signal and examine the level and slope settings. Press the run/stop button to freeze a sweep, and press it again to resume acquisition of data.

Cursors

Play the steady tone again and establish a stable triggered recurring ("unfrozen") sweep. Expand the horizontal scale so that approximately two complete cycles of the sinewave fill the screen. Freeze the display by pressing the stop button. Look at the value of a horizontal box (the time scale at the bottom of the screen), and estimate the time for one complete cycle of the sinewave. Similarly, look at the vertical scale and estimate the peak-to-peak voltage of the sinewave. This is the traditional way of making measurements from an oscilloscope screen. (You can adjust the vertical and horizontal position controls to place a convenient point on the signal exactly on the corner of a graticule box, and then measure by counting in appropriate units from the horizontal and vertical graticule lines to the place where the signal repeats the convenient point that you selected.)

Since the voltage of the signal is represented by numbers in the oscilloscope's memory, it is very easy for designers to add a feature that helps you measure time and amplitude. In the menu button area at the top left is a button labelled "cursor." Press that button to bring up the cursor menu, press "Mode" and select "Manual" cursor. A new menu will appear.

Select "X" for the Type of manual cursor. This will allow you to make measurements horizontally of the difference in time between two points. In the example below, the time between two extracellular action potentials is being measured. The Source was set to CH1, and then the button for Cursor A was pressed to activate the leftmost cursor. Cursor A was adjusted to the location shown. Then the button for Cursor B was pressed, and it remained the active cursor at the time the photo was taken (its "adjust" label is highlighted). [Note that you can have both cursors activated simultaneously, for shifting both of them together without changing the time between them; this is not usually something you want to do.] The delta-X measurement shows the time between cursors, 1.68 ms. This time is also shown as the equivalent frequency, 1/delta-X, which is 595.2 Hz.

(6) Use manual cursors to measure the time between equivalent points on the steady sinewave you are displaying.

 

To make vertical measurements of a difference in voltage, select "Y" for the Type of manual cursor. Cursor A and Cursor B are now horizontal lines instead of vertical ones. By activating and positioning each cursor in turn, the voltage difference between them is measured. (It is exactly 1.00 V for this highly amplified action potential.)

(7) Use manual cursors to measure the peak-to-peak amplitude of the sinewave you are displaying.

To turn the cursors off, press the Mode button again, and cycle from Manual to Off.

Trigger and make measurements from recorded neural activity

To develop your skills, you and your lab partners should now display, trigger on, and measure signals from neurons. Launch the window that plays a recording of neural activity.

The recording shows bursts of action potentials in nerves leading to swimmeret muscles from two adjacent abdominal ganglia in a crayfish. Each nerve has about 30 motoneuron axons in it. Electrodes pick up action potentials from these neurons, which look like vertical spikes at a slow timescale. Spikes from different neurons appear to have different amplitudes in extracellular recordings, which allows us in many cases to follow the firing of individual neurons (especially the biggest ones). The activity is rhythmic: the axons in a nerve are active for a short period, then quiet, then active again, driving the swimmeret appendages back and forth.

(8) Look at this activity initially at a slow timescale, to see the repeating bursts of action potentials. You will need to:

  • display both channel 1 and channel 2
  • select appropriate input coupling (AC is better) and vertical scales and positions that put both signals on the screen
  • select a slow horizontal scale that lets you see more than one burst
  • select triggering that puts the start of a burst (use CH1 for this) at a defined horizontal position on the screen

Freeze the traces, and use horizontal cursors to measure (1) the time interval between the start of successive bursts on the same channel; and (2) the delay between bursts on adjacent channels.

(9) Then switch to a fast timescale so you can see individual spikes, and trigger on single spikes on channel 1. (Turn off channel 2 while you investigate spikes on channel 1. This will give you more screen area for channel 1, so you can stretch out the vertical scale.) You will find it easiest to see the same spike over and over if you set the trigger level high enough to detect only the largest spikes. When you are triggering successfully on a large spike, investigate:

  • the effect of switching trigger sweep between auto, normal, and single
  • on single sweep, the action of the run/stop button
  • on a trace that shows a good example of a big spike, the amplitude of that spike using Y cursors
  • on a trace that shows two examples of what appears to be the same spike (same height and shape), the time interval between them using X cursors
  • with a trace stopped, and cursors turned off, examine how you can shift the section of memory displayed on the screen by turning the horizontal position button. The blue box around the zig-zag line at the top of the screen shows where in memory the displayed samples are coming from. You will see that you can scroll forwards and backwards in memory to review much more activity than can fit on the screen at this fast timescale.

Acquire Menu

There is one more fairly subtle setting that we can investigate today using our pre-recorded neural activity. But first, let's meet the concept of "aliasing." When digital samples are taken at a relatively slow rate from a signal that is changing at a much faster rate, the samples can't represent the shape of the signal accurately. Instead, they create a series of points that occur at unrepresentative moments within the signal, creating an "alias." The usual example for this is a fast sinewave (red in the diagram below) sampled at a slow rate (the circles). Each sample catches the sinewave at a different point in its waveform. When the points are connected (blue curve), the apparent signal looks plausible but is actually a mis-representation of the original signal.


Source: Wikipedia article on "Aliasing"

We run into this problem if we display a train of spikes at a very slow timescale (eg, 500 ms/division). At such a slow sweep, samples are taken at a few unpredictable points within each action potential, and the display misrepresents the heights of the action potentials.

Luckily, our oscilloscopes provide a remedy for this in the Acquire menu (its button is in the Menu control area). The first item, Acquisition, allows us to choose between Normal, Average, or PeakDetect. We'll discuss Averaging in another lab, but the difference between Normal and PeakDetect is relevant here.

On Normal acquisition, samples are taken at a regular rate that depends on the horizontal timescale. The image below shows three repeats of a brief interval of spiking, triggered on a very large spike. The horizontal scale is slow, 200 ms. The three repeats don't look very similar because the individual spikes are being sampled at a rate too low to represent them well.

If instead the same data are sampled with PeakDetect acquisition, the circuitry takes samples at a very high rate but saves only the most positive and most negative voltage within the time represented by each column of pixels on the screen. When those high and low points are connected, spikes are drawn with their full height and look more uniform. The three repeats of the same data now look identical.

The only disadvantage of PeakDetect acquisition is that on fast sweeps (shown below), the trace looks "fat."

(10) Investigate the effects of switching between Normal and PeakDetect acquisition while displaying the neural data at a slow sweep, such as 200 ms/div.

Display Menu:
Persistence of the trace

Our final trick for today is to explore the Persistence setting in the Display menu. In the left figure below, a spike triggers a sweep with the Persistence set to Off. On the right, the same spike triggers several sweeps with the Persistence set to Infinite. The most recent sweep is the bright trace, with previous sweeps appearing as overlapping dimmed-out traces. We can see that the shape of the triggering spike is fairly uniform in each trace (a bigger spike seems have triggered one of the previous traces), but the activity that follows the spike is not the same from trace to trace.

(11) Explore the use of persisting traces, using pre-recorded neural activity displayed on a fast sweep, as in these examples.

As the weeks go by, you will become more intuitively familiar with these oscilloscopes. Refer back to this lab as necessary to review the features and controls. We'll add additional details when we need them as the semester goes on. You can refer to the complete Instruction Manual as a PDF file on the lab computers, or you can download your own copy from the manufacturer's website.

Links

Appendix: Cables and Connectors.

Back to laboratory table of contents page

Back to Bio 300/301 home page

© 2008 by Richard F. Olivo. Permission is granted to non-profit educational institutions to reproduce or adapt this Web page for internal use provided that the original source and copyright are acknowledged.