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

  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.

  Calculate the gasoline savings

How much gasoline do vehicles with the following fuel efficiencies consume in one year? Calculate the gasoline savings, in gallons per year, created by the following two options. Show all your work, and draw boxes around your answers.

  Design and modelling of adsorption chromatography

Design and modelling of adsorption chromatography based on isotherm data

  Application of mechatronics engineering

Write an essay on Application of Mechatronics Engineering

  Growth chracteristics of the organism

To examine the relationship between fermenter design and operating conditions, oxygen transfer capability and microbial growth.

  Block diagram, system performance and responses

Questions based on Block Diagram, System Performance and Responses.

  Explain the difference in a technical performance measure

good understanding of Mil-Std-499 and Mil-Std-499A

  Electrode impedances

How did this procedure affect the signal observed from the electrode and the electrode impedances?

  Write a report on environmental companies

Write a report on environmental companies

  Scanning electron microscopy

Prepare a schematic diagram below of the major parts of the SEM

  Design a pumping and piping system

creating the pumping and piping system to supply cool water to the condenser

  A repulsive potential energy should be a positive one

Using the data provided on the webvista site in the file marked vdw.txt, try to develop a mathematical equation for the vdW potential we discussed in class, U(x), that best fits the data

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