Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Other Engineering Expert

1. Some programs have a feature that allows you to quickly prepare a plot of a function over a standard range, such as -10 to +10.This can be handy when you need to select a function for some purpose such as modeling or curve fitting. We can create a VI in LabVIEW that does the same thing because LabVIEW allows you to replace one function with another without breaking all the wires. Create a Function Plot VI for the Sine function that uses a For Loop to evaluate the function over the range -10 to +10, with at least 200 points (for creating a smooth plot).Send the X and sin(X) values to an XY Graph control.

Once your VI is working with the Sine function, replace the Sine function with the following:

a. Sin(X)/X function-what is the minimum value in the range -10 to +10?

b. Asec(X) function-how does the VI respond to undefined values, such as Asec(0)?

Your block diagram should look like this:

1615_5.png

2. Use a For Loop to create an array containing 100 elements between 0 and 500.

3. A classic example of the use of a While Loop is calculating factorials .The factorial of X (an integer) is the product of X and all smaller integers, down to 1. The factorial of 4 is
4 * 3 * 2 * 1 = 24
To calculate a factorial using a While Loop (see Figure), you:
• Send the initial value of X into a shift register that keeps track of the Current Value.
• Use a second shift register to keep track of the increasing product value (initialize with a value of 1).
• Multiply by the current X value and the product from the previous cycle
• Decrement the current X value.
• Loop until the current X value is less than or equal to 1.

Write a VI that calculates factorials using a While Loop. Set the Representation of the controls, indicators, and constants to integer (I32, for example).
a. What is the maximum initial value of X that will work with I32 controls and indicators?
b. What is the maximum initial value of Xthat will work with I64 controls and indicators?
c. What happens if someone tries to use an initial value of X that is too large?

d. Modify the control for the initial value of X to restrict the allowable values that the user can enter to integers between 1 and the maximum possible value from part b.

1663_6.png

Other Engineering, Engineering

  • Category:- Other Engineering
  • Reference No.:- M91368472
  • Price:- $9

Priced at Now at $9, Verified Solution

Have any Question?


Related Questions in Other Engineering

Assignment 11 what is the purpose of ore reserve and

ASSIGNMENT 1 1. What is the purpose of ore reserve and resource estimation? Why are resource and reserve estimates important to the mining industry? 2. What is meant by ore? What is meant by the term waste? How is the di ...

1 online discussion forum - post your proposed topic and

1. Online Discussion forum - Post your proposed topic and chosen data set as well as a short plan for the project. This is required for approval of the topic. As discussed, students must select unique topics, therefore i ...

Question 1 define rock mechanics discuss the main

Question 1 . Define rock mechanics. Discuss the main objectives of the application of rock mechanics in mining. Question 2. Define stress. Draw a diagram and define the normal and shear stress by resolving the resultant ...

Load fault level analysis amp protection design of a remote

LOAD, FAULT LEVEL ANALYSIS & PROTECTION DESIGN OF A REMOTE AREA MICROGRID Assignment Please undertake the following analyses: 1. Calculate the 3-phase fault levels on Bus 2, Bus 3 and Bus 4 with the main supply connected ...

Mine safety amp environmental engineering assignment -part

Mine Safety & Environmental Engineering Assignment - Part 1 - Questions 1. Occupational health and safety is the primary factor that needs to be considered in the mining industry. Discuss this statement. 2. Define the fo ...

Projection of planes1 a regular pentagon of 25 mm side has

Projection of Planes 1. A regular pentagon of 25 mm side has one side on the ground. Its plane is inclined at 45° to H.P. and perpendicular to the V.P. Draw its projections. 2. Draw the projection of a circle of 50 mm di ...

Assessment practical reportproduce a short technical report

Assessment: Practical Report Produce a short technical report in a form consistent with proteomic journals covering the techniques, results and interpretation of your proteomics experiment in the practical classes. The r ...

Assignment 11 what is the purpose of ore reserve and

ASSIGNMENT 1 1. What is the purpose of ore reserve and resource estimation? Why are resource and reserve estimates important to the mining industry? 2. What is meant by ore? What is meant by the term waste? How is the di ...

Register design a cpu register is simply a row of

Register design A CPU register is simply a row of flip-flops (i.e. SR, JK, T, etc) put side by side in an array to make the size of register required. For example, an 8 bit register has 8 flip-flops side by side for stor ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As