LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a delay in labview until a c program completes in system exec.vi without using "wait until completeion"

I want to run two related C programs. The second one reads a text file that the first created. So I need to wait until the first is completed.
I use "system exec.vi" and I know I can set "wait until completeion" to true, but this way I won't see the screen and the C program announcments. Someone has an idea?
0 Kudos
Message 1 of 4
(2,899 Views)
Hi Dror,

my idea: just wait for the text file created by the first C program. Check for the presence of this file (maybe using 'list directory') or check for the size of this file...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(2,897 Views)
Just use one of the System Exec outputs to create data flow.  For example, wire the Error Out from System Exec to a sequence structure and put some code in the structure.  That code will not execute until the system exec is completed.
- tbob

Inventor of the WORM Global
0 Kudos
Message 3 of 4
(2,863 Views)

Hi Gerdw

Good idea, it works

thanks

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