Clock ticking

We have all seen the old clock rotation expression where you create a rotation of the second hand and then tie the minute hand to the rotation with an expression while he moves to 1/60th speed to simulate the minutes and seconds right?

I am creating something similar but with a clock "Ticking" like a timex watch on the second hand so it ticks along. Tick, tick, tick, tick instead of smooth rotation. I discovered that the use of this expression related to the rotation:

var tick = time * 6;

Math.Floor (Tick)

But what I want to do now is to have the tick of the minute hand (separate layer) more than 6 degrees every minute. In other words, he holds 59 seconds and then jumps 6 degrees in 1 second.

I can't understand this part. Any ideas?

Thank you

Jim

I would like to do this way:

second hand

Math.Floor (time) * 6

minute hand

Math.Floor (time/60) * 6

Dan

Tags: After Effects

Similar Questions

  • Clock tick slow, erratic in Windows guest OS

    I have two problems that significantly affect my use of VMWare. I am running Workstation ACE edition v6.0.5 - 109488

    hosted on an HP system with plug Dual Core AMD Athlon 64 X 2 5600 + 2,81 ghz 2.87 gb ram. The host operating system is XP pro x 64 SP2 v2003.

    I have a number of virtual machines on this x 64 system and they all have problems, I will describe and I have similar VMs on two

    other systems, an XP pro SP2 on a 32-bit laptop and W2k system, also 32-bit and these virtual machines do NOT have these problems.

    The problems are:

    (1) to start the computer virtual, for a period of several minutes, just type in the VM (caps startmenu, passwords, back/netware guests)

    is repeated one or more times. Meaning if I have an XP virtual machine and the password of the connection box is open and I type a character which

    character is repeated one or more times, usually 5 to 10 times. It is essentially impossible to type until the problem

    clears up on its own, it does after letting the VM sit for about 5 minutes.

    (2) all the virtual machines on this x 64 exhibit erratic clock tick as the host. Tick its second click of observation with the windows date cmdlet

    clock hand and also other applications that display the second time, I see the second count occur very quickly (i.e.

    faster than one per second) and also very slowly (a second socket to 4 seconds of wall). As I have what I can observe

    See counting the seconds speed upward, slowly down, sometimes appear normal (although normal never lasts very long).

    I see this on all my virtual machines (NT, XP, XP, Vista, netware), but they all perform more or less acceptable than the second count. However

    my Vista VMs are dog slow and my test season a relationship between the slow clock and poor performance. A Windows 2008 VM shows a slow clock, but the beat of clock rate does not vary and is acceptable error. Virtual machines are configured to run on a single processor.

    Note that I usually run 3 VMs at the same time. A novell VM server, a windows NT4 VM and a test VM, which is generally

    XP or vista. The novell and NT4 VMs host print services and email and are usually do nothing but idle.

    I studied this problem of clock and found all sorts of news and changes of parameters in config.ini and .vmx file, but

    None of these things has made an observable difference.

    I remember reading about an AMD Dual Core Optimizer utility that allows to synchronize the time between carrots stamp counters.  Maybe this will help?  Visit the website of AMD...

  • API calculation time expired or recording clock ticks

    Is there an API available in LabWindows to memorize the graduations or calculating time expired?

    It is necessary to use with a do while loop. I want to perform an action repeatedly to 260milliseconds in a while loop and then get out of the while loop 260 milliseconds once is in place.

    What is the best way to go about this?

    According to the precision you expect from calendar, you can move the solution most simple timer () to the more complex calls of SDI APIs.

    The simplest solution (anything but needs CVI):

    tini double;

    tini = Timer ();

    While (timer() - tini)< 0.26)="">

    doSometing ();

    }

    Advanced solution are the use of () QueryPerformanceCounter and QueryPerformanceFrequency functions SDK (). Here you will find an interesting discussion thereon. This solution involves the use of the Windows SDK available in the full versions of the CVI.

    This code should work fine:

    #include

    void yourFunction (LARGE_INTEGER t) {}

    BOOLEAN error;
    Delta LARGE_INTEGER to tini, tn,

    error = QueryPerformanceCounter (&tini);)
    If (! error) {}
    Error in manage somehow

    return;

    }
    {}
    error = QueryPerformanceCounter (&tn);)
    Delta. QuadPart = tn. QuadPart - said. QuadPart;
    If (delta. LowPart > = t.LowPart)
    break;

    doSomething ();

    } while (1);

    return;
    }

  • Synchronization of analog and digital output with the external sample clock

    Hello

    First of all sorry for my English, I will try to explain what I want to do.

    I want my PCIe-6321 to send two custom signals (modification sawtooths) on a mirror controller. I would also like to generate output with my card at the beginning of each tooth of saw. Everything must be synchronized with an external k-clock signal of 100 kHz. The idea is that whenever the PCI receives a trigger to external clock, it sends two analog output voltages and when he received 1024 clock ticks it will also send a pic of triggering TTL. What I do is first prepare the map and after that in a loop sending and modifing the output values of the two signals and at the same time send a digital signal Boolean in each arch, so when's done it 1024 iterations of the loop I send an event to the digital port. Attached you can see.

    The problem is that I don't know how to synchronize both. Can I use the sample clock just to the analog output? I can use sample for the two outputs clock, or do I need to use the output of the meter? If don't know how to use it here.

    If I do nothing else bad/wrong, I would be grateful for feedback.

    Thanks in advance,
    Pablo

    I don't know how but I find the solution. I'm generating more than a positive value (as I was triggered maybe very fast the oscilloscope has been absent there). If I put the sample clock of digital output to use the sampling/ao/Dev1 clock that it doesn't, but if I put to use the same source as the OD (terminal where my external clock is connected), but the trigger to start the DO to be Dev1/ao/StartTrigger this works. I don't really know why, but it does.

    Thank you for your patience and your help. I put here the final code.

  • tick count vs get time in seconds

    Hello

    I have a question about dt different then as 'number of cycles' and "get time in seconds" on a loop.

    I am attaching the picture which should describe the problem.

    Why is there a difference and what would be the best to do?

    Yves

    jyang72211 wrote:

    Number of cycles vs. get date/time in second do roughly the same thing, but if you use functions to calculate the time difference, you should be aware that tick count will finally make a loop around.

    Regarding your block digram, you have a table that are used to calculate the elapsed time for each iteration of the loop, and it will always be 150ms, because that is the job of the time – the loop to ensure that it completestobegin each loop to the exact amount of time specified, which is 150ms in your case.  However, regardless of the inside, the loop can be executed at any time during the 150ms you have allocated to the loop, i.e., you 150ms to run everything that's in the loop, but when run the code in the loop exactly is indeterminate.

    However, it seems that clock Tick would give you a pretty consistent result, 150ms.  It is possible that the execution time for the clock to tick is more consistent than the other function.

    Anecdote:

    Differnce between the counties of the tick will always be correct even when it rolls.

    Time loop determines when it starts, the code that runs in it determines when it ends.  If it was the other way around I would be snapping this code that takes 5 minutes to run in a defined time loop to traverse once per second.

    I agree with Yair you see the resolution in the timestamps of OS.

    Ben

  • clock animation help

    Hello, I have to make a special clock animation. Can you let me know if my next method sounds right, or if I have to use another program or technique?

    I use an old clock (bitmap) image, he will have an hour hand and a minute hand. the minute hand passes 59 times and the hour hand will change 11 times. who is 649 images before the image starts again!

    If the hour hand and the minute hand split into separate layers, it will only be 70 separate images. If I do change 59 frames with the minute hand layer and the layer of the hour hand remains the same. Then I was going to copy and paste all frames of 59 minutes, but change the layer of the needle of the hours for the next hour. I was going to repeat this process until I arrived at 11:59.

    animated GIFs can even make 649 frames? what it will be fairly simple in fireworks? or do I have to use flash? Flash with bitmaps seems fair. I prefer to do a gif animated since all browsers show it (like the iPhone)... and cs3 has the ability to flash - like now.

    Thanks for any advice you may have! Forgive me if I am crazy!

    Thank you all! I'll see about flash, too (no offense, fire Fireworks!). It would be nice to do effects mouseover to the hour and minutes Flash instead of the clock ticking to an animated gif.

    Oh and amy is a good idea! that will keep the size of the file down. at first, I thought "duh", Hey Hey. but then I did read your post and I realized that I can have 3 separate images on the page.

    I use absolute positioning with CSS, and the order of the images doesn't matter, because the they are all transparent and that they do not overlap. the file of the minute hand will be always great, but it won't 59 frames, not 700 frames. I was a fool before man. This way is much better.

    If there is no waiting for the image of the minute hand, hour hand and the background load really fast in the meantime.

    Thank you again alex, pjr and amy...

  • Satellite L25-S119 - needs work pressure

    Hello

    This is a strange appearance, one for you. About 2 weeks back, I noticed that my internal clock has stopped holding time. Initially, it was a minor annoyance, but as it got progressively worse so did everything else on the computer. No videos or music would go without stuttering, programs to always take to load and run, Web pages would take more time to connect, start/stop incredibly long, 6 second ads on Hulu lasted 12 minutes, etc. etc.

    Around the reading on the net I found the culprit most likely to be the cmos battery. After replacement not once but twice and see the same thing, I started to look elsewhere for a cause.

    It is then that I discovered something odd. If I hold mobile such as my left hand puts pressure on the underside of the laptop between pc card and the fan, the computer returns to normal operation. The clock ticks away as it has been manufactured in Switzerland and everything works great.

    Remove this pressure and the seconds ticking grind to stop and I'm back in hell. I looked at the motherboard (I'm skilled enough to tear this sucker at this point) but nothing seems loose or hanging, no component dislodged or move when I push on them. There is no cracks on the Board, and nothing grows really down when I push on this issue (with the exception of this plastic thingy around the modem card).

    I tried wedging of the strips of cardboard in there and put together, but unfortunately only this pressure with my fingers under the round is played. Since I can't keep it all the time and started to hurt as it's my wrist, does anyone have an idea what the hell is going on and what I can do about it (in addition to getting a new laptop as support # 800 suggested).

    Thank you

    Dan

    Well buddy L25 is a former who knows what could be wrong with the motherboard
    Maybe it s not a very affected mother board, but the HARD drive?
    I put t he thinks that mobo if your operating system is running slowly, in my opinion if the mobo would be defective, then the laptop would not initialize or could not answer

    What do you think of this?

  • Reader superDrive Burns very slowly on El Capitan

    My SuperDrive works very slowly lately when burning data CD.  Tonight that I realized probably started to happen then I upgraded to El Capitan (10.11.1).  I burn lots of CD for my photography business just a few times a month, but when I do, I need to burn 20-30, and the additional delay is very noticeable.  I believe it is 3 x-4 x more to burn.

    I use the Burn utility (v 2.5.1 http://burn-osx.sourceforge.net/) to around 300-400 MB data CD.  Standard JPEG files.  I haven't changed all parameters of combustion, or do anything else I can associate with the downturn.  Burn the clock ticks down the time remaining and each takes then 2 or 4 real seconds before it changes.

    I havn't changed any material etc, so unless the SuperDrive is subject to slow getting older, I don't know what to more El Capitan it might be.

    Any suggestions?

    Ben

    To exclude a compatibility issue that happens if you just burn a file directly on a disc do not use your program indicated?  Is it slow or normal?

  • How to structure the DMA buffer for SMU 6341 DAQ card for analog output with different frequencies on each channel

    I use the outgoing/incoming analog DDK with the DAQ 6341 SMU map.

    The examples, for example aoex5, show a single timer (method outTimerHelper::loadUI), but the example shows the DMA loaded with same size of vector data.

    There is a comment in the outTimerHelper:call rogramUpdateCount, which implies that memory sizes different pad per channel can be used.

    (the comment is: switching between the sizes of the various buffers is not used)

    Nobody knows what should be the format the DMA buffer for data from multiple channels with different frequencies?

    For example, we want a0 with a sinusoid at 1 kHz and a1 with a sine wave of 1.5 Khz.  What looks like the DMA buffer?

    With the same frequency for each channel, the data are interleaved, for example (ao0 #0, ao1 #0; ao0 ao1 #1, #1,...), but when the frequencies for each channel is different, what the stamp looks like?

    Hello Kenstern,

    Data are always intertwined since each card has only a single timing for each subsystem engine.

    To AO, you must specify the number of samples that will be released to the AO. You also specify the number of channels. Because he didn't is that a single engine timing for AO, each AO will be channel will be updated at the same time to update clock tick. Data will be interlaced exactly as shown in the example because each channel AO needs output at each tick of the clock to update. The data itself can change depending on the frequency you want to copy.

    kenstern wrote:

    For example, we want a0 with a sinusoid at 1 kHz and a1 with a sine wave of 1.5 Khz.  What looks like the DMA buffer?

    With the same frequency for each channel, the data are interleaved, for example (ao0 #0, ao1 #0; ao0 ao1 #1, #1,...), but when the frequencies for each channel is different, what the stamp looks like?

    In your example, you must come with an update rate that works for the two waveforms (sine waves of 1 and 1.5 KHz). To get a good representation of a sine wave, you need to update more than 10 x faster than your fastest frequency... I would recommend x 100 if possible.

    Update frequency: 150 KHz

    Channels: 2

    Then create you stamps that include complete cycles of each wave you want to produce based on the frequency of update. These buffers must also be of the same size.

    Buffer 1: Contains data for the sine wave of 1 KHz, 300 points 2 cycles of sine wave

    Buffer 2: Contains data for the sine wave of 1.5 KHz, 300 points, 3 cycles of sine wave

    You can Interleave them as before. When the data are performed through the ADC, they are out different sine waves, even if the AO channels are updated at the same speed.

  • Multichannel synchrobized meter output daqmx c#

    Hello

    I am facing the following problem:

    I'm a piezocontroller operating to move a microscopic sample. The piezo allows me to scan XY of the sample areas. At each position analysis (to each "pixel"), I count photons for the image of the sample. Photon counting is a simple measure of pulsewidth and isn't important here.

    What is important is that I have two types of piezo controllers in different configurations. A controller is digital and I can send the coordinates of the area to be scanned. The controller then allows me to define 4 output triggers to synchronize movements piezo with other operations such as opening and closing of shutters, photon counting after each pass of the step to a new position etc...

    However, the second controller is an analog that only allows me to adjust the tension to move the scene. If I want to recreate the functionality of the digital controller I need to create four trigger lines myself.

    So, my solution should look like this:

    (a) I have a "clock" that ticks with a cycletime of 200 microseconds. At each tick of the clock tension in my piezo for X and Y motion are incremented. Master clock ticks are also triggers for the photon counting tasks at each position.

    (b) the firing in four, used for various purposes, should behave as described in the two attached screenshots (pictures say more than 1 million words!). If for example it takes 1000 the master clock ticks to complete one scan line, then the line 1 trigger should for example be placed high the first 500 ticks, trigger line 2 should be high ticks the next 500 while line 3 trigger must be high all the time. This behavior must be repeated each line scan etc etc...

    Is it possible to have this kind of coordination between the output of 4 meters to say, an edge of 6601?

    Any help would be greatly appreciated!


  • Configuration of delay IO in 6587 of NI Data Acquisition

    Hello

    I'm reading LVDS data using adaptation module with module FPGA 7966R 6587. The external clock that I receive is identical to data (just hi-lo swing). In order to capture the data I need to move to the phase of the clock by a quarter clock cycle to get more stable data values. As the clock of TIME is not accessible (always set to 0) I think spend all my data accordingly. I have some questions on how to use DATA_IDELAY_INCREMENT to do this.

    (a) high-level logical DATA_IDELAY_INCREMENT increases the delay of data by a single tap by ACQ_REGIONAL_CLOCK, where a single tap is 78.125ps nominal, so what do I do to get a period of 400ps? Is linked to the number of edges mounted on DATA_IDELAY_INCREMENT?

    (b) how I use IDELAY_CALIBRATION_CLOCK?

    mbothra,

    To answer your first question, you must have a loop configuration that sets DATA_IDELAY_INCREMENT to true for a lot of clock ticks that you need to reach 400 ps. The DATA_IDELAY_INCREMENT node sets the entry activate the primitive IODELAY Xilinx to true, and the direction of the IODELAY is hardcoded to always increment. This means that for each beat clock where the node DATA_IDELAY_INCREMENT is true, the delay increases by 78,125 ps.

    In your case, you would need to graduations to 400/78,125 or 5.12 (is rounded down to 5 graduations for 390,625 ps or delay up to 6 ticks for a delay of 468,75 ps). For this implementation, you might have a loop single cycle timed for the number of iterations, you need, stop the loop, and then start your curls for the acquisition of real data.

    For your second question, the IDELAY_CALIBRATION_CLOCK is locked at 200 MHz. There is no change that you can do with this value to cause any kind of delay.

  • MyRIO FPGA read framework signals SENT

    Hello community,

    I now have a myRIO with Labview 2013. I try to read a digital signal to a sensor on the port DIO0 (C-Port). It works very well. The problem is that I don't know how to find the start (the SYNC nibble) of the frame SENT - and how it works with the ticks of the clock / time clock of the FPGA (40 Mhz) system. I do not understand the meaning of the clock. ticks of the clock.

    The next problem is to measure the time between a front down to falling edge. In fact I can detect every falling edge of the signal SENT but I cannot measure the actual time between them. How can I measure the real time based on the system FPGA clock time? The nibble of SYNCHRONIZATION were all 56 time graduations. But how long are 56 ticks?

    Best regards

    Basti

    Hello, Alexander.

    Thank you. It works very well.

    Now my problems are solved. The main problem was to build something that is capable of converting 56 ticks of the SYNC signal SENT for correct ticks of the sampled signal. The two frequencies, the Signal SENT (333kHz) and the sampled signal (40 Mhz) are different, so I divided the frequency of the signal sampled frequency of the Signal SENT - (factor of about 120). Now I can convert 56 ticks to correct the number of ticks of the sampled signal and I can find the SYNC - Puls in FEEL. The result of 56 times the factor of 120 ticks is 6720 ticks. So, I convert ticks to the correct frequency.

    Thank you very much for your help!

    Best regards

    Sebastian

  • source timebase external meter in the task of separation of two edges

    Hi all

    I use a Board OR 6220 and want to make something very similar to what is described in the knowledge base article "how I count Digital edges between Start and Stop relaxing on a NI 6602 Council of counters/timers?

    Anyone know how I change the example program "TwoEdgeSep.c" do not use the internal time base but to use an external source (that I want to count the edges?)

    Thank you for for your time.

    ULI

    Hi Uli,

    You must add a call to DAQmxSetCICtrTimebaseSrc before starts the task to configure the hardware to use an external time base.  You also probably want to change the DAQmx_Val_Seconds
    DAQmx_Val_Ticks parameter in
    the DAQmxCreateCITwoEdgeSepChan
    function assuming you want your result measured in terms of the external clock ticks.

    Best regards

  • Which method of capturing time event is more accurate?

    Hello

    I am trying to capture a timestamp of a few kinds whenever data acquisition receives a pulse, I have two methods (attached) which give a slightly different time. One method is to use the 'get time stamp' while the other is to use the 'Clock Tick". The format of the timestamp is okay too, but accuracy is the case, then I wonder what is the most accurate. Also, this VI is probably used on a real-time system (Labview RT) If a VI or the other can be used in real-time so that would not take on the accuracy.

    Thank you

    Precision of timing is not very good with both methods. Timestamp uses the computer clock time.  If you use computers until the time servers is available, you will remember that the computer clocks has derived seconds per day or more.  Long term (weeks to years) timestamp will be, on average, more accurate due to the continual delivery to zero by the time servers. However, maybe you'll see jumps because of these resets.

    The number of cycles is derived from an internal oscillator to the computer.  Because the computer is more concerned about accuracy of timing Quen synchronization logic on the CPU (and devices chips), these oscillators are very stable nor precise.

    The oscillator in your DAQ hardware is almost certainly more stable and undoubtedly more accurate internal clocks available.

    Get the signal of data acquisition as a waveform and use the time t0 that. Before you set up your own atomic clock or clock GPS derived, that it probably the best you can do.  It is also more closely related to the acquisition as opposed to the timt, that data is read from the DAQ hardware.

    Lynn

  • Computer continues to show the wrong time after resetting it

    Original title: wrong time

    Continuing my computer clock display at the wrong time is after ive reset it, after a while he looks at the clock and won't again.

    I would like to know how to solve this problem please before hand I'd like thank you for your help, so thank you, I'm really glad help you n im very grateful.
    s. wood j

    Check your regional settings in the control panel. Make sure that your time zone is set to which your PC is actually in.

    If your time is changed after turning off the PC, it can be that the battery of your PC that keeps your clock "ticking" is dead and must be replaced. For desktop computers, it will almost certainly be a CR2032 and be something relatively simple to find and replace. for laptops, maybe it's not a CR2032 and may be very difficult to find and replace. Whatever it is, when in doubt, consult a technician, ideally one that you can get a recommendation for. I would have thought 10 dollars (including the battery) had to do for a desktop computer. A computer laptop pourrait be much more expensive, both for the battery and work.

    Tricky

Maybe you are looking for

  • Can your help me? Please

    Do your people speaking Chinese? My English is bad very terrible

  • Curious about operating a business on Mac Mini

    Hello I want to start a debate (I hope a good). I am a serial entrepreneur but my goal set on IT Support for the past two years. I used a combination of devices on this time, but more recently, an Early 2011 MacBook Pro 15 "(mis à jour depuis 4Go RAM

  • Can I change the Date on the pictures App?

    So I imported a few pictures and the date are false. Can I change the dates of the Photos for Mac app?

  • Toshiba TV/DVD combo 32SLV411U - listening to the wireless headset?

    I hope I am posting this in the right place. I couldn't find a specific board just for TVs? I recently bought a Toshiba TV/DVD combo 32SLV411U. I really like but have a problem.The best way to go about that I guess is to tell you what I hope to be ab

  • Manual reset SMP

    I had a lot of trouble with my SMP when he was stuck on a screen that wouldn't let me use my connection and wouldn't let me in my options. The reset button have come back me to the factory settings.If you ever have this problem, this will solve the p