Question

In: Electrical Engineering

What two structures are used in a state machine implementation in LabVIEW? How are they configured?

What two structures are used in a state machine implementation in LabVIEW? How are they configured?

Solutions

Expert Solution

We need a while loop, a case structure, shift register and a transiion coad.

HOW TO CONFIGER:

1. Create a new blank VI.

2. On the front panel place:

• Two text buttons named “Nickel” and “Dime”

• Text indicator named “Money Deposited”

• Boolean indicator named “Dispense coke”

3. Place a while loop on the block diagram.

4. Place a case structure in the while loop.

5. Create a shift register on the while loop.

6. Create an Enum and wire it to the shift register to initialize it.

7. Right-click the Enum, select Edit Items, and add the following “states”:

• Start

• 5 cents

• 10 cents

• Dispense

8. Wire the shift register to the conditional input of the case structure.

9. Right-click the case box at the top of the case structure and select Add Case for Every Value.

10. Wire the different cases as depicted in the following figures.

11. Wire Dispense coke to the Boolean output of the case structure.

12. Inside the while loop, place a wait function with a constant.

13. Outside of the while loop, wire a constant of 0 to the Money Deposited string indicator.

The finished VI should look like this:


Related Solutions

How does a (properly configured and used) password manager improve the security posture of the user?...
How does a (properly configured and used) password manager improve the security posture of the user? What is the major “security bottleneck” associated with password managers, and what authentication mechanism is used to help alleviate this bottleneck? Describe the trade-offs between security and convenience with respect to local/offline password managers like KeePass and cloud-based password managers like LastPass?
8- a) How is execution order determined in LabVIEW? b) What is the difference between a...
8- a) How is execution order determined in LabVIEW? b) What is the difference between a ‘For-Loop’ and a ‘While-Loop?’ c) What is a cluster in LabVIEW? What is an array in LabVIEW? When should each be used? d) Explain two methods for creating a SubVI. e) Where/How is the “Description and Tips” comments entered for a VI? For a control? For an indicator? f) What two structures are used in a state machine implementation in LabVIEW? How are they...
What are the main types of organizational structures? What organizational structures are used to implement the...
What are the main types of organizational structures? What organizational structures are used to implement the multidomestic, global, and transnational international strategies?
state the function of glycogen and cellulose and describe how their structures are suitable to functions.
state the function of glycogen and cellulose and describe how their structures are suitable to functions.
What are some positive impacts of the implementation of artificial intelligence or machine learning that you...
What are some positive impacts of the implementation of artificial intelligence or machine learning that you could use with fund accounting to counteract the issues of agency readiness, budgetary constraints, or security?
Medication Error What interdepartmental communication channels will be used for plan implementation?
Medication Error What interdepartmental communication channels will be used for plan implementation?
What is the breakeven EBIT of the two capital structures?
DIY has EBIT of $4 million per year forever. Its cost of equity is 12% and tax rate is 40%. There are 1.2 million shares outstanding. It also has $8 million (face value) perpetual debt which pays annual coupon of 5%, and is trading at 125% of the face value. DIY wants to borrow new perpetual debt of $2 million at current cost of debt to buy back its common stocks. Due to this new debt, there will be present...
What is a finite-state machine ? What is a pushdown automaton ? What is a Turing...
What is a finite-state machine ? What is a pushdown automaton ? What is a Turing machine? What is a Turing complete language? Compare the finite-state machine , pushdown automaton , and Turing machine.?
In this paper, you will compare and contrast pay structures used by two different businesses. For...
In this paper, you will compare and contrast pay structures used by two different businesses. For example, you could choose between Apple and Dell, Target and Kohl's, OR Walmart and Meijer’s. The businesses you compare should provide similar products and/or services and be in close proximity, such as the same city or state. Review articles and videos found throughout the course and/or search the Internet to find articles relating to how your two chosen organizations differ or are similar in...
You have purchased a machine costing ​$27 comma 00027,000. The machine will be used for two​...
You have purchased a machine costing ​$27 comma 00027,000. The machine will be used for two​ years, and at the end of this​ time, its salvage value is expected to be ​$12 comma 00012,000. The machine will be used 4 comma 0004,000 hours during the first year and 6 comma 0006,000 hours during the second year. The expected annual net savings will be ​$34 comma 00034,000 during the first year and ​$40 comma 00040,000 during the second year. If your...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT