09-22-2006 01:56 PM
09-22-2006
02:07 PM
- last edited on
11-01-2025
06:09 PM
by
Content Cleaner
Your code looks really well written! The style looks great, and believe me that's important...
Regarding your issue here, you are likely experiencing the problem that LabVIEW is locking the front panel until the event case completes, which is the default behavior. Unfortunately, your event case is set to run indefinitely, meaning the front panel will be locked indefinitely.
Read up a little on caveats and recommendations for using event structures. I know it doesn't sound like it, but the first item in the list corresponds to your situation. You can turn off front panel locking to avoid this problem, but a better scenario would be to simply trigger the code to start in your event case, but not wait for it to complete. The Producer/Consumer design pattern is great for this. It basicly involves a second loop (the consumer loop) that your event structure loop (the producer loop) sends commands to to do all the heavy lifting and processing. Meanwhile the producer loop always stays responsive to front panel interaction.
09-22-2006 03:20 PM
09-22-2006 06:33 PM
Thanks for all the tips. I finally got the stupid thing to work. After trying some of the queue'ing techniques, I finally went to check on locking/unlocking the front panel. I found the location of this...
Right Click the Event Structure > Edit Events > 'highlight each event,' Unlock
Ahhh and everything works. That was a day well spent. Thanks again for the help.