Can LabVIEW threads sleep in increments less than a millisecon​d?
I am aware of two LabVIEW sleep functions:
1) All Functions | Time & Dialog | "Wait (ms)"
2) All Functions | Time & Dialog | "Wait Until Next ms Multiple"
In this day and age, when 3GHz processors sell for less than $200, it seems to me that a millisecond is an eternity. Is there any way to tell your LabVIEW threads to sleep for something less than a millisecond?
In Java, the standard Thread.sleep() method is written in milliseconds [sorry, the bulletin board software won't let me link directly]:
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Thread.html#sleep(long)
but there is a second version of the method that allows for the possiblity of nanoseconds:
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Thread.html#sleep(long, int)
So there does seem to be some consensus that millisecond sleep times are getting a little long in the tooth...
Hi Tarheel !
May be you should get some idea of the kind of timing accuracy that you can reach when using a loop.
Use the attached vi, which runs repeatedly a For loop (10 iterations) reading the time, then calculate the average and standard deviation of the time difference between the loop iterations.
On my PC (P4, 2.6 MHz, W2K), I get a standard deviation of about 8 ms, which appears to be independent of the sleep duration I asked for.
Same thing with a timed loop.
Under MacOS X (PowerBook, 1.5GHz), the SD falls down to 0.4 ms.
I tried to disable most of the background processes running on my PC, but I could not get a better resolution.
Seems that the issue is not in LV but on the way the OS manage its internal reference clock.
Since you are a Java afficionado, may be you could produce something equivalent ?
A proof that nanosecond resolution is available on a PC could be of great help to NI. Why bother with costly timers on DAQ cards ?
By the way, it took me about one minute to create the attached vi. I would like to have an idea of the time required to do the same thing in Java.
Tempus fugit...
CC
Chilly Charly (aka CC)
E-List Master - Kudos glutton - Press the yellow button on the left...
Attachments:
Timing precision.zip 11 KB
Similar Messages
-
HELP: PCR using AAU** can not count absence days that less than a day
Hi, experts
I have customized a PCR using AAU**
But it can not count absence days that less than a day which is maintained in IT 2001 ,
such as unpaid leave. However it can correctly count absence days that last one day or above .
The issue is so strange for me, so please give me some advice.
Thanks a lot !
Morgan from Shanghai, China
2011-6-10Morgan
1 alternative approach is as follows:
Step 1: Ensure your absence type have already been mapped to an absence valuation rule
Step 2: In your absence valuation rule, (goto SM30 > V_t554c), assign a new wage type to capture the number of days
The wage type in step 2 should be created such that its attributes is to help your capture number of days of your unpaid
absence type when it is evaluated by your payroll schema
Final Step: You should be able to capture half day absences with such a wage type when you run your payroll calculations
Should you need to utilize such a wage type for subsequent calculation processing in your payroll schema, you may have to develop your own customer payroll calculation rules to do so -
Editing video or audio in increments LESS than 1 frame?
Case #0183085485
Updated
Wednesday, March 21, 2012 7:59:24 PM PDT
Opened
Thursday, March 15, 2012 4:54:02 PM PDT
Status
Open - Pending Adobe Response
Product
Production Premium 5.5
Support contract
Adobe Support Program
Subject
Premiere Pro CS5.5: Edit Audio
NOTES & RESPONSES
Notes from Customer
Wednesday, March 21, 2012 7:59:24 PM PDT
Once upon a time there was a princess who was very sad. She had discovered that her favorite pet guinea pig had been kidnapped by a
n evil Chihuaha named "El Diablo". You see, it turns out El Diablo could not get a straight answer from Adobe Technical Support reg
arding what seemed like an incredibly simple question. So after endless attempts to get this question answered, he went quite insan
e and started kidnapping Guinea Pigs with the diabolical plan of starting his own software support company run by Guinea Pigs as the
y could not possibly offer worse support than he had been receiving. Alas, if someone had only just replied to his futile queries i
n a precise and meaningful fashion. But they did not. And so the Guinea Pigs - they must suffer. To be continued?
Notes to Customer
Wednesday, March 21, 2012 1:06:19 PM PDT
Hi Christopher ,
Thank you for contacting Adobe Technical Support. We are responding in
reference to your case regarding Adobe Premiere Pro .
We would be happy to assist and assure you with the best possible
assistance regarding the case.
We also tried calling you at 01:05 pm PST but you were not available
.So please feel free to get back to us or if you would like us to give
you a call as per your availability ,please let us know of an
appropriate time to call.
Would like to know how you were able to edit the audio and the video
less than a frame in the earlier versions of adobe premiere pro.
You can also visit www.adobe.com/go/supportportal for any assistance
regarding Adobe products. You may also visit www.forums.adobe.com as
it?s a useful resource for self-help.
We are always here to assist you. Please contact us at 800 833 6687 IVR
Options 2-3 if you have any questions or need an update on your case.
Thanks & Regards,
Anish
Adobe Technical Support
Notes from Customer
Tuesday, March 20, 2012 11:21:19 AM PDT
REALLY? I spent an hour on the phone with your top support people and you still can't give me a definitive answer on this unless I
post in other forums? WHAT is so hard about answering this simple question? Thank you!
Please confirm that it is currently IMPOSSIBLE to edit audio or video in Premiere Pro 5.5 to measurements LESS THAN 1 frame.
Notes to Customer
Monday, March 19, 2012 3:36:49 PM PDT
Hi Christopher ,
Thank you for contacting Adobe Technical Support. We are responding in
reference to your case regarding Premiere Pro .
We would be happy to assist and assure you with the best possible
assistance regarding the case.
We also tried calling you at 03:35 pm PST but you were not available .So
please feel free to get back to us or if you would like us to give you a
call as per your availability ,please let us know of an appropriate time
to call.
You can also visit www.adobe.com/go/supportportal for any assistance
regarding Adobe products. You may also visit www.forums.adobe.com as
it?s a useful resource for self-help.
We are always here to assist you. Please contact us at 800 833 6687 IVR
Options 2-3 if you have any questions or need an update on your case.
Thanks & Regards,
Anish
Adobe Technical Support
Notes from Customer
Sunday, March 18, 2012 8:12:20 AM PDT
Please confirm that it is currently IMPOSSIBLE to edit audio or video in Premiere Pro 5.5 to measurements LESS THAN 1 frame.
It appears in versions prior to CS5.0 one could select AUDIO UNITS by right clicking timecode display to edit audio (and presumably
video for that matter) to SAMPLE RATE accuracy.
Despite a long and involved support phone call including taking control of our computer by remote, it appears this is NOT currently
possible.
If this is indeed so - we will have to adjust our work flow to edit audio OUTSIDE of Premiere.
Thank you...please confirm and advise.Thank you for your input.
YES - I've seen the "right click Time Code display and switch to audio units timeline solution - yet audio units do NOT appear as an option for me...hence all of this drama.
ADOBE - do I have a munged install? Any other advice? We keep a clean system (Mac Pro 10.6.11 or whatever is last iteration of SL). I guess I could try installing into a new User and see if it behaves any differently.
Sigh...we bailed on FCP7 after trying FCPX and also passed on going to Avid MC. Hope PP is reliable for our work flow...again thx for all help.
PCG -
How can I get recordings that are less than 96 kbps onto my iPhone if I am using iTunes Match?
I am using iTunes Match but it won't upload any files that are recorded at less than 96 kbps. I have recordings from several classes that I am taking online that I need to listen to on my iPad and iPhone. How can I get them on my devices? Do I just have to turn Match off and do it manually like before? Or is there a way to change the recording level in GarageBand?
I found the answer. Just double click on the recording in iTunes and select Create AAC Version. Then select Update iTunes Match under the Store tab. The recordings will now show up and play on your other devices.
-
How can document margins be set to less than one inch?
As a teacher I rarely use one inch margins for my documents, I almost always use half inch margins, top, bottom, right, and 3/4 inch on left. Limiting to one inch will force me to use another word processor.
Which is the fool which told you that margins can't be smaller than one inch ?
Look carefully at this screenshot.
Yvan KOENIG (VALLAURIS, France) dimanche 19 juin 2011 16:55:24
iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7
Please : Search for questions similar to your own before submitting them to the community
To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer ! -
*** Can I make the small books less than 20 pages???
I would like to make the books around 8-10 pages. Is this possible to do in iPhoto?
BR:
You can have only 8-10 active pages but iPhoto will pad the rest of the book with blank pages to get the minimum number of 20. It's due to the minimum number of pages that can be bound.
Do you Twango? -
?
Charge whenever you like. The Lithium battery in your phone has no memory effect, you can't overcharge, & charging automatically stops when your battery is full.
-
LiveType - Can I reduce title time to less than 10 seconds?
I've dragged a title into my project. Had set time for 12 seconds. When I tried to reduce it to 5 or 6 seconds, program would not let me. Stays at 10 sec.
Thanks,
EDG>am I using LiveType under "A" menu ?
No. To use LiveType, you need to launch that application (in your Applications folder).
>Any idea why I couldn't do that by right-clicking on the generator clip ?
There may have been a conflict with something else in the Timeline.
-DH -
Is there a way to slide a clip less than one frame?
Hi, When syncing audio to video, or lining up two different sources of the same audio, I sometimes find that I want to slide a clip less than one frame in the timeline. Is there a way to do this?
Thanks, BobYou can slip the audio in sub-frame increments, but you cannot slip video as the frame is the basic unit.
To slip the audio in increments less than a frame, see:
http://documentation.apple.com/en/finalcutpro/usermanual/index.html#chapter=43%2 6section=7%26tasks=true
MtD -
Thread.sleep() timing
The sleep method doesn't appear to have rock-solid timing. Does anyone know of antoher more stable way to pause in a program for a specified time period?
Because your Java program is running inside of the JVM, which is in of itself a program too, and since the timing mechanisms are different in different OS's Java's only guarantee is that no less than the amount of time you specify in the sleep method will pass before the thread wakes up again. (i.e. Thread.sleep(10) will sleep for no less than 10 milliseconds, it might be 10, it might be 12, it might even be more than that, but it won't be 9)
That's as good as it gets. -
How can i give delay of less than 1ms or in micro second?
how can i give delay of less than 1ms or in terms of micro seconds in labview?
Hi Kamuil,
have you seen the following thread?
http://forums.ni.com/ni/board/message?board.id=170&message.id=81398&requireLogin=False
hope this helps.
Cheers,
--Russ -
I rented a movie on Itunes last night and I watched half of it before falling asleep. Today I tried to open the movie and watch the last half but I cannot find it. It has been less than 24 hours since I rented it. Where can I find the movie?
I found my answer in another Thread and it worked... so for anyone who needs it, here it is:
https://discussions.apple.com/message/19134562#19134562
Had the same problem and spoke with Apple Support. They had me reset the System Management Controller:
Shut down the computer. With the computer off, on the left hand side of the keyboard press shift+control+option along with the power button simultaneously and release. Wait 5-10 seconds and restart the computer.
This solved my problem and I was immediately able to purchase, download, and play an HD movie from iTunes w/o any error message. -
Hi there
I'm trying to sync some video to some audio. I have snapping turned off, yet I cant move a frame left or right any less than one frame.
Is it not possible to move a frame anyless than one frame left or right? It still SNAPS to one frame left or one frame right.As Jon has told you, you CAN NOT adjust video in less than a 1 frame increment. And I honestly doubt that even if you could, that you'd see the difference in the audio synch. In the good old days of film editing, it was only possible to adjust the audio synch for 35mm within a 1/4 of a frame (as each frame has 4 perforations) and 16mm within a frame (as each frame has 1 perf).
The only way to avoid this problem (if it is a problem) is to genlock the cameras so the timing of each frame matches from camera to camera. -
I purchased CS6 less than a year ago; my serial number is known, but i get the message that my trial period has ended and i cannot use the products anymore... what to do now?
Hello Sarika,
I tried to do as suggested in your link, but I can’t open the programs anymore, so I can’t get to the possibility of deactivate!
I did get the updates, but that’s all…
Any other way of getting there?
thank you for trying to help,
Angeline
[email protected]
Op 16 apr. 2014, om 00:02 heeft sarika02 <[email protected]> het volgende geschreven:
Re: I purchased CS6 less than a year ago; my serial number is known, but i can't use it anymore?
created by sarika02 in Creative Suites - View the full discussion
Hi tomaatje,
Try the steps suggested in given link:- http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html
Do let us know if it helps.
Sarika
Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6301871#6301871
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6301871#6301871
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6301871#6301871. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Creative Suites at Adobe Community
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0. -
I am trying to create a virtual engine within a timed while loop and am unable to get the loop to run at a speed of less than 1ms (I am currently using the Wait(ms) function). This does not however allow realistic engine speeds. How can I overcome this? I have access to a PCI-MIO-16E-4 board.
andyt writes:
> I am using a timed while loop and am unable to get the loop to run at
> a speed of less than 1ms (I am currently using the Wait(ms) function).
> How can I get a faster response?
>
> I am trying to create a virtual engine within a timed while loop and
> am unable to get the loop to run at a speed of less than 1ms (I am
> currently using the Wait(ms) function). This does not however allow
> realistic engine speeds. How can I overcome this? I have access to
> a PCI-MIO-16E-4 board.
Andy,
Unless you use a real time platform, getting extactly 1 ms loop rate
(or even less) is impossible. It starts getting troublesome at about
0.1 Hz for standard operating systems.
I'd tackle your problem with "if i mod 10 == 0 then sleep 1 ms".
Of
course this is jerky by design.
HTH,
Johannes Nie?
Maybe you are looking for
-
How can I make a call from iPad
How can I make a call from IPad
-
Excise invoice tab for without material code
Dear all, I have created a PO with vat Condtion TAx code. There are 5 line items are there in this PO. There are no material codes available for this 5 line items. all the line items are account assignment related items. While doing GRN its asking th
-
What do I have to do to set up the new ipad and keep the old one as it is? Thx, JOey
-
SRM EBP User management - best practice followed for your customer.
Hello All, What are the best practices followed on SRM User manageemnt followed for your customers. (1)When employee/ buyer leave the organisation ? what actions you do ? do you lock the users? (2) If any thing interested share your experiences. (
-
Situation: Trying to implement row level security using VPD for applications created in PORTAL. using portal's Light weight users. Method: Created a fine grain access control policy to build a predicate based on a Portal user (not database user). 1 G