Tuesday, November 10, 2015

HW #17

PROBLEM #1/2

1) Use a For Loop to create arrays for plotting a cosine wave between -π and +π using 300 points. Send the X and cos(X) arrays to an XY Graph control for plotting.


2) Extend the previous problem by using a Case Structure and Enum control to select between sine, cosine, and tangent plots. Add your own case that creates a different function plot.


Front Panel


Block Diagram



PROBLEM #3

Create a VI that accepts D, Vavg, ρ, and μ as inputs, calculates Reynolds number, and then uses a Case Structure to solve for friction factor using the appropriate equation.


Front Panel



Block Diagram



No comments:

Post a Comment