LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW VI Restarting

Solved!
Go to solution

I have a multi-threaded VI that collects AI data, processes the data, and opens/closes SSR's.  I've developed this in LV 2020 on openSUSE 15.1, where it works fine.  Then making a distribution and saving back to LV 2019 and running on Windows 7, the VI behaves VERY strangely.  That is, when the UI is stopped via the Stop button, it goes through the stop process, stopping each of the threads... then it restarts!  It does not do this in Linux, and I've upgraded the Windows machine to W10, and the same problem occurs.  I'm going to put together something really simple and see if the same thing occurs, but any insight would be much appreciated!

 

Greg

Greg R.
0 Kudos
Message 1 of 9
(1,678 Views)

Hi Greg,

 

when you have problems with your VI then you should attach your VI...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 9
(1,671 Views)
Solution
Accepted by topic author Greg_Reynolds

Are you accidentally using the "continuous run" button to run it?

 

("Continuous run" should be renamed to "Zombie mode", i.e. whenever it completes its natural lifespan, it raises up from the dead and starts over 🙂 )

Message 3 of 9
(1,669 Views)

It sounds like you are discarding a Window close filter event.


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 9
(1,668 Views)

@JÞB wrote:

It sounds like you are discarding a Window close filter event.


Not really. That would leave it open, but not restart.

0 Kudos
Message 5 of 9
(1,653 Views)

Hmmm, good question. I'll check.

 

Greg

Greg R.
0 Kudos
Message 6 of 9
(1,638 Views)

Yah, I try to do that. But I'm at around thirty SubVI's currently. 😉

 

Greg

Greg R.
0 Kudos
Message 7 of 9
(1,636 Views)

@Greg_Reynolds wrote:

Yah, I try to do that. But I'm at around thirty SubVI's currently. 😉

 

Greg


Zip the project file with all of the VIs and upload them. It's usually good to save back at least a couple of versions if you're using the current version.

0 Kudos
Message 8 of 9
(1,621 Views)

"Are you accidentally using the "continuous run" button to run it?"


This turned out to be what was happening.  I never thought to ask as I never use the "Run Continuously" button.  So it never occurred to me to ask. Thanks for the help Mr. Altenbach!

Greg R.
0 Kudos
Message 9 of 9
(1,613 Views)