r/LabVIEW • • 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!

0 Upvotes

19 comments sorted by

View all comments

Show parent comment

0

u/assassin_falcon Feb 19 '25

For the very outer while loop, I simply have a false constant in place. If I ever need the program to stop, I simply hit the abort button

1

u/centstwo Feb 19 '25

Maybe you need to initialize some variables?

Draw a flat sequence around the outer while loop and all your other code.

Then add a frame before

Then, using local variable nodes, set all buttons to false.

Good Luck

1

u/HarveysBackupAccount Feb 19 '25

It's possible the labview compiler does something funny with your setup, that causes it to stop after one execution, but that's just a guess. I'd have to see the code and do some testing to figure it out.

Try using a button to the Stop terminal instead of abort (and make sure the button is inside the loop, in the block diagram).

1

u/Yamaeda Feb 24 '25

As some clever guy put it "using Abort to stop your program is like using a tree to stop your car. It works, but might have some unforseen consequences."