LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Opening multiple vi's with delay

Dear Labviewers,

 

I am working on a project which has to open 2 VI's at different times.

Now I am using event structures to open the VI's, but i want to have a 10 second delay before the 2nd VI opens(see screenshot). When i use the wait(ms) function it does not work how it should.

Any ideas on how to fix this? 

 

Thanks in advance!

 

 

Screenshot 1.pngHenk

0 Kudos
Message 1 of 5
(3,300 Views)

Hi liggias,

 

use a state machine…

 

i want to have a 10 second delay before the 2nd VI opens(see screenshot). When i use the wait(ms) function it does not work how it should.

- What is the purpose of the wait function inside of the event case? It only prohibits executing other events within 10s…

- Why do both event cases seem to wait for the very same event? This will not work (reliable) - never ever…

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(3,294 Views)
The wait is working exactly like it should. You have a serious misunderstanding of dataflow if you think the wait should happen before the other code executes. As mentioned, you should only be using a single event structure. Why are you even using the call by reference? A simple fix would be to use the Time Delay function in between the calls and just connect the error wires.
0 Kudos
Message 3 of 5
(3,277 Views)

Thanks for telling me that "This will not work (reliable) - never ever…" 

Maybe you could explain me what I should do to get it working, an example or feedback or whatever?

 

Thanks in advance 

0 Kudos
Message 4 of 5
(3,238 Views)

Hi Dennis,

 

Thanks! I did put the time delay between the calls and it works.

The problem we encounter now is that the first VI executes perfectly, but the second VI shows the data with huge lag (if I open the second VI manually there is no lag). It also looks like the signal of the second VI is being distorted, but this is only when the VI's are opened automatically. 

Any ideas on how to fix this? Any feedback is welcome!

 

Thanks in advance :)!

 

 

 

0 Kudos
Message 5 of 5
(3,230 Views)