Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. (10 points) In part 2, the code takes an input variable D and is computing E DI;ist will always be a real number. The

image text in transcribed
image text in transcribed
image text in transcribed
2. (10 points) In part 2, the code takes an input variable D and is computing E DI;ist will always be a real number. The coder implemented this calculation as D2 DD. Knowing the output would be real on the output. Changing the ontput type to a complex double resolves the coercion dot, but, leaves the output complex instead of real. (a) Change the output type from double to complex double and see that the coercion dot is removed. (b) Add two additional indicators to the front panel and implement two alternate calculations that result in the output being a real double precision number 3. (10 pts) In part 3, you will practice some array manipulations. The starter code provides you with an input array and several results indicators. When you are done coding the block diagram, initialize the array with the values provided in figure 4. You will find the function nodes you need on the block diagram's array pallet Part 3 Amay Subue it 10 elenents serted Figure 4: Input array and computed results (a) Add an array subset function node to the block diagram and use four constants to specify the location and range of the array subset to be extracted from the input array. Use the context help to learn how to select the constants. (b) Add a reshape array function node to the block diagram and use it to select the first ten elements from the input array. Use a sort 1-D array function node to sort the result. (c) Use the array max & min function node to determine the input array's maximum value and the indices of its location in the array. Note, when checking your answer, remember that LabVIEW uses zero indexed array dimensions! 2. (10 points) In part 2, the code takes an input variable D and is computing E DI;ist will always be a real number. The coder implemented this calculation as D2 DD. Knowing the output would be real on the output. Changing the ontput type to a complex double resolves the coercion dot, but, leaves the output complex instead of real. (a) Change the output type from double to complex double and see that the coercion dot is removed. (b) Add two additional indicators to the front panel and implement two alternate calculations that result in the output being a real double precision number 3. (10 pts) In part 3, you will practice some array manipulations. The starter code provides you with an input array and several results indicators. When you are done coding the block diagram, initialize the array with the values provided in figure 4. You will find the function nodes you need on the block diagram's array pallet Part 3 Amay Subue it 10 elenents serted Figure 4: Input array and computed results (a) Add an array subset function node to the block diagram and use four constants to specify the location and range of the array subset to be extracted from the input array. Use the context help to learn how to select the constants. (b) Add a reshape array function node to the block diagram and use it to select the first ten elements from the input array. Use a sort 1-D array function node to sort the result. (c) Use the array max & min function node to determine the input array's maximum value and the indices of its location in the array. Note, when checking your answer, remember that LabVIEW uses zero indexed array dimensions

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions

Question

2.3 Describe the requirements for reasonable accommodation.

Answered: 1 week ago

Question

Question Can employees make contributions to a profit sharing plan?

Answered: 1 week ago