Some purpose such as modeling or curve fitting

Assignment Help Other Engineering
Reference no: EM13798439

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

Reference no: EM13798439

Questions Cloud

Concept of engineering professionalism related issues : Discuss how extortion is different from bribery with the help of an example and reasoning?
What are the volume and the density of the object : A particular object weighs 343 N in air and 144 N when immersed in alcohol of density 0.7 g/cm3. What are the volume and the density of the object
Origins of the human trafficking : Please discuss at least the origins of the human trafficking in this region, and current efforts to minimize it globally. (This essay will likely be between 300-500 words)
Describe the adaptive work that needs to be accomplished : Analyze your approach to resolving the problem. Be certain to include questions that would arise, and what trade-offs may be required in your analysis
Some purpose such as modeling or curve fitting : Use a For Loop to create an array containing 100 elements between 0 and 500.
Connection to cultures besides own : People often go through life without having made any connection to cultures besides their own. This not only hinders one's personal development but it also limits one's ability to fully grasp the nature of other people's lives. In this assignment,..
Car security system consists of five digits : The access code for a car's security system consists of Five digits. The first digit cannot be zero and the last digit must be odd. How many different codes are available?
What is the brand-building process the company must follow : What is the brand-building process the company must follow
What is tension in the string : Figure (a) shows a sphere of radius r = 21 cm and density of ρ = 3.1 g/cm3 suspended in water. What is tension in the string

Reviews

Write a Review

Other Engineering Questions & Answers

  Describe how security administration works to plan

Describe how security administration works to plan, design, implement, and monitor man organization's security plan.

  What type of loading arrangements found on a roadheader

Design a suitable ore pass to transport ore a vertical distance of 200m from  the extraction level to the transport level of a block caving mining operation.

  Describes cold water systems into buildings

Prepare a portfolio include a fully illustrated report that describes cold water systems into buildings, covering, as minimum, ALL the above topics.

  Generate a report on the type of clutch system

Investigate the clutch systems being displayed and generate a report on the type of clutch system and transmission it is used for

  Research paper on the topic - reservoir characterisation

Give preferences that will provides students with a detailed understanding of the rock and rock-fluid properties of oil and gas reservoirs; an understanding of the Darcy equation

  Minimize the total operating cost

formulate a linear programming model for this problem. Define decision variables, and then define your constraints and objective function accordingly. Combine everything to get the final model.

  Simulation with arena an office of a state license bureau

an office of a state license bureau has two types of arrivals. individuals interested in purchasing new plates are

  Characterization technology for nanomaterials

Calculate the reciprocal lattice of the body-centred cubic and Show that the reciprocal of the face-centred cubic (fcc) structure is itself a bcc structure.

  Question 1case study discussiona the it strategy at

question 1case study discussiona the it strategy at nestleacute is almost entirely dictated by the business strategy of

  Environmental issues on usage of pesticides

Describe the function(s) of the organisation and data justifying the need for the Initiative.

  How to build a earthquake proof building

How to build a earthquake proof building

  Involve interaction with technology

Most jobs involve interaction with technology in some form. Police officers have computers in their squad cars, nurses enter your blood pressure and pulse into electronic files.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd