06-25-2012 08:05 AM
Hi,
I have very basic question. What is the main difference between Wait(ms) and Time Delay.
I want to give a delay after executing some part of the vi as showned in the diagram. Whcih method is the best?
06-25-2012 08:08 AM
06-25-2012 08:09 AM
@neevan wrote:
Hi,
I have very basic question. What is the main difference between Wait(ms) and Time Delay.
I want to give a delay after executing some part of the vi as showned in the diagram. Whcih method is the best?
With the wait you can not reset this so you will always wait 100ms when you run it. The time delay allows you to reset it or not so you could have a one time or sometime wait and not others. THat is the biggest difference.
06-25-2012 08:13 AM
To take the "mystery" out of Express VIs, remember that you can see what any Express VI does by right-clicking on it and selecting "Open Front Panel". This will create a new VI. Usually this is just a wrapper around another subVI which contains the bulk of the code for the Express VI.
06-25-2012 08:14 AM
Thank you... How to reset the Time Delay?
06-25-2012 08:19 AM
What do you mean by "rest the Time Delay"? Do you mean change the amount of seconds it waits? If so, you can wire a control to do it manually (although I don't see the benefit), or wire a double value from an algorithm which calculates the number of seconds to wait.
The value is wired to the "Delay Time (s)" input.
06-25-2012 08:25 AM
___________________________________________________________________________________________________________________________________________________________________
With the wait you can not reset this so you will always wait 100ms when you run it. The time delay allows you to reset it or not so you could have a one time or sometime wait and not others. THat is the biggest difference.
06-25-2012 08:26 AM
You might also want to read this.
Norbert
06-25-2012 08:26 AM
@aeastet wrote:
@neevan wrote:
Hi,
I have very basic question. What is the main difference between Wait(ms) and Time Delay.
I want to give a delay after executing some part of the vi as showned in the diagram. Whcih method is the best?
With the wait you can not reset this so you will always wait 100ms when you run it. The time delay allows you to reset it or not so you could have a one time or sometime wait and not others. THat is the biggest difference.
I guess you are confusing with the Elasped Timer which has the Reset option (I checked Time Delay it doesn't have one).
06-25-2012 08:44 AM
Norbert_B, In the link which you provided is very good one for me to learn. But it is not explaining me the difference between Time Delay and Wait