07-21-2005 08:30 PM
07-21-2005 10:49 PM
Hi David-
One way to perform this efficiently is to use event-driven programming with an Event Structure in LabVIEW. The reason your VI crashed when just polling a boolean every time and executing code based on the state of that control is likely that you were running the "Open Reference..." sequence many times on the same VI. This can't work because once a VI is opened you can't open it again.
Check out the file "toplevel.vi" in the .llb I have attached here. It shows how to use events to ensure that the code is only executed when a change on the front panel control takes place.
I hope this helps-