1. Generate an analog sinusoidal signal by using the function generator provided. Set up and
adjust the function generator to create the sinusoidal signal of amplitude 0.3 volts and
frequency f0 , i.e. f (t) 0.3sin(2 f0t) Volts, let 0 f 1kHz . While adjusting, the required
output signal should be monitored through an oscilloscope. Record (or sketch) the waveform
obtained for a length of 2 cycles.
2. Input the generated sinusoidal signal through the Line In jack of the PC sound card by using
the special connector provided. Run Matlab and, at the command prompt, record the Line In
signal by typing in the following command
>> fkrx = wavrecord(5*Fs, Fs, 1,'double');
where Fs is the sampling frequency. This command asks the system to record the input
signal via the sound card with time duration of 5 seconds, sampling frequency Fs, and store
the digital signal data in double precision. Now choose
i) Fs = 16 kHz and record the signal to the variable named fkr16, and
ii) Fs = 4 kHz with the name fkr4. Then plot out the signal by the
commands:
>> stem(fkr16)
>> stem(fkr16(100:132))
>> stem(fkr4(100:109))
Save the graphs of these signals.
NOTE: before recording, make sure to set the audio mixer control as follows: set Line In,
Record and Wave volumes to be at middle position, turn off Mic In and other inputs, e.g. EQ,
1 . สร้างกระแสสัญญาณอะนาล็อกโดยใช้เครื่องกำเนิดไฟฟ้าที่ให้ไว้ ตั้งค่าและ
ปรับเปลี่ยนฟังก์ชั่นเครื่องกำเนิดไฟฟ้าเพื่อสร้างสัญญาณรูปไซน์ของขนาด 0.3 โวลต์
ละความถี่ เช่น f ( t ) 0.3sin ( 2 f0t ) โวลต์ให้ 0 F 1khz . ในขณะที่การปรับใช้
สัญญาณควรจะตรวจสอบผ่านออสซิลโลสโคป . บันทึก ( หรือภาพ ) รูปคลื่น
ส่วนความยาว 2 รอบ .
2 การสร้างกระแสสัญญาณผ่านสายแจ็คของการ์ดเสียงในคอมพิวเตอร์โดยใช้
เชื่อมต่อพิเศษให้ ใช้ Matlab และพร้อมรับคำสั่ง , บันทึกสายสัญญาณ โดยการพิมพ์ใน
ตามคำสั่ง
> > fkrx = wavrecord ( 5 * FS , FS , 1 , 'double ' ) ;
ที่ FS คือความถี่ในการสุ่มตัวอย่าง . คำสั่งนี้ ขอให้ระบบบันทึกข้อมูล
สัญญาณผ่านทางการ์ดเสียงที่มีระยะเวลา 5 วินาที , FS ความถี่ในการสุ่มตัวอย่างและเก็บข้อมูล
ดิจิตอลสัญญาณความแม่นยำสองเท่า ตอนนี้เลือก
i ) FS = 16 kHz และบันทึกสัญญาณให้ตัวแปรชื่อ fkr16 และ
2 ) FS = 4 kHz ที่มีชื่อ fkr4 . แล้วแปลงสัญญานจากคำสั่ง :
> > ก้าน ( fkr16 )
> > ก้าน ( fkr16 ( 100:132 )
> > ก้าน ( fkr4 ( 100:109 )
บันทึกกราฟของสัญญาณเหล่านี้ .
หมายเหตุ :ก่อนการบันทึก ให้แน่ใจว่าได้ตั้งค่าการควบคุมเครื่องผสมเสียง ดังนี้ ชุดสายใน
บันทึกและปริมาณคลื่นจะอยู่ที่ตำแหน่งกลาง ปิดไมค์ และปัจจัยการผลิตอื่น ๆเช่น EQ ,
การแปล กรุณารอสักครู่..
