LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DOS Command Window flashes.

I have multiple VI's that are built into exe's. They communicate with shared variables. I launch one exe manually, and it uses the System Exec VI to launch the other two. The main vi (exe) runs each time it is requested and quits (as it was dsigned to do). The man VI sends or retrieves data from the other two continuously running VI's (exe's). However, each time I request the main VI to run the DOS window flashes (ie, apears for a fraction of a second and then goes away)???

0 Kudos
Message 1 of 4
(2,407 Views)

Did you set "Wait until completion?" to TRUE?

 

Can you monitor the return code to see if it actually completed?

0 Kudos
Message 2 of 4
(2,404 Views)

No, I will look at the return code.Wait until complete = FALSE. Run Minimized = TRUE.

0 Kudos
Message 3 of 4
(2,379 Views)

If nyou do not wait until completed, it will simply open and close the dos window but continue running in the background.  Now, your LabVIEW code will continue to run although the executable has not completed.

It would explain what you are seeing.

 

Is that how you want your code to behave?

 

You can run minimized, but still wait until completed.  To debug your code, don't run minimized to see what is going on.

0 Kudos
Message 4 of 4
(2,372 Views)