LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with architecture used in core 3

Solved!
Go to solution

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.

0 Kudos
Message 1 of 5
(2,789 Views)

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.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 5
(2,782 Views)

I'm not sure what you mean. Do I have to modify "Display Module.vi" to correct the issue?

0 Kudos
Message 3 of 5
(2,778 Views)
Solution
Accepted by topic author chuck72352

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.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 4 of 5
(2,775 Views)

I see now.

 

Thank you.

0 Kudos
Message 5 of 5
(2,772 Views)