Lab 5: RC Circuits & Peak-Peak Voltage vs Frequency


Wire Jumper Kit

Voltage Probe

Proto Board






.1 µF capacitor





1 MΩ resistor


Function Generator
















I began this experiment much like the last by forking and cloning onto the desktop the given repository  ,2012-Physics-308L-Lab-5. After locating and acquiring the necessary materials, I began by developing the necessary VI in LabView.


The goal of the this experiment was measure the peak to peak voltage of the RC circuit when the function generator was set to different frequencies. The VI was supposed to record this data in such a way that a *.PNG file capturing the front face with a time and date stamp would be generated every time the program with run. Additionally, the program would display the current reading alongside the most recent reading. The instructions detailed that we should begin by modifying the buffered data acquisition VI from Lab 4, however, I failed to read the instructions carefully and ended up creating the VI from scratch, while referencing the example provided by Dr. Koch. The front panel and the block diagram for the new VI can be viewed below. ( Once again I do not have the *.PNG files for these images as I must have mistakenly deleted them while deleting the test screen captures from testing out the VI before I began taking measurements.)


RC Circuit

The RC circuit was constructed with the materials listed above. Two different views of the the board can be viewed below, as well as the quick sketch of the RC circuit I drew to quickly explain what we were constructing to one of my fellow students.

RC Circuit Diagram

RC Circuit View 1


RC Circuit View 2


In the above photos the green wires are connected to the voltage probe that is plugged into the function generator. The red wires are connected to the voltage probe that is plugged into the oscilloscope. The yellow wires are connected to the channel 1 and channel two ports of the MCC DAQ card. I now realized that I should have taken a wider angle photo or maybe even a video to better display the nature of the circuit.

Testing the Circuit

I began by testing the circuit by checking to see if the proper sine wave would be displayed by the oscilloscope when it was hooked up to the circuit as described above. It initially displayed a lot of noise and it was deduced by Dr. Koch that this was due to the order in the circuits that the grounds of the voltage probes were connected. They needed to be reoriented so that they were directly after one another in the sequence in order for the reading to be shown correctly. As of now the true reason why this must be so is unknown. In the future I will take additional photographs to improve upon the explanation.

While testing different frequencies the sine wave became distorted and then dissappeared completely. Dr. Koch explained that I needed to simply adjust the time scale on the oscilloscope to correct this.

Testing the VI

I hooked up the MCC DAQ card to the RC circuit as described above and ran the VI. Initially, it did not show any data in the either graph and I quickly realized that it was displaying an error code “1” nothing that I had the “incorrect board number”. I redid the board test under measurement computing from last week and everything seemed to be in order. From here I attempted to use the example VI provided by Dr. Koch and it reported the same error. I tried to remedy this error by adding an input for the board number and connected it to the “Aln ScFg” VI that was imbedded in the loop of the larger VI. This did not have any effect. Finally, after consulting with Dr. Koch, he had me close down LabView  completely and the reopen it. This solved the problem and it also turns out that the addition of the “board number” input was unnecessary because for the VI to work it needed to be set to “0”. A screen shot of acquired data can be seen below.

While acquiring the majority of the data it became apparent to me that the VI should have also included fields to input and display the frequencies of the current and former trials respectively.

Acquiring Data

After all the debugging the VI was complete I began to take readings of the Peak-Peak voltage. I started with a frequency of .4 Hz and moved this incremently higher until I reached ~100 Hz. I then jumped much higher to the the ~300 Hz range, to the ~600 Hz range, and finally to the about ~900 Hz range. There was very little deviation in the readings, so I returned to the frequency range near the cutoff frequency of 159 Hz, that was determined form the equation (f = 1/(2pi RC). I also recorded the acquired data, along with the corresponding frequencies in an excel spreadsheet. This data was then uploaded under my account to Figshare. From this data I created a graph plotting the peak-peak voltage vs the frequency that can be seen below.

From this it is easy to extrapolate that the prediction of the cutoff value of 159 Hz is very similar to the data that was acquired during the experiment. It is also pertinent to mention that the peak-peak voltage data displayed on the y-axis is not in terms of volts. Dr. Koch explained to us that the data acquired by the MCC DAQ card was still in raw bit form and had not yet been transformed to volts. This does not, however, preclude one from determining the cutoff frequency, as the trend stays the same whether in bits or volts.

Details of Materials

USB-1208LS USB-based Analog and Digital I/O Module (Board Serial #163)

BK Precision 4017A 10 MHz Sweep/Function Generator

Tektronix P2220 Voltage Probe

Tektronix TDS 1002 Two Channel Digital Storage Oscilloscope


Dr. Koch

Wikipedia: Articles on Capacitance and Resistance

Lab 2, Day 1

I began by creating a directory where the the forked 2012-Physics-308L-Lab-2 repository will be stored once it is cloned to the local computer. This later turned out to be redundant as when the repository is cloned to the local computer it creates a directory of the same name as that of the repository. This created some issues when pushing the folder back to the repository but this will be discussed later.

The lab went pretty smoothly. I initially started by reading the Introduction to LabView but was able to quickly realize that it would be more productive if I attempted to create the assigned program and only referred to the tutorial as needed. I eventually, even abandoned this and instead just referred to the help section in LabView itself.

The actual generation of the program was pretty straightforward. Through referencing both the help section of LabView, the example program provided by Steve Koch, and Professor Koch himself, I was able to construct a program that generated exponentially distributed random numbers and the provided a histogram of these numbers. I did have some difficulty connecting the wires between objects but after some practice I became more adept at it. Also, I changed the cursor to auto mode and this saved time by not having to change constantly between different functions, such as wiring mode.

When committing and uploading the documents to GitHub I ran into some difficulties. As mentioned early, I created a new directory and then forked and cloned the given repository to the lab computer. However, this created a directory within the directory I had just created. When I wanted to commit and upload the file I had to make sure that I was accessing the directory that was created with I cloned the repository. Once I did this I was able to easily upload the files. The final issue I had was navigating the commenting program that auto loaded when I initiated upload. Professor Koch helped with this by telling me that within this program you pressed “i” to insert a comment, “esc” to exit the program. Additionally, there was a time where he had me hold down “shift” and press “z” “z”. I will need to ask him about this once more in the future.

Once everything was uploaded, I took screen captures of the front and block diagram views of the from LabView. These can be found below.

Additionally, I went to get screen captures of the GitHub code for reference but I received an error stating the computer was encountering a failure while trying to access the clipboard. George also experienced this same problem. Instead, I took pictures of the monitor with my Iphone. The photos are less clear but they serve their purpose and can be found below.


Lastly, I failed to remember that I simply saved this post as a draft and did not post it on the day of the lab. I realized this when I went to comment on other notebooks today.