LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Running the labview exe file multiple times (not multiple instances) without exiting the file

Hi All, is there a possibility to run a exe file multiple times, after the execution is completed once. Right now, once the execution is completed, I exit the file and reopen it again to use the file. Instead I need to use the same exe file multiple times without exiting the file.

 

Also, my program accepts some user input before each execution. Is it possible to do this programmatically?

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

I don't know what you mean by "I exit the file and reopen it again to use the file".

 

You could create a batch file that will execute your EXE multiple times in a row.

 

What does your EXE actually do?

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

Hi,

 

The exe is used for a test system to test our product. Every time I test a new piece, I close the exe file, re open again, enter few details and test it. Instead, once I finish testing one piece, I would like to test the other one continuously without exiting the file. 

 

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

Hi chaitra,

 


@chaitra05 wrote:

Every time I test a new piece, I close the exe file, re open again, enter few details and test it. Instead, once I finish testing one piece, I would like to test the other one continuously without exiting the file. 


To repeat some part of your code you usually use a loop.

(This applies to every programming language, not just LabVIEW…)

Best regards,
GerdW


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

Was the exe built in LabVIEW?

 

It sounds like the executable wasn't designed for your use case.  It should be rewritten to work the way you want it to.

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