Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66796

sub vi buttons in event structure only work during first run.

$
0
0

I have a project that contains separate programs. In the past (for 15 years) I develop a "Main Menu" that uses a producer-consumer structure (events). The user selects "Program 1", event tells consumer loop to open "Program 1". Program one opens, tests are run, exit button returns user to Main Menu. All the separate programs are maximized, open front panel when called, closed when done, etc.

This is the first project I've done in LV 2013 like this and now it doesn't work. If I return to the Main Menu and re-enter Program 1, none of the operator buttons work, which are taken care of in an event structure/consumer loop also.

No variables are passed to/from the Main Menu. Each separate program uses the producer consumer structure with an additional 10 ms loop that reads/writes to DAQmx tasks. All tasks are stopped and deleted upon exist, the queues are closed.

 

I will continue searching for a solution in the discussion forums and knowledge base but if someone sees what I'm doing wrong, please let me know!

 

Thanks.


Viewing all articles
Browse latest Browse all 66796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>