Engineering 103 –UMass Boston

CW 8

(In-Class-Work 8)

 

                                

Plotting a function using 1) For Loop; 2) Evaluation of Single Variable Array; 3) Waveform Graph (see class note for additional instructions)

a)     Make a VI that can plot any function between 0 and 4 (using N=101 points, for example). Use LabVIEW For Loop, Eval Single-Variable Array (version 7.1: under Analyze/Mathematics/Formula/Advanced Formula Parsing; version 8.2: under Mathematics/Scripts&Formulas/1D&2D Eval), and Bundle (under Cluster) to tell the Waveform Graph the initial value, increment for t (the function’s argument), and values of the function. Use cos(t) as the input function to be plotted. Click on the Light Bulb in the Diagram, and then click Run to see how the For Loop and the program work. Save the VI into a LLB file named cw8_XX_Y, as “part a” after selecting Files/Make Current Values as Default.

b)     Make another VI by modifying the VI  in a) such that it uses only 5 points. Note the difference. Then use trial-error method to see what is the smallest number of points that would make the graph look like the actual function. Save the VI into the same LLB file (cw8_XX_Y) as “part b” after doing Files/Make Current Values as Default with this smallest number of points

 

Please insert names and dates within the Front Panels. By alphabetical order of the last names, the first two students in each team will submit LabVIEW LLB file cw8_XX_a.llb, the next two students will submit LabVIEW LLB file cw8_XX_b.llb, to the files folder in the server. Each LLB file should contain two VI’s corresponding to this CW. These files need to be uploaded to the server today to receive credit.

 

*Remember that this is an individual work (turn it in, as instructed, with your name and date). Home-works and class-works count 20% toward the course grade. Class-works are done in class.