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...
-
In the scenario of Question 6.5.3, suppose the alternative hypothesis is H 1 : = 1 , for some particular value of 1 . How does the likelihood ratio test change in this case? In what way does the...
-
A large auto manufacturer sells large fleets of vehicles to auto rental companies, such as Budget and Hertz. Suppose Budget is negotiating with the auto manufacturer to purchase 827 vehicles. Write a...
-
Nationwide Insurance developed a program to recruit new insurance agents by offering planning, training, and start-up financing to build self-sustaining agencies. These new agents would be...
-
The following are common audit procedures for tests of sales and cash receipts: 1. Compare the quantity and description of items on duplicate sales invoices with related shipping documents. 2. Trace...
-
X The function h is defined as h(x)=4-x2 x ln x, x>1 jh(x) Show that h(x) dx = 4ln 2- -1 15 16
-
Can someone please summarize the case study below: if you know about the case IKEA Looks to Further Penetrate the U.S. Market 10 CASE Synopsis: IKEA is known around the world for its stylish,...
-
The borrow material to construct an embankment has a dry unit weight of 86.2 pcf and a water content of 5%. The specific gravity of the solids is 2.64. The contract specifications require that the...
-
Present value with periodic rates. Sam Hinds, a local dentist, is going to remodel the dental reception area and add two new workstations. He has contacted A-Dec, and the new equipment and cabinetry...
-
A non-dividend - paying stock with a current price of $52, the strike price is $50, the risk free interest rate is 12% pa, the volatility is 30% pa, and the time to maturity is 3 months? a) Calculate...
-
Instructions: Using the guideline percentages below, calculate the estimated monthly dollar amount of spending for each item shown below. Enter your monthly disposable income from the previous page...
-
8. Here is a (very) simplified balance sheet for Northwest Natural as of Dec 31, 2021, reported on its annual statement (fiscal year 2021) Northwest Natural Balance Sheet As of Dec 31, 2020 Debt...
-
Bavarian Sausage just issued a 7-year 9% coupon bond. The face value of the bond is $1,000 and the bond makes annual coupon payments. If the bond is trading at $982.54, what is the bond's yield to...
-
A temperature sensor located at 4.2 K requires four Manganin instrument leads to 300 K. The length of the wires is 1 m and the sensor operating current (for two of the leads) is I=10 A. Calculate the...
-
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...
-
Using tha data file usmacro, estimate the ARDL \((2,1)\) model Your estimates should agree with the results given in equation (9.42). Use these estimates to verify the forecast results given in Table...
-
Using the data file usmacro, estimate the \(\operatorname{AR}(1)\) model \(G_{t}=\alpha+\phi G_{t-1}+v_{t}\). From these estimates and those obtained in Exercise 9.16, use the results from Exercise...
-
Consider the \(\operatorname{ARDL}(p, q)\) equation and the data in the file usmacro. For \(p=2\) and \(q=1\), results from the LM test for serially correlated errors were reported in Table 9.6 for...
Study smarter with the SolutionInn App