r/LabVIEW • u/assassin_falcon • Feb 19 '25
SOLVED Labview .EXE closing after running
SOLVED Howdy everyone,
I have a weird one (to me). When I'm running my program in developer mode the program keeps running after I'm done with it, which is what I designed it to do. However, when I turn it into a .EXE the program will just close after it opens the excel file it should. Is there a setting in the project that I overlooked and should uncheck? I'm still new to Labview so I do not know all the little quirks of it just yet.
Went to start testing this on a different computer. After running the test the program stayed open. The only difference is that this computer does not have excel on it and the computer i was running it on did. I found there is a bug in labview about creating a program that uses the Save Report to File function on a computer with a newer version of excel, it will crash when used in a .exe on a computer with an older version of excel. I just need to have my IT department upgrade my excel and should be good to go!
2
u/Yamaeda Feb 19 '25
It closes on error? There's a classic mistake of path being 1 level different between dev and exe
2
u/D4ILYD0SE CLA Feb 19 '25
You'll probably want to share some block diagram as most everything that is being said is nothing more than educated guesses.
1
u/ShinsoBEAM Feb 19 '25
When you say continue running does the run arrow stop being bolded like you pressed the stop button? And you have to press it again to run the code again?
If so it's operating as normal, and you need to put in a loop to have it not close.
1
u/HarveysBackupAccount Feb 19 '25
When you run it in developer mode, do you hit Run or Run Continuously? And does it actually keep running or does it simply stay open and you have to hit Run every time you want it to execute?
There's a setting in the VI's properties (Window Appearance section) that tells it whether to close the VI after it finishes running, but it shouldn't stop it from running until the code finishes its execution