How if the stop message loop when I put looped at a specific time.

I don't know how while loop stop at a specific time. Generally. While the loop stops when we enter into stop button or mistakes have been made. now I want to while loop stop at a specific time, 40ms, 20ms and so on. How can I achieve that. Thank you!

Use the number of cycles. Get the current number of cycles when you run this loop.  Add your time (20 ms) to the starting value, creating a 'downtime '. At each iteration number of cycles review and compare the current value of the value 'stop time '.  If it is higher, then stop, otherwise continue.

Note that on an operating system, you will see some jitter in trying to use loop as small as 20 ms times.  You may need to go to a real-time, or something hardware system timed for any accuracy or stability to these time scales.

Lynn

Tags: NI Software

Similar Questions

Maybe you are looking for

  • Email extraction does not

    I have my personal e-mail synchronized with the e-mail under accounts option. My corporate email is also synchronized using corporate sync. I get notification of new messages to my corporate email, but not my personal e-mail. I used to get a notifica

  • Udgrade Mountain Lion

    Can I switch to El Capitan directly from OS x with Safari 6.2.8 10.8.5?

  • Support for Visual Studio 2012

    Hello Measurement Studio 2012 is compatible with the newly released Visual Studio 2012 (is no longer in beta as of this post)?  Thank you for any information you can provide! -Eric

  • Is it possible to get the NHS on my video files?

    Thank you.

  • Impossible to open with WordPad Readme.wri files

    original title: Literally. I have an old 16-bit game that came with a readme readme.WRI format. However, when opening with WordPad, there a lot of garbage in the file. (We, the waste were actually OLE images). What happened and why?