Write a program to obtain the theoretical magnitude versus frequency characteristic of this Low Pass filter,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program to obtain the theoretical magnitude versus frequency characteristic of this Low Pass filter, shown in the Figure 1, over the range of frequencies from 100HZ to S0KHZ. The program should increment the frequency by 100HZ for frequencies between 100 and 5000HZ. From 5000 to 8OKHZ, the frequency should increment by IKHZ. Assume that the amplitude of the function generator is 1.4 volt. The test frequencies used are set by two nested loops: freqi = 100; 100; %3D step freq_end = 50003B for (i { %3! 1;i<=2;i++) for(freq=freq1;freq<freq_end; freq=freq+step) { = 1000; = 80000; freq_end step The frequency values and the values of voltage measured at VOM should be written into a data file called C:\CAP1.dat. After running this program to test the shown Low Pass filter, make a printout of it, and then give a copy of the source code to your instructor together with the output of your program. Using GNUPLOT, make a graph of Frequency vs. Measured Voltages from the data file. Mark on your plot the cut off frequency, which is the frequency when the output voltage measured at VOM value is equal to 0.707V The measured output voltage at VOM is given by 1. Vi+ (2mfRC) PART B: Repeat the procedure of part A, but this time use: 1. two files: a) ifstream readfile; readfile.open("C:temp\freq1.dat"); b) ofstream writefile; writefile.open("C:\temp\cap.dat"); The input file is called C:\freql.dat and should contain all frequency values used in Part A. Name the output file C:\temp\CAP2.dat, this is the file where the frequency and voltage values will be saved. 2. use only one loop: for(i- 1;i<= some value; it+) 3. Submit to your instructor the source code and a copy of the output data he. R=10KO + VOM Function AC Range C=0.01uF: Generator Figure 1 Low Pass Filter + Write a program to obtain the theoretical magnitude versus frequency characteristic of this Low Pass filter, shown in the Figure 1, over the range of frequencies from 100HZ to S0KHZ. The program should increment the frequency by 100HZ for frequencies between 100 and 5000HZ. From 5000 to 8OKHZ, the frequency should increment by IKHZ. Assume that the amplitude of the function generator is 1.4 volt. The test frequencies used are set by two nested loops: freqi = 100; 100; %3D step freq_end = 50003B for (i { %3! 1;i<=2;i++) for(freq=freq1;freq<freq_end; freq=freq+step) { = 1000; = 80000; freq_end step The frequency values and the values of voltage measured at VOM should be written into a data file called C:\CAP1.dat. After running this program to test the shown Low Pass filter, make a printout of it, and then give a copy of the source code to your instructor together with the output of your program. Using GNUPLOT, make a graph of Frequency vs. Measured Voltages from the data file. Mark on your plot the cut off frequency, which is the frequency when the output voltage measured at VOM value is equal to 0.707V The measured output voltage at VOM is given by 1. Vi+ (2mfRC) PART B: Repeat the procedure of part A, but this time use: 1. two files: a) ifstream readfile; readfile.open("C:temp\freq1.dat"); b) ofstream writefile; writefile.open("C:\temp\cap.dat"); The input file is called C:\freql.dat and should contain all frequency values used in Part A. Name the output file C:\temp\CAP2.dat, this is the file where the frequency and voltage values will be saved. 2. use only one loop: for(i- 1;i<= some value; it+) 3. Submit to your instructor the source code and a copy of the output data he. R=10KO + VOM Function AC Range C=0.01uF: Generator Figure 1 Low Pass Filter +
Expert Answer:
Answer rating: 100% (QA)
if LOWPASS float RC 10CUTOFF2314 float dt 10SAMPLE RATE float alpha dtRCdt float filtere... View the full answer
Related Book For
Data Structures and Algorithm Analysis in Java
ISBN: 978-0132576277
3rd edition
Authors: Mark A. Weiss
Posted Date:
Students also viewed these electrical engineering questions
-
Write a program to compute word ladders where single-character substitutions have a cost of 1, and single-character additions or deletions have a cost of p > 0, specified by the user. As mentioned at...
-
Write a program to print Hello World 25 times without writing a single line in the main function except system(pause).
-
For this lab, you will write a program to determine how many licks it takes to get to the chewy center of a Tootsie Pop. You will use both a while loop and a for loop to display how much of the outer...
-
The figure shows a coil with a sheet iron core with unlimited magnetic penetration and a rectangular cross-section. The coil is made of insulated copper wire with specific resistance p. Coil...
-
Spend some time looking at the Web site of the Craft & Hobby Association. Make a list of networking opportunities made available via membership in this organization.
-
(a) Sketch the graph of a function on [1, 2] that has an absolute maximum but no local maximum. (b) Sketch the graph of a function on [1, 2] that has a local maximum but no absolute maximum.
-
What reasons can you give in support of, and against, the development of separate financial accounting guidelines and standards that reflect the financial consequences of environmental issues?
-
The uniform ladder rests along the wall of a building at A and on the roof at B. If the ladder has a weight W and the surfaces at A and B are assumed smooth, determine the angle for equilibrium....
-
education.com/ext/map/index.html?_con=con&external_browser=0&launchUrl=https%253A%252F%252Flms.mheducation.com%25... omework i Saved Help Save & Exit Submit Check my work Required information [The...
-
An acetoneethanol mixture of 0.5 mole fraction acetone is to be separated by batch distillation at 101 kPa. Vaporliquid equilibrium data at 101 kPa are as follows: (a) Assuming an L=D of 1.5 times...
-
When 0.1 M persulfate ions (-2 charge) reacts with 0.1 M iodide ions (-1 charge), if the rate constant of this reaction at room temperature and 0.1 M ionic strength was 3x 10 ^ -5 L/mol.s. The rate...
-
Preliminary data is reviewed in relation to what feature of the control charts, thereby helping to decide what is theh data to discard?
-
Suppose you deposit each of the following cash flows into a bank account: $4,0001 year from today; $8,0003 years from today; $4,0007 years from today. If the account that earns an annual rate of ...
-
Solve the equation. (5y+2)(y+7)=-3(5y+2)
-
What equity financing options could the club have considered to raise some of the capital to build the new stadium?
-
Prepare the income statement. Adjusted Trial Balance Trial Balance Adjustments Account Debit Credit Debit Credit Debit Adjusted Trial Balance Credit Cash Accounts receivable Prepaid rent Supplies...
-
QUESTION 1 a) The mass and the diameter of a hemisphere are 1.5 1012 g and 2.5105 cm, respectively. Determine the density of the hemisphere in kg/m. b) Three vectors are shown below: B 56.0 to 28.0...
-
Write each fraction as a percent. 7 50
-
Determine the running time of mergesort for a. Sorted input b. Reverse-ordered input c. Random input
-
You are a tournament director and need to arrange a round robin tournament among N = 2k players. In this tournament, everyone plays exactly one game each day; after N 1 days, a match has occurred...
-
Suppose that the maze may or may not have a solution. a. Describe a linear-time algorithm that determines the minimum number of walls that need to be knocked down to create a solution. b. Describe an...
-
The load resistor in the NMOS inverter in Figure \(16.3(\mathrm{a})\) is \(R_{D}=40 \mathrm{k} \Omega\). The circuit is biased at \(V_{D D}=3.3 \mathrm{~V}\). (a) Design the transistor...
-
The inverter circuit in Figure 16.3 (a) is biased at \(V_{D D}=3.3 \mathrm{~V}\). Assume the transistor conduction parameter is \(K_{n}=50 \mu \mathrm{A} / \mathrm{V}^{2}\). (a) Let \(R_{D}=100...
-
(a) Redesign the resistive load inverter in Figure 16.3 (a) so that the maximum power dissipation is \(0.25 \mathrm{~mW}\) with \(V_{D D}=3.3 \mathrm{~V}\) and \(v_{O}=0.15 \mathrm{~V}\) when the...
Study smarter with the SolutionInn App