Lab 3 - Week 3 Exercise 1 Simple State Machine Aim To understand the sequence of state machine Create a VI using state machine architecture that

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Week 3 Exercise 1 Simple State Machine Aim To understand the sequence of state machine Create a VI using state machine architecture that simulates a simple test sequence. The VI will have an initial state, where it will display a pop-up message indicating that it is starting the test. Then it will proceed to the next case and then to the final state where it will ask the user whether to start over or end the test. Front Panel Rather than start from scratch, we will use a VI template to create our state machine. 1. From the initial Lab View screen click on New… , and choose Standard State Machine, which is located under the VI from Template » Frameworks » Design Patterns heading. 2. Examine the template, and then save it in another directory before you begin working on it. Block Diagram
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
3. Right click on the enum constant labeled Next State and select Open Type Def. 4. On the front panel of the StateMachinesStates.ctl Type Def VI, right click on the States enum control and choose Edit Items . 5. Add two more states. Call them “State 1” and “State 2”
Background image of page 2
Close the State Machines.ctl Type Def Front panel and save the control with the default name when prompted. 7. Right click on the Case Selector Label of the case structure and choose Duplicate case. Do this one additional time so that there are four cases: Initialize, State 1, State 2, and Stop. 8. Change the value connected to the Wait function to 2000. 9.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/08/2010 for the course ME 120 at San Jose State University .

Page1 / 8

Lab 3 - Week 3 Exercise 1 Simple State Machine Aim To understand the sequence of state machine Create a VI using state machine architecture that

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online