10-03-2012 10:20 AM
I would like to use the architecture from the LabVIEW core 3 module for a project. I made some modifications to it and I'm unable to get it to stop when I pull down "File" in the upper left hand corner and click on "Exit". I've tried setting up probes and walking through the code but I still can't see the issue.
In the lower loop there is a case called "Select 1". If I get rid of the code in that loop the application stops as expected.
Any help is appreciated. To run just unzip, open the project and run "Main_1.0.
Thank you,
Chuck M.
Solved! Go to Solution.
10-03-2012 10:38 AM - edited 10-03-2012 10:43 AM
In your Display Module.vi, you are not sending the Shutdown command. Therefore, your display loop will not get the command and never stop.
EDIT: Nevermind, you are. There are just so many enums with common names running around, I got lost.
If the Select 1 case is causing issues, I'm guessing it is throwing an error in the variant conversion. Make sure you are passing the proper data and converting it properly.
10-03-2012 10:43 AM
I'm not sure what you mean. Do I have to modify "Display Module.vi" to correct the issue?
10-03-2012 10:47 AM - edited 10-03-2012 10:49 AM
Found it. Look in your Initialize.vi. You will find a Display Module sending the Select1 command. But the data is a variant. A raw variant. This cannot be converted into a numeric. Therefore, an error is being thrown, the queue will never be read again, and you will have an infinate loop.

You just need to wire in a value converted to a variant into the data here.
10-03-2012 10:48 AM
I see now.
Thank you.