LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

time delay between two case structure

hello everyone, I have a question about the time dalay vi. I have two case structure in my VI. and I want the second one to be delayed by 25ns after the first case stucture executes. Should I put a time delay vi or the wait(ms) vi in the second case structure? So the time delay vi or wait(ms) Vi has the same function here if I wire with a constant 25ns? thanks 

0 Kudos
Message 1 of 2
(2,310 Views)

That function (or any other function on a desktop OS) cannot allow you to have a delay in the nanosecond range. The best you can hope for is a milisecond and even that is not something which is guarateed.

 

If you want the second case to run after the first case completes, you need to use dataflow to control the order of execution. You can do this by taking the error wire coming out of the General Error Handler VI and wiring that into the second case structure. This will force the order of execution.

 

In general, something like this is at the base of how LV operates, so it seems like you need to learn more about LabVIEW. I suggest you try looking at some of these tutorials.


___________________
Try to take over the world!
Message 2 of 2
(2,300 Views)