Data collection using the LabPro and Excel

Updated 2/4/05

    Ray Wisman
    Kyle Forinash

What it does and how it works:

The software available from this web page allows an Excel spreadsheet to control and collect data from a LabPro (from Vernier Software) connected on a serial port. The Excel and LabPro can be on the same computer or on remote computers connected over the Internet. We have used this arrangement for student labs and an ongoing student research project.

We are providing two pieces of software:

  1. An example Excel spreadsheet -  A Visual Basic (VB) macro controls the LabPro and retrieves data into the spreadsheet. The data can be graphed, analyzed etc. as normal.
  2. A small communications server program - A TCP to serial convertor (TCP2Serial) which facilitates the communication between the spreadsheet macro or other networked application and the serial port where the LabPro is plugged in. TCP2Serial runs in the background on the computer where the LabPro is connected.

Also:

How to set this up:

  1. Download the TCP2Serial source software (from Internet Explorer right click on one of the following and 'Save Target As'). Versions choices of TCP2Serial include:
  2. Download the Excel spreadsheet. Note you have two options here: a left click will run the spreadsheet in the browser, a right click with allow you to 'Save Target As'. The spreadsheet will work either way but some functions do not work in the browser.
  3. Plug your LabPro into the serial port of the computer where the TCP2Serial software is running.
  4. Launch the TCP2Serial software on the computer where the LabPro is attached. You may need to modify some parameters for your systems serial port assignments.
  5. Start the DataLogger Spreadsheet by double clicking on it. Say yes to 'Enable Macros'. Don't worry- this is no virus.
  6. Potential problems:

An Example:

For the past few years an introductory calculus based physics class here at IUS has done a Fast Fourier Transform lab on sound using a microphone, the LabPro and our software. Students first sampled local sound sources (from instruments which they brought to class) and then (through the Internet) sampled an "unknown" source hidden in my office. Here are the student instructions for the FFT lab and here is how the Excel spreadsheet appears:

Physics at IUS: http://physics.ius.edu/
Contact Dr. K. Forinash, for comments/suggestions/corrections.