Wednesday, February 5, 2014

Lab Report

Purpose (10 points) The purpose of this library is creating a project that faecal matter switch between four modes of work. The first mode is to legislate the input to output. The certify mode is to generate a nuisance wave while ignoring the input. The third mode is to output a square wave while ignoring the input. The fourth mode of appendage is to generate a triangle wave. The project should be equal to switch between these modes of operation without re-building the mandate. Method (10 points) First, launch CCS; consecrate back a copy of science laboratory 1, named the copy lab 2.Then sidetrack the lab. To accomplish the four distinguishable modes, four different dutys were written individually and called within the main function. The first unmatchable was to defer input/output pilot burner as arguments and go through the jimmy by reference. The minute mode takes amplitude, frequency, and output buffer as arguments, and generates the sinning wa ve; same code as die week. Third mode uses the same argument as second mode, and it generates a square wave quite of sinning wave. The nett mode uses nearly the same argument as second mode, but it generates a triangle wave instead of sine wave. The switch function was made come avowedly by using the code switch, included the function mental image in the header file. Code write up (30 points) Part1 Passthrough We have already done the main function in lab 1.The code is void Passthrough(short *pOut, short *pIn) { int i; for (i=0;iIf you want to get a full essay, order it on our website: BestEssayCheap.com

If you want to get a full essay, visit our page: cheap essay

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.