Exercise_3 - Exercise 3, A&EP 264, Fall 2007 Digital to...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Exercise 3, A&EP 264, Fall 2007 Digital to Analog Conversion (DAC) This exercise shows how to produce a continuous voltage waveform using one of the two DAC ports of the NI 6221 DAQ card. Step 1: Copy the attached DAC_Sinegen.cpp program to the Notepad and configure it so that the sinusoidal waveform is generated on the DAC 1 port. Compile and run the program and observe the output on the oscilloscope. Make a sketch of the waveform in you lab notebook. Step 2: Leave this program on your Workspace and open Microsoft Visual Studio again to permit simultaneous operation of a second program. This second program will be a modification of the “ADC_example.cpp” program you used in Exercise 2. Name the new program “ADC_from_DAC.cpp”. This modified program will write a data file named “Sinewave_from_DAC.dat” consisting of 100 rows of voltages sampled at time intervals of 200 milliseconds using a “for loop” and the delay() function. The rows of this file should also be written to the computer screen as
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/04/2008 for the course AEP 2640 taught by Professor Cool during the Spring '08 term at Cornell University (Engineering School).

Page1 / 2

Exercise_3 - Exercise 3, A&EP 264, Fall 2007 Digital to...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online