Reading monitor vertical sync time

I'm using Labview 5.1 in Win98. I'm writing a program for a psychology experiment where a subject responds to events on screen, and we record the response time in milliseconds. Response is recorded by a NI digital I/O card.
I'd like to synchronise graphic drawing on screen with the vertical flyback of the monitor (the vertical sync pulse), or alternatively, be able to read the millisecond counter value at the last vertical interval. Is there any way of doing this, maybe with a Windows API call?

Is there some sort of hardware signal that would accompany the vertical sync pulse? If you can get a hardware signal, synchronizing things will be much easier. I've never tried anything like this, but I can imagine several problems trying to do it through software. For one, I would bet that the type of functionality you want would be controlled by the graphics and video drivers, which means that you could not get it from a Windows API. Even if you could create a windows event for it, by the time you captured the event in your control software, you will have already lost several microseconds.

Similar Messages

  • Vertically sync time position for two or more 2D axis systems?

    In DIAdem: VIEW,
    Is it possible to vertically sync the time position for two or more 2D axis system charts placed above each other?
    I have displayed several channels on one 2D chart, and one channel of particular interest on a separate chart above, which was very easy to do. It would be really useful to sync the time position on both charts, such that scrolling one chart also scrolls the second chart, or zooming one chart also zooms the second chart to the same area, which seems like a fairly basic thing to want to do, but I haven't found a way to do it yet.
    Any help greatly appreciated!
    Solved!
    Go to Solution.

    Hi Brad,
    Yes, I have been using that method, which works fine up to a point.
    But, say you have several curves displayed on the bottom chart, with the Y-Axis set to "n Y-axes", then the start of the x-axis will be further across to the right than the top chart which has only one curve displayed.
    It is possible to add an empty area to the left of the top chart, to push the start of the x-axis across into alignment (see attached), but every time you add or remove a curve on the bottom chart, or the scale changes enough to add a digit, the start of the x-axis moves and the top chart needs aligning again.
    I'm really after a method to lock both ends of both x-axes to the same vertical screen position, so everything stays aligned automatically?
    Attachments:
    chart - full.JPG ‏152 KB
    chart - detail.JPG ‏145 KB

  • W32time /monitor when syncing time in in PDC from external time servers

    Hi,
    I have moved the PDC to a new DC in our lab environment (from 2003 to 2012r2).
    Computers and domain controllers are syncing time from the PDC and the PDC is syncing time from external servers. This is working according to event log in PDC and computers.
    But, when running w32tm /monitor on the PDC it says:
    dc01 ***PDC *** ....
    ICMP 0ms delay
    ntp +0.000 offset from dc01
    ref id: (unknown) [0x5c089E0a]
    What does the hex code says in this context "ref id: (unknown) [0x5c089E0a]"? I expected the external time server here.
    When running w32tm /query /peers it lists the two time servers that we use:
    Peer: 10.158.x.x
    State Active
    Peer: 10.159.x.x
    State active.
    Is the 0x... as ref id normal? What is that refering to?
    Thanks,
    Oskar

    ref id: (unknown) [0x5c089E0a] is still present after running the commands:
    net stop w32time
    w32tm /unregister
    w32tm /register
    net start w32time
    and then reconfiguring for external time source.
    This must be a presentation error in Server 2012 R2. If running w32tm /monitor on a server 2003 dc instead of 2012 r2 dc it is presenting
    ref id: (unknown) [10.158.x.x] instead of ref
    id: (unknown) [0x5c089E0a].
    Also, if running w32tm /query /configuration and looking at the field type it says:
    Type: NTP (Local)
    NTPServer: 10.158.x.x 10.159.x.x (local) which means that it is synching externally. This is also shown in the event logs.
    Do you agree this is only a presentation issue?
    /Oskar

  • Email syncs now say "Updated Mar 30", the day I upgraded to Lollipop 5.0.  The notification should read the date and time you updated email receiving.  Does anyone elsehave this problem?

    Email syncs now say "Updated Mar 30", the day I upgraded to Lollipop 5.0.  Two days later it is still saying Mar 30.  The notification should read the date and time you updated email receiving.  Does anyone else have this problem?  Is there a solution to this?

    We want to make sure your phone is in working order Mb_in_NC. I know it can be difficult when you see different times. What is your make/model of your device? When did it start? Do you have a different time on any other applications?
    AmberF_VZW
    Follow us on Twitter @VZWSupport
    If my response answered your question please click the "Correct Answer" button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

  • Can I place a 19" LCD monitor over my Time Capsule (G4)?

    Can I place a 19" LCD monitor over my Time Capsule (G4)?

    No, absolutely not..
    Although it has better life than the old ones you are tempting fate by cutting any ventilation at all.. stick the TC vertical on a wall (mounts are sold on ebay) anywhere but under something.

  • Vertical sync?

    I've got my primary display setup as my external video output (apple+F12) so i can preview my sequence in full screen on the monitor I'm using. But when i switch into this mode, and previewing my sequence fullscreen, I'm getting some vertical sync issues.... horizontal tearing because the video playback isn't sync'd to the monitors refresh rate.
    is there a vertical sync toggle in FCP anywhere?
    thanks!

    Have you tried changing the settings found in the QuickTime Control Panel?
    I also suggest checking for updates to your video card drivers.
    Hope this helps.

  • Vertical sync / frame sync in Quicktime

    I've noticed a very annoying thing with Quicktime on Windows. When displaying full screen or in a window, it doesn't seem to update the image synchronously with the monitor refresh rate. I get a lot of tearing because the frame updates in the middle of the refresh (so the top portion of the screen is from a previous frame, and the bottom portion is from the new frame). Quicktime on my Mac mini doesn't have this problem.
    It's quite annoying as the tearing is visually distracting. It really needs to wait for the vertical sync of the monitor to update the image. Does anyone know if there is a setting to enable this in Quicktime for Windows?
    Does apple purposely make the Mac version superior?

    Have you tried changing the settings found in the QuickTime Control Panel?
    I also suggest checking for updates to your video card drivers.
    Hope this helps.

  • Miglia Director's Cut Take 2, old VHS source - vertical sync offset problem

    I'm using a 20" iMac G5 and a Miglia Director's Cut Take 2 to import old family videos from VHS.
    Some of these tapes are up to 21 years old, so they aren't exactly in the best shape. Still, I'm doing everything I can to get them in shape for capturing (including using the original tapes from the VHS camcorder, and exercising the tapes by fast forwarding them to the end then rewinding to the beginning before capturing).
    Unfortunately, I'm having problems with the Director's Cut losing vertical synchronization whenever a worn out bit of the tape causes picture to be glitchy for a few seconds. The Director's Cut doesn't ever "fix" the sync on its own, until the next "glitch" in the tape happens to put it back in sync (or further out of sync).
    This offset basically causes my captured video to have the bottom half of a frame on top, then the VHS head switch noise (which should be on the bottom of the video, not in the middle of it), then the top half of the next frame on the bottom. The VCR's on screen display, when I enable it, is offset too (this happens with both of the VCRs I tested). This means that the sync offset is NOT due to a VCR failing to properly syncronize the video (not to mention the unlikelyhood of that being the problem, due to the way that the VHS standard encodes pictures onto the tape).
    What I find especially strange is that the vertical blanking interval doesn't appear in the middle of the video, right after the VHS head switch noise. The vertical blanking interval lasts for about 30 field lines (60 frame lines once the fields are combined in iMovie), so it should be quite prominent. This leads me to believe that the Director's Cut has managed to sucessfully capture the frames WITH proper vertical synchronization - which is then broken again somewhere between the Director's Cut and iMovie. My theory is that the Director's Cut isn't smart enough to change the read offset in its buffer between its analog to digital converter and its DV encoder. Another possibility: iMovie isn't doing the same thing between its Firewire interface and its DV decoder.
    I can force the Director's Cut Take 2 to "restart" and regain sync by stopping input capture/monitoring in iMovie then starting it again, which also flips the DC2 between "Capture" and "Export" modes. Unfortunately, this is not a real solution for me - I don't want to babysit the computer while I'm importing all these long tapes. Plus, this causes me to lose a few seconds of video.
    I've also tried to find ways to fix this problem using iMovie effect plugins. The closest I've got is using the "Vertical Hold" effect from the free Effects Pack 2 plugins (http://yorgle.cis.rit.edu/Software/iMovie/#dload) by Jerry Lawrence. Unfortunately, this plugin is really only useful for simulating, not correcting, vertical sync problems. It doesn't reference the previous or next frame in the DV file to get the top or bottom half of the picture. This results in a tearing effect, because, after I apply the filter, half of the picture is still from a different "frame" on the VHS tape.
    Is my Director's Cut Take 2 defective, or is this normal behavior for the converter? If this is an unavoidable problem with the converter, is there any iMovie effect plugin that could correct it?
    (If they would be helpful, I can post framegrabs of the DV file, and also framegrabs of the results of trying to use the "Vertical Hold" effect plugin.)
    imac g5 (isight) 2.1ghz (base configuration), miglia director's cut take 2   Mac OS X (10.4.5)  

    Hello, dbloom,
    Is there a particular reason you are using Miglia for VHS conversion/capture?
    I captured my old VHS tapes the way the other poster suggested by recording them onto DV tapes in my camcorder. (My computer setup is not convenient to do any direct connections from a VCR with a converter).Then, I imported the DV tapes to iMovie directly from the camcorder. I had no stoppages of imports/capture; the importing continued as long as my DV tapes, some of which were 80min.
    This method also gives you a digital copy of the original VHS tape. I don't know about yours, but some of mine were getting to be pretty bad. I like having the DV tape of the raw footage to save. The DV versions are actually quite a bit better than the VHS tapes.
    I have made iMovies of our family movies and photos of 15 years so far, burning the final edited versions to DVDs. I think I have made at least 40 movies so far, most of which are nearly 2hrs long. I also save the final movies back to DV tapes so that I have multiple backups of our family movies.
    Just to add my 2 cents worth

  • 2011 iMac 27" Bootcamp AMD 6970M screen tearing/vertical sync issues on 2D Video Playback

    Hi Everyone,
    I am actually running an Radeon 6970M embedded graphics processor on an iMac 27" 2011 model running bootcamp and windows 7 64-bit.
    I am having the same issues with the drivers Apple includes on the bootcamp DVD, as I am having with the drivers download from the AMD website dated 4/13/2012 with the filename:
    8.96-120315a-135852C-EDG_Direct
    The issue I believe is with vertical sync on any 2d video playback or even in normal desktop actions. I see screen tearing visible in normal Windows 7 operations (click and draw a rectangle on the desktop and I see screen tearing).
    When I watch flash videos in google chrome or in internet explorer (ie: Hulu Plus, or netflix) I see screen tearing. It is much more visible in the flash videos.
    I also see screen tearing when viewing downloaded .MKV or .AVI content, so the issue is not just with flash. I have tried Windows Media Player and VLC player.
    I also have tried turning on vsync to always on in the catalyst control center->Gaming->3d applications, but that didn't make any difference. I didn't think it would because it is 2D content that I am having trouble with.
    The monitor has a mode for 59hz. When I reduce the refresh rate to 59hz, there seems to be less screen tearing but it is still visible. What is the issue?

    I was having the same problem - I think I remember figuring it out. It was because I had set windows to display everything at a zoomed level - you do this in Control Panel > Appearance and Personalization > Display. Set it back to 100% and the tearing problem should disappear.
    I think it's likely due to a subpar graphics card driver.

  • Is it possible to sync time capsule data to a external hard drive

    Is it possible to sync time capsule data to a external hard drive connected to time capsule via usb. (as an precaution just incase time capsule fails)
    Thanks

    Yes, if the USB drive has been previously formatted correctly in Mac OS Extended (Journaled) format.
    Open AirPort Utility - Click Manual Setup
    Click the Disks icon
    Click the Disks tab below the icon
    Click Archive
    Allow plenty of time for the copy process to occur. You will not be able to make Time Machine backups from your Mac until the Archive process has completed.

  • Itunes can't read songs to sync. Every few songs Itunes stops the sync because it can't read the song.

    When I sync my ipad or iphone, Itunes will start syncing but after every few songs it syncs, itunes interupts the sync with a message saying it can't read the song. I can go to that song in my list of music and play it in itunes but itunes can't read it to sync.  This has just started happening in the last week, 06/28/13.
    Does anyone know what is going on.  The message is as follows: iTunes could not copy "such and such song" to the iphone because the file could not be read.
    rhpiper

    I didn't understand what you mean. Most of the songs itunes flags are songs I have had on my list for a long time. I did notice something else. After it sends me the message and stops syncing. I press the apply button and it seams to save the song. Then I have to start resyncing and I noticed it syncs the song that it just previously couldn't read. The problem is I have to do this 50 times to get through a sync. Also, Itunes never stops on the same songs that it did the prior sync.

  • Reading/monitoring file on each update by using java code

    Hello, Thanks for help in advance..
    I want to read a log file automatically on each time when log file get update . Actually i am reading that file one time but i have to read that file when log is added to that file.
    Thanks

    File change notification is not supported on all os yet.
    So I do not think it is available in java. You may have
    to write in C/C++ code for os which supports this feature.
    Or use file monitoring tools.

  • Need help with long sync times - busy optimizing unchanged pictures

    Before the latest update I was having a problem with long sync times, often with time spent optimizing pictures that hadn't changed since the last sync. This morning I did the latest update and now it's going on hours updating. Again, optimizing >8000 pics, none of which have changed since yesterday's sync.
    Any suggestions as to what to do? Thanks.

    Yes I plug the IPOD into the USB port.  Today it is a little worse.  When I plug it in it will sync for a moment, pop the message that says IPOD IS  SYNCED TO ANOTHER COMPUTER DO YOU WANT TO SYNC TO THIS COMPUTER.  If I say yes it immediately says FILE NOT FOUND.  The whole page locks up and I have to shut the computer down and restart.
    Sometimes it just recgonizes the named of the IPOD then immediatel disconnets it.  I am so frustrated with this POS and copy protection and all the other things Apple is doing to ensure there songs are not stolen.  It is a PAIN and now this...149.00 gone down the tube.

  • Overclocking & Vertical sync'ing issue's

    O.K. This post is strictly for braging rights.  I have reached 295mhz FSB with 1.7 voltage at a 5:4 ratio.  I must have had issue's before with vertical sync being disabled.  With memory running further than 220 mhz I would get serious fragmentation with Open GL mostly, but for some reason when vertical sync is enabled, the frag.'s only appear in UI's of Open GL games...  the rest of the game is fine (which I can live with).  Of course your limiting FPS with vertical sync enabled, but really is it all just an illusion past 30 fps anyway?  I can't run this board past 295mhz fsb, but still not bad an OC at all, at least by my standards.
    I am finally satisfied with this boards overclocking abilities, but I do think this issue will also result from D.O.T. and should be addressed in a bios fix, or at least a mention in the motherboard manual.  The threshold for my ram is about 220 with minor artifacts and changing RAM and video cards still had same sync'ing issue's.  Relaxing timings and up'ing voltages had no effect also.  Performance mode becomes disabled at 5:4 so that wasn't a cause either.  Hope this helps.

    Whooops... Ain't it getting steaming and stuffy with 295FSB folding for hours...   Give your CPU a beer for the hard work...

  • Disable vertical sync in fullscreen

    Hello,
    I have a game that runs in both windowed and fullscreen modes. I am able to switch dynamically between them while the game is running. When in windowed mode, the game runs very quickly. When in fullscreen, it runs significantly slower. When it's switched back to windowed, it runs quickly again.
    It's been suggested that the cause may be that the page flipping in fullscreen exclusive mode is based on the sync rate of the display. Is there a way to disable vertical sync?
    Thank you.

    Maxideon wrote:
    Painting in fullscreen mode should be handled slightly different then painting in windowed mode.
    http://java.sun.com/docs/books/tutorial/extra/fullscreen/rendering.html
    Are you sure that it's not the mechanism in which you are painting that is causing the slow down in fullscreen mode?
    As for actually disabling vertical sync, I don't know if java can do that. I'm not even sure if it's enabled, or if there's any way to query if java is doing vertical sync or not. I am curious, though, as to what this method does
    java.awt.Toolkit.getDefaultToolkit().sync();
    Thank you for your reply. I'm already using active rendering for both windowed and fullscreen modes. Since I'm drawing the entire contents of the window, I figured it would be easier to use active rendering with a Canvas. The drawing code is the same for the fullscreen and windowed modes.

Maybe you are looking for

  • My ipad won't charge with the usb cable

    I took my Ipad on vacation with only my usb cable, expecting to charge off another computer. No charge! Since then I have tried several other cables, no luck. Is my Ipad problematic?

  • Search in: "Service Registry" option doesnt appear - Configuration

    Hello,    I´ve tried the configuration of the Visual Composer for searching in Service Registry but I still cant see in the search in field the option "Service Registry". I´ve configured the destination type Service Registry to my physical system (de

  • Why Do Both Photoshop CS5 (64 Bit) and Premiere Pro (64 Bit) Crash on Start up.

    Both Photoshop CS5 (64 Bit) and Premiere Pro (64 Bit) Crash on Start up. 32 bit version of Photoshop works fine. Here is the problem signature when they crash. Problem signature:   Problem Event Name:          APPCRASH   Application Name:          Ph

  • Subtitle missing in iMovie export

    I imported an m4v file into iMovie in order to normalize the volume as well as add chapters, and export it as a file. My source file has subtitles, but my destination (exported file) doesn't. After trying back and forth, I figured out that it all has

  • (10g) 자동 통계정보 수집(AUTOMATIC OPTIMIZER STATISTICS COLLECTION)

    제품 : ORACLE SERVER 작성날짜 : 2006-07-21 PURPOSE 이 문서는 10g의 new feature인 자동 통계정보 수집(Automatic Optimizer Statistics Collection)에 대한 소개와 기능에 대한 자료이다. Explanation 1. 개요 Optimizer statistics는 GATHER_STATS_JOB에 의해서 자동으로 수집된다. 이 JOB은 SYS 소유로서 OBJECT_TYPE이 JOB이