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

  A linear time-invariant discrete-time system issues

Use Matlab to obtain the poles of the system. Is the system stable? Explain.

  Actors will interact with the processes on the use case

create a use-case diagram for the crm system following the uml guidelines in appendix a of the textbook.doc sharing

  Find the ultimate bod of the river water

Environmental engineering, CEE 357 Winter 2014. HW#6 Assignment: -  Find the ultimate BOD of the river water as it enters the lake. Find the value of the rate constant for BOD utilization in the river, k d,riv .

  1 prepare a schematic diagram below of the major parts of

1. prepare a schematic diagram below of the major parts of the sem filament anode wehnelt condenser lens objective lens

  The significance of a voltage amplifier and its applications

Describe how negative feedback works, and explain some of its advantages.

  The z-transform for the discrete-time signal

Compute the z-Transform for the discrete-time signal,Compute the inverse z-Transform of the transform.

  Summarise the steps in the development of an open pit mine

Draw a plan of a typical strip mine showing all operational features and equipment - Summarise the steps in the development of an open pit mine. b. What are the purposes of safety benches?

  Installation of fm radioat this time working at xxxplace

installation of fm radioat this time working at xxxplace nbspi did budget requisition for equipment needed for radio

  Evaluate the online crm system of your bank what are the

what are the motivations for an organization to have a good supply chain management scm system? define scm in your own

  Kk-3 system coding in grope technology

how to write code for any particle shape using KK-3 system coding in grope technology

  Design a building matching the code

Assessment based on design a building matching the code that they mension

  Design and modelling of adsorption chromatography based on

design and modelling of adsorption chromatography based on isotherm dataadsorption systems are most commonly set-up as

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