Please solve using LABVIEW and include block diagram and front panel screenshots. Please solve using LABVIEW and include

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Please solve using LABVIEW and include block diagram and front panel screenshots. Please solve using LABVIEW and include

Post by answerhappygod »

Please solve using LABVIEW and include block diagram and front panel screenshots.
Please Solve Using Labview And Include Block Diagram And Front Panel Screenshots Please Solve Using Labview And Include 1
Please Solve Using Labview And Include Block Diagram And Front Panel Screenshots Please Solve Using Labview And Include 1 (188.69 KiB) Viewed 49 times
Please solve using LABVIEW and include block diagram and front panel screenshots.
DO IT YOURSELF Icons used in this DIY project can be found with the aid of Quick Drop. Four Flipping Coins.vi A flipped coin can land in one of two states-heads or tails. Write a VI that simulates simultaneously flipping four coins and determines how many of these coins land in the heads state. (a) First, build the front panel as shown here, where the state of each coin is rep- resented by a Round LED Boolean indicator. A lit (unlit) LED corresponds to heads (tails). Also include a Numeric Indicator labeled Number of Heads that gives the number of coins in the heads state. Four Flipping Coins.vi Front Panel File Edit View Project Operate Tools Window Help II 15pt Application Font Heads = Lit Coin 1 Coin 2 Tails = Unlit Coin 3 Coin 4 0.5 00 Coin 1 *0* Number of Heads 0 Using the block-diagram code shown next, model the flip of each of the four coins using a Random Number (0-1) icon. When this code is run, if the Random Number (0-1)'s output is greater than or equal to 0.5, the correspond- ing coin is assigned an output value of 1 (corresponding to the heads state); otherwise, that coin is assigned an output value of 0 (corresponding to the tails state). Random Number (0-1) TTT Boolean To (0,1) 21:0 <
Use a Compound Arithmetic icon to tally the output values of all four coins and so determine the number of coins in the heads state. Output this integer DO IT YOURSELF to the Number of Heads front-panel indicator. Note that there are five possible outcomes 0, 1, 2, 3, and 4 heads. Run your VI to verify that it is working correctly. b) The present code on your block diagram simulates one trial of simultane- ously flipping the four coins. Now simulate repeating such a trial over and over again. Place this code within a For Loop so that you can execute N tri- als, where N is given by the value in a front-panel Numeric Control labeled Total Number of Trials. Store the value of Number of Heads from each trial in an array using the For Loop's auto-indexing feature. Then, after the N tri- als are complete, plot a histogram on a Waveform Graph that displays the number of trials whose outcome was 0, 1, 2, 3, and 4 heads. To create a his- togram, use the Histogram.vi icon as shown below with its intervals input wired to an integer 5 (because there are five possible outcomes for Number of Heads). Alternatively, the value for intervals can be calculated via the relation intervals = max value - min value + 1 using the Array Max & Min, Subtract, and Increment icons. C
Heads Lit Coin 1 Coin 2 Total Number of Trials 0 intervals 5 The completed front panel of your VI will then appear as shown next. Four Flipping Coins.vi Front Panel File Edit View Project Operate Tools Window Help II 15pt Application Font Ba Tails Unit Coin 3 Histogram.vi лом Coin 4 Histogram: h(x) Number of Heads 0 Waveform Graph Chapter 3 The For Loop and Waveform Graph Waveform Graph 4000- 3500- 3000- 2500- 2000- 1500- 1000- 500- Number of Trials Search Number of Heads Plot 0 115 Run Four Flipping Coins with several choices of Total Number of Trials. In the Waveform Graph's Plot Legend, you may wish to select a Bar Plots option in its pop-up menu. From statistical theory, it is expected that when the number of trials N is large, the number of trials with an outcome of zero or four heads should equal N() = TO^ (3) * 4! N 2!2! with this expectation? -N and the number of trials with an outcome of two heads should be 16 3 N. Above what (approximate) value of N are your results consistent Copyrighte
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply