BioNB 442: Lab 4

Data Acquisition

Introduction.

You will connect Matlab to the outside world using the DAQ toolbox. You will produce simple prototypes for an oscilloscope and signal generator.


Procedure:

Assignment

  1. Modify simpleAI.m to include: For testing, connect a wave generator (for instance daqfcngen) to the sound input of the computer and show that you can record the voltages produced by the generator. Verify that a squarewave has a spectrum that drops off as 1/f. Use the multimedia control panel to connect the computer's CD player to the sound input so you can look at more complex signals. If you generate low frequencies of a few Hz, you will notice that square waves droop when viewed through the audio input. This is because the audio input on most PCs does not pass DC, or any low frequency. Estimate the cutoff frequency of the recording channel as 1/(2πτ) where τ is the time constant of dropoff of the square wave.
  2. Modify simpleAO.m to act like a physiological stimulator. It should: For testing you will need to connect the sound output of the computer to an oscilloscope (for instance gPRIME).

Your written lab report should include:

  1. A screen print of the GUI for 1 and 2 above.
  2. A commented listing for the modified simpleAI.m and simpleAO.m programs.
  3. Your estimate of the cutoff frequency of the recording channel.

July 2006 Copyright Cornell university