LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

autorun problems

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

0 Kudos
Message 1 of 5
(2,430 Views)

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...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(2,428 Views)

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

 

 

 

0 Kudos
Message 3 of 5
(2,421 Views)

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

 

 

Regards
Freelance_LV
TestAutomation Consultant
0 Kudos
Message 4 of 5
(2,414 Views)

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

0 Kudos
Message 5 of 5
(2,408 Views)