11-17-2006
03:42 PM
- last edited on
03-14-2024
01:11 PM
by
Content Cleaner
11-17-2006 04:31 PM
11-20-2006
05:03 PM
- last edited on
03-14-2024
01:12 PM
by
Content Cleaner
Amal,
I might suggest taking a look at the State Machine template that is available when you select New... from the menu. The state machine should be in the following path:
VI » From Template » Frameworks » Design Patterns » Standard State Machine
Taking a look at your code, it looks like you might need to make some adjustments to get things to work how you would like them to. You don't really seem to have a state machine type of structure, so that template will give you a good idea what to do. That way you can set up somewhat of a state diagram and implement that in code. It seems like you need several cases including reading your file, parsing the values, user interface interaction, and any other steps that you might need.
I would suggest sitting down and drawing a state diagram and sitting down with the template and run it using highlight execution (the little light on the Block Diagram toolbar) to get an idea of how you could implement that in LabVIEW. We actually offer a toolkit that you might be interested called the State Diagram Toolkit, which would allow you to just draw that diagram and have the structure generated for you.
Let me know if you have any questions! Thanks!
Andy F.