08-22-2012 03:43 AM
Hi everyone
i have created a program using labview 2011. I also created a stand alone application. My problem is that when i open the stand alone application the program runs automatically although i have set my settings not to run when opened.
thanks in advance for your help
Yannis
08-22-2012 03:47 AM - edited 08-22-2012 03:47 AM
Hi yannis,
so you created an EXE and now you wonder that EXE runs automatically? Isn't this the purpose of an EXE?
Ever wondered why MS Word runs without any interaction by the user? Or why you don't need to press a "Run" button to actually start FireFox?
It's the way an EXE works...
08-22-2012 05:08 AM
DearGerdW
first of all thanks for your info and the time you spent to answer my question.
So every time someone opens the stand alone application, must stop it , insert all the required inputs according to his needs (time configuration, where to save file etc) and then run again.
To be honest i do not really like it in this way, but at least it works 🙂
thanks again
yannis
08-22-2012 05:22 AM - edited 08-22-2012 05:24 AM
Hi
You do not have to di it this way.
You can put in an event structure in your code, wait for the user to enter all the inputs and click a 'Start' boolean button.
Eg: I have attached a vi (LV 2010SP1), which explains event strcture.
If you build an executable of this vi (you will have to add it to a project first), you will see that though the EXE runs when opened, it will wait till the user clicks a button to perform an operation.
You will have to improve on this concept, to your requirement.
Hope this helps you
08-22-2012 05:40 AM
Dear freelance LV
thanks for your answer
This is what i was looking for!!!
i will let you know with the results
thanks again
yannis