01-23-2013 06:48 PM
I am working on a project to create the dashboard of a car.I have a stacked structure with a few frames. I want to have an ignition boolean control that will start and stop the stacked sequence once i have already hit run continuously. Any help would be greatly appreciated.
01-23-2013 06:51 PM
Also is there any way to change the frame numbers to frame names? For example, Engine, radio, etc.
01-23-2013 08:19 PM
1. Your question has nothing to do with DAQ. It would have been better to post to the LabVIEW Board.
2. Run continuously should never be used to operate a program. It is for very limited use in testing during program development. You should wrap you code in a while loop and add a Stop boolean on the front panel to allow the user to stop the program.
3. Stacked sequences have no place in a modern LabVIEW program. They were useful in the very early days. Replace with a case structure. If you pop up on the border of the frame, choose Replace >> Replace with Case Strucure from the pop up menu.
4. Frames only have numbers.
Now, the solution to all your problems in one easy (well, not too difficult) step: Convert your program to a state machine.
A state machine is implemented as a while loop (item 2 above) containing a case structure (item 3) with a state variable passed from one iteration to another via a shift register. If you use an enumerated type (enum) the item names of the enum show up automatically as the case names. By ameking the enum a typedef you automatically have any changes propagate through all the cases and averywhere a copy of it is used.
There are examples of state machines which come with LV and many more on the Forum.
Lynn