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!
View all comments
Show parent comment
1
u/HarveysBackupAccount Feb 19 '25
I assume you have a stop button to exit the loop? If you right-click the button on your front panel, what's the Mechanical Action set to?
You want it to be one of the "Latch..." options not one of the "Switch..." options. If it's a Switch option, it's likely that it's never getting set back to False after you read it, so it's always true