05-04-2015 01:32 AM
1. What is difference between wait until next ms & wait function.
2. I have input data 9 to wait until next ms & at output terminal is see is 2.43184E+7. What does that mean?
05-04-2015 01:34 AM - edited 05-04-2015 01:35 AM
Hi Vindhy,
the answer to BOTH questions can be read in the LabVIEW help for those two functions.
Did you read the help?
Which part isn't explained in the help?
05-05-2015 07:12 AM
Sry I didn't post my queation corrent.
Let me rephrase again.
1. When both function wait for sepecified amount of time then what's the difference.
2. Also wait until next ms help says "However, it is possible that the first loop period might be short", what does that mean.
3. Help says that function returns value of the millisecond timer after the wait. How does it relate e.g for input value 9 I get some radom time?
05-05-2015 07:19 AM
05-05-2015 07:28 AM
Apok's link will answer most of your questions.
The value that comes out of the function is not random. It is the value of the millisecond clock. The one the PC maintains, and is basically the amount of time that has passed since the PC was turned on. (Of course the value can roll over.)
05-05-2015 07:29 AM
Hi Vindhy,
3. Help says that function returns value of the millisecond timer after the wait. How does it relate e.g for input value 9 I get some radom time?
- You don't get a "random time", you get the millisecond timer value. That timer count the milliseconds since start of your computer…
- There is no relation between your input value and the current millisecond timer value…
05-05-2015 07:44 AM
@Vindhyachal.Takniki wrote:
1. When both function wait for sepecified amount of time then what's the difference.
2. Also wait until next ms help says "However, it is possible that the first loop period might be short", what does that mean.
3. Help says that function returns value of the millisecond timer after the wait. How does it relate e.g for input value 9 I get some radom time?
1, 2. The Wait (ms) does wait the amount you told it. The Wait Until Next ms waits until the ms timer reaches a value that is divisible by the amount you told it. It does not actually wait the amount of time you told it. So if you start at 89 for the ms timer and use the Wait Until Next ms with a wait of 100ms, the wait will actually be 11ms (will wait until 100 is reached by the timer).
3. As other have said, they just spit out the value of the timer when the wait ended.