How to control time with great precision

Hello everybody.I know Timer could control time.But it uses thread.sleep(),isn't it.That means it is not guaranteed.So,does anybody know some approach to control time precisely?
thanks in advance!

Hello everybody.I know Timer could control time.But it
uses thread.sleep(),isn't it.That means it is not
guaranteed.What do you mean by "not guaranteed". How can you expect a non-realtime multitasking OS that uses virtual memory (i suppose you are using a system like windows or linux) to guarantee anything? Some systems are better in this regard, but in addition to this you aslo have the garbage collection. Of course there might be ways to implement soemthing more precise in Java , but without a special VM on a special OS there is no guarantee that it will really work imho.

Similar Messages

  • Which is the best tool for PRC animation? and how to control it with javascript?

    Hi I created animations through Deep Exploration. But I want to know how to create PRC animation with tools and how to control it? I already tried with tetra4D but the javascript can control only u3d format. I have no idea to control prc animation. Please let me know.
    Thanks and Regards
    Chenet0005 @ Chenthil Kumar

    PRC files don't support embedded animations.
    You can still control the mesh directly with  3D JavaScript (e.g. by using rotateInPlace and a time event handler) but you can't import a timeline as you can with U3D.

  • How to control HP8350B with HP83592A and HP8757A

    I want to control HP8350B with plug in HP83592A and HP8757A by NI GPIB,using Labview language and print out HP8757A screen chart to printer, but when I sent command to HP8757A according to HP8350B manual ,such as "PT19",the instrument has no response,could andbody has experience on it and tell me how to do?

    "[email protected]" wrote in
    news:506500000008000000296D0000-1031838699000@exch​ange.ni.com:
    > I want to control HP8350B with plug in HP83592A and HP8757A by NI
    > GPIB,using Labview language and print out HP8757A screen chart to
    > printer, but when I sent command to HP8757A according to HP8350B
    > manual ,such as "PT19",the instrument has no response,could andbody
    > has experience on it and tell me how to do?
    After you send "PT19" to the 8757, usually at address 16.
    Send the commands you want to go to the 8350 to address 17.
    To terminate the passthru mode, send any command to address of the 16.
    Ex:
    To Address 16: PT19;
    To Address 17: FA 8 GZ;FB 16 GZ;PL 0 DM;
    To Address 16: C1 IA;

  • [Forum FAQ] How to sync time with a Domain Controller for a standalone server

    As we all known, if a computer belongs to an Active Directory domain, it will sync the time automatically by using the Windows Time service that is available on Domain Controllers.
    While a standalone server will synchronize with its local hardware time and Windows time server. (Figure 1)
    Figure 1.
    Under some circumstances, a standalone server is necessary in a product environment. We can sync the time of this standalone server with the Domain Controller using
    the steps below:
    1. Modified the value of the AnnounceFlags:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config
    Under this entry we can see the default value of AnnounceFlags is 10 (Decimal), we configure the value as 5 (Decimal). (Figure 2)
    Figure 2.
    2. Confirm the value of the registry key below is set to 0:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer 
    Figure 3.
    3. Configure the standalone server to synchronize with a specific time source (Domain Controller).
    In our test, we configured our Domain Controller (192.168.10.200) as the time source. Used the following commands:
    w32tm /config /syncfromflags:manual /manualpeerlist:192.168.10.200
    4. Sync the time with the Domain Controller using the command below:
    w32tm /config /update
    From the figure below (Figure 4), you can see the after we did all the steps above, the time on the standalone server was synced with the Domain Controller.
    Figure 4.
    (Note: Peerlist is a separated list of DNS servers, or IP Addresses for the time servers)
    More information:
    Windows Time Service Tools and Settings
    http://technet.microsoft.com/en-us/library/cc773263(WS.10).aspx#w2k3tr_times_tools_dyax
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Thank you for the instruction! I am sure it is one of the scenarios that majority of administrators will run into. So I suggest to write a wiki about it and publish it for this month's TechNet Guru in Windows Server section. This month's TechNet Guru can
    be found here:
    Calling All Wise Men! Windows
    Server Gurus Needed! Apply Within! No One Turned Away!
    Thanks for your informative post. :)
    Regards.
    Mahdi Tehrani   |  
      |  
    www.mahditehrani.ir
    Please click on Propose As Answer or to mark this post as
    and helpful for other people.
    This posting is provided AS-IS with no warranties, and confers no rights.
    How to query members of 'Local Administrators' group in all computers?

  • How to control animation with touch

    Hello! I need some help with controlling animations with touch. I am building a fake app and need to 'unlock' an iphone (slide an arrow along a track and then have it fade into another page). I have been using http://forums.adobe.com/message/4865693 that thread. The prototype link listed there is similar to waht I need to recreate, but I think I need an 'on touch' actino instead of a mousemove one.
    http://assets.ordienetworks.com.s3.amazonaws.com/the_occasional/checkerPro/checkerPro.html
    That is a link to the Edge file I have been working on, using the info in the thread above. It is broken at the moment, and I am terrible with javascript and have no idea how to move forward. I have figured that I'll need an 'on touch' action instead of the mouseover one, but I'm not sure how to build it.
    If there is a working example of this on a different thread that I've missed I'd love a link as well!!
    Thank you!!

    Hi, akall-
    There are a number of touch events that you can use to accomplish what you want.  You can try using the touchmove event instead of the mousemove event, and stick your code in there.
    Hope that helps,
    -Elaine

  • How to display time with min ,sec in select lis lov - 0-23 hrs and 0-59 min

    Hi,
    How to use time between 0-23 hrs,0-59 min in select list and insert selected value into single column.Like if i select 20:00 hrs,34 min ,value should be insert into single database column.
    Please help me to get the answer of this question.
    Kind Regards,
    Harish Sharma

    One select list would have 24 x 60 entriies. You should use two. One for hours and the other one for minutes. The SQL could be:
    SELECT     LEVEL d, LEVEL r
          FROM DUAL
    CONNECT BY LEVEL < 25;
    SELECT     LEVEL d, LEVEL r
          FROM DUAL
    CONNECT BY LEVEL < 61;The source is static. The actual column (for example :P1_TIME_COLUMN) with source database column is hidden. You would have a computation (PL/SQL Function) on submit which would then bring the two selected values together:
    DECLARE
       v_time   VARCHAR2 (40);
    BEGIN
       v_time := :p1_select_list1 || ':' || :p1_select_list2;
       RETURN v_time;
    END;Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • How to face time with another mac

    when i try to face time with another mac user I can't hear what she's saying but I can see her. Also, when she tries to call me, it doesn't go through

    Do they have an iPad or an iPad 2?

  • How to control scrubbing with the keyboard?

    The headline is already the question: I would like to use the keyboad to fast forwad in songs. In the 'itunes a-z' there is only an info how to do this with the mouse. Arrow Keys do not seem to work for this, they only switch to the next or previos song, or album. Ah, I am using utine s10.5.2.11 with WIndows 7.
    Any idea?
    Thanks, Alex

    Here are a few more to try:
    setxkbmap
    xkbset is the one I currently use, you can find at https://aur.archlinux.org/packages/xkbset/
    keynav might also be worth a look. I haven't tried it though. It can be found in the AUR also.

  • How to control time sequence for handshaking

    Hi all,
      I am reading some material about using VISA to control the data input/output to external device (in serial or parallel port). For some device, it needs a precise time sequence for handshaking to 30 nanosecond, I wonder if it is possible to control from OS level to make such short time interval? I am using Labview 2011 and Windows7 32 bits

    Greetings phlins
    In general, software time operations in Windows won't go beyond 1ms. Even if you use an RT OS, accuracy won't go further than micro seconds. Only FPGA or hardware timed tasks can handle nanoseconds. This is regarding digital operations in general.
    You may want to check this document:
    http://digital.ni.com/public.nsf/allkb/D37754FFA24F7C3F86256706005B9BE7
    It talks about the supported baud rates for NI-VISA. With this, just make the conversión to the actual time each baud rate handles and compare it to your requirements.
    Finally, when you said this handshaking is for a device, have you considered searching for a device driver? There are many device drivers available for LabVIEW, if i may ask, wich external device are we talking about?  
    Luis J.
    Applications Engineer
    National Instruments

  • How to sync time with agenda?

    Hello all of you out there!
    I'm busy working on a schoolproject with a classmate of mine. What we're trying to do here is creating a digital agenda that's up to date.
    Sort of like Google Agenda, where time is synched with how the agenda is viewed. For example it's 9 o'clock and so does the agenda shows.
    I can't seem to think how this can work. It only has to be a prototype, but it still has to show how it works and that it is able to work.
    So does anyone know how to do that or which components do I have to use? Is it perhaps better to work with movieclips or anything?
    Help !! Thanks so much

    Use the Date class for date and time related matters.

  • How to control display with X-Y Axis interval

    Is there a graceful way to control the display of X, Y Axis in SVG chart with line mode?
    When more records retrieved, it is hard to read from the X axis.
    How does Axes settings work?
    Thanks,
    Daniel

    Is there a graceful way to control the display of X, Y Axis in SVG chart with line mode?
    When more records retrieved, it is hard to read from the X axis.
    How does Axes settings work?
    Thanks,
    Daniel

  • How to control timleline with mouse x coordinates

    Hi,
    Does anyone know a good tutorial on how to create a movie with a sequence of pictures and controlling the timeline frames with mouse x-coordinates?
    Regards,
    MH

    basiclly,these swfs didn't work in mailtimeline movies.some of them were created by  flash3D .
    the point is some functions what created mouseX & DisplayMovies mapping like this
    function mouseMoveH(e){
              displayrender()
    function mapping(){
         return  fun(mouseX)
    function displayrender(){
        showFrame(mapping)

  • How to control DIO with VC++

    Dear master.
    This is  south korea. Sorry I'm poor english.
    I saw example file. but I can't found bit control (Just found byte control)
    My project is  Z-stage control with step motor.
    check sensor(limit)
    then If true generate pulse CW (for Step motor P3.7)
            if false generate pulse CCW (for step motor P3.6)
    now I can understand read data(8bit) and check one bit...
    but I can't code write data(1 bit) for step motor
    How can I do this...
    Please help me...

    hi
    i'm no pro yet, but i think you can use the following method
    CNiDAQmxDigitalSingleChannelWriter :: WriteSingleSampleSingleLine( bool autoStart, bool data)
    to send a single boolean sample to a single line ( as the name of the method tells you
    hope this helps
    regard, markus
    Message Edited by QuickNick on 07-04-2005 09:38 AM

  • How to control Mac with a iPhone without WiFi

    i use this app with full screen shared control
    Mocha VNC Lite
    it just doesn't work whenever I leave the nearby WIFI network.

    Your observation is correct, MochaVNC is for local network only
    See Teamviewer for remote control across the internet
    http://www.teamviewer.com/en/index.aspx

  • How to output double with fixed precision by CNiFile

    Hello again,
    System:
    - Measurement Studio 6.0
    - Visual C++ 6.0 SP5
    how to make with CNiFile to have the corresponding instruction from C++ IO library:
    cout << setprecision(8) << double(124.2378498749283);
    With CNiFile (variable niFile):
    niFile << ???? << double(124.2378498749283);
    That is, it would save: 124.23784988
    Thanks a lot,
    Alain

    Good question. We haven't implemented the manipulators for our CNiFile or CNiString classes yet, but it is on our list. Until then, you can use CNiString::Format to format it into a string of any format and then send it to the CNiFile.
    Best Regards,
    Chris Matthews
    National Instruments

Maybe you are looking for