IMAQdx timestamp off-by-one

I have a network camera and it provides its own timestamp via the IMAQdxTimestampHigh and IMAQdxTimestampLow properties. I'm observing something I don't expect -- the timestamp appears to be off by one image.
I have a simple VI that shows this behavior. In it, I open an IMAQdx session with my camera, configure a grab, reset the timestamp counter, and read the images sequentially. When examining the timestamp associated with each image, the first image has what appears to be the Nth+1 image's timestamp from the previous grab, as if stale data was left in memory.
To see this behavior, run the "Exercise Timestamp Reset.vi" twice. Before you run it the second time, take note of the value for "Last Timestamp". When you run it the second time, the value for "First Timestamp" is slightly higher than "Last Timestamp", which suggests stale data. I would expect "First Timestamp" to be close to zero.
What could be causing this behavior, and how can I fix my code? So far, I've tried:
Moving the "Reset Timestamp Counter.vi" so that it is called immediately after creating the IMAQdx session,
Creating an IMAQdx session, resetting the timestamp counter, and clearing the session before creating a second IMAQdx session for the grab.
My particular configuration:
Allied Manta MG 504B ASG
LabVIEW 2009 SP1
IMAQdx 3.9.1
Solved!
Go to Solution.
Attachments:
Exercise Timestamp Reset.zip ‏50 KB

BlueCheese wrote:
Maybe I used the wrong terminology here.... Its not so much "subverting the firewall" as processing the GigE Vision-related traffic at the lowest layer in the network driver, well before it gets handled by the network stack and any firewalls in the system. This is somewhat implied by using the "High Performance GigE Vision Driver". The firewall is still in place for any other traffic to the system.
When you are _not_ using the high-performance driver, the GigE Vision data does go through the firewall. However, since the reception is done in the OS kernel for performance reasons the firewall doesn't work quite the same way as through applications. The various exceptions you can modify on the list relate to individual programs, not the kernel. The kernel effectively has unrestricted access to the network stack. However, because of the way the firewall works it does end up blocking UDP traffic that is not "connection-based" -- in that UDP inbound traffic is not allowed unless outbound traffic along the same path was recently detected. In the original GigE Vision 1.0 standard there was always a unidirectional path with no way to make it appear bidirectional. In later versions a feature was added that made it possible and today most cameras support it. This is the "Firewall traversal" feature that I mentioned earlier that can be enabled inside IMAQdx. This is likely the easiest option and doesn't require any changes to your firewall configuration.
Thanks for your clarification -- I'm not so alarmed :-)
I was able save another Wireshark capture after enabling Firewall Traversal, and this time I saw a lot more traffic. I set the camera's PacketSize to 1200 and saw many UDP transfers just above that size.
One thing that was a bit strange: I could only enable Firewall Traversal from MAX via View Options » All Attributes and then checking the box for AcquisitionAttributes » AdvancedEthernet » FirewallTraversal » Enabled. I didn't see an equivalent in the LabVIEW Class Browser: Firewall Traversal was not present in the Advanced Ethernet submenu. I didn't see any filtering options for the property node either (I've seen that before in DAQmx). It was only discoverable as AcquisitionAttributes::AdvancedEthernet::FirewallTraversal::Enabled by using IMAQdx Enumerate Attributes.vi. I suppose that the driver doesn't keep a cache of some attributes and relies on run-time detection instead.
At any rate, I would be grateful if you can inspect whether or not the camera is sending bad timestamps. I am still waiting for a response from Allied about a firmware update.
Attachments:
firewallTraversal.zip ‏3388 KB

Similar Messages

  • FTP file timestamp/Calendar getTimeInMiilis() off by one year...

    Hi,
    My apologies if this doesn't belong here, but I'm not sure where to file it. I'm using the Apache commons library to do FTP transfers. When I pull a file down, I try to set the last-modified timestamp using:
    private static void setTimeStamp(FTPFile file, File localFile) {
      localFile.setLastModified(file.getTimestamp().getTimeInMillis());
    }However, it seems to be setting the timestamp incorrectly; the year is off by one.
    I can compensate for it by adding one to the calendar object, but I wanted to ask here to see if anyone can explain it to me in more detail... perhaps I am misunderstanding something fundamental about the Calendar class or something?
    Thanks,
    KaJun

    Could it be that the FTPFile.getTimestamp() is in error by one year rather than the File.setLastModified() ?

  • I am fed up with Spring and Apple passing me off to one another and neither will fix the problem. I am unable to receive a connection on my phone.

    I am fed up with Spring and Apple passing me off to one another and neither will fix the problem. I am unable to receive a connection on my phone.
    The internet goes out and I have to reset network setting each and every time. This is only a temporary solution which by the time I release the line with Spring or leave the apple store the issue is back. Sprint indicates that it is a know issue with the Iphone 5 and apple says it is a network issue as Sprint's network is not up to par with the Iphone and can not meet the expectations on the Iphone 5.
    I have attached a few picture, as you can see it clearly says I have 5 bars and 3g available but I have no connections what so ever.
    This issue affects all data and so I can not send or receive picture messages, use apps, or access the internet. The data goes in and out intermittently and it seems the phone chooses what I can and can't do.
    For example I can watch Youtube or Vevo videos but I can not access Facebook or Instagram.
    Is anyone else having this issue?
    I will soon loose my patience....
    I have reset my phone three time and have reset network and other setting mutltiple times.

  • I am trying to add my sons email address to our family apple id but it says that it already associated with another apple id. How can i find out what the apple id is and take his email address off that one?

    I am trying to add my sons email address to our family apple id but it says that it already associated with another apple id. How can i find out what the apple id is and take his email address off that one?

    You may be able to find your Apple ID at Look up your old and forgotten Apple ID

  • How you you take an ipod off of one account and transfer it to another account?

    how you you take an ipod off of one account and transfer it to another account?

    If you mean iTunes libraries, sync it with the desired iTunes library. If you mean iTunes Store accounts, an iPod can contain content from five of them at once with no special actions needed.
    (57859)

  • Exchange / Google calendar entries off by one hour after DST

    I noticed that all of my repeating entries from my Google calendar on my iPhone (synced with the Exchange "Google sync" method) were off by one hour, appearing one hour delayed, starting November 7th, 2010 and ending in March 2011 when DST starts again. After turning Time Zone Support off in the iPhone settings, everything fixed. However, this is unfortunate if it means I don't have the ability to shift my calendar when I travel. Anyone else experience this problem, or know of an actual fix (as opposed to this work-around)?

    Woraround: Turn on time zone support in the mail calendar settings and choose your location. Downside is you have to change it if you are traveling. I thin apple should address this as a bug.

  • Calendar sync time off by one hour

    When I sync my BB Curve 8530, version 5.0, by Verizon with Outlook 2007 calendar, the appointment time is off by one hour.  The BB Curve always shows the appt time one hour later than Outlook.  When I schedule an all day event, it begins at 1 am and carries over to the next day at 1 am.  I've verified time zone settings for both.  Not sure what else to do or check.  Any advice is greatly appreciated so I won't be late again!!! 
    Looney2ndad

    Update, I now have several accounts that reporting the same issue. Has anyone else seen this?

  • Once bootcamp is installed on my Mac, how easy is it to go back and forth from windows to Mac? Just a press of button or do I have to completely log off of one to go to the other?

    Once bootcamp is installed on my Mac, how easy is it to go back and forth from windows to Mac? Just a press of button or do I have to completely log off of one to go to the other?

    Using vitual machine programs (VirtualBox, Parallels, VMWare Fusion) you can run both at the same time.
    Load Windows under BootCamp.  Then load the VM software and select the existing BootCamp partition as the "virtualized space".
    But ... BootCamp first, following Csound1's advice about backups.  And you will wantto boost RAM most likely because you need to allocate certain amount of system RAM to each "virtual machine", as well as leaving some for OSX.
    But ... BootCamp first.

  • Hi, I want to have my phone "on ring" so my alarm will go off (have one set every night) but I DON'T want it to ring (just vibrate). It seems like there is no "none" option of Ringer. Anything I can do?

    Hi, I want to have my phone "on ring" so my alarm will go off (have one set every night) but I DON'T want it to ring (just vibrate). It seems like there is no "none" option of Ringer. Anything I can do? So basically it seems my options are 1. silence the entire phone therefore also silencing my alarms OR 2. Leaving the ringer on low, putting all other notifications to vibrate, yet the ringer is STILL on. That's annoying!

    The alarm will ring even if the switch is on Silent.

  • I am trying ot install my cs6 online. it says that my code has been redeemed but i took it off of one of my laptops to download it onto this one. it is still not working. please help

    I am trying ot install my cs6 online. it says that my code has been redeemed but i took it off of one of my laptops to download it onto this one. it is still not working. please help

    Find your serial number quickly
    Download CS6 products
    Activation & Deactivation Help
    Mylenium

  • How do I turn off 'All' the photo stills in iMovie 11 without having to turn off each one?

    How do I turn off 'All' the photos in iMovie 11 without having to turn off each one?

    Hi AppleMan 1958,
    Sorry I was typing too quickly ....
    It should have said: "How do I turn off the 'Ken Burns' effect of all the photos without..."etc.
    Having read another comment on this forum, I think I have the answer.
    By going to File>Project Properties, and then turning off the Ken Burns effect.
    Don't know how you feel about iMovie 11, but I think its pretty awesome don't you think?
    Thanks for pointing out my stupid question!
    Kind regards,
    Bob

  • Printing to pdf gives improper formatting (page is cut off on one side)

    Safari 7.0.5 on Mavericks 10.9.4: printing to pdf gives improper formatting (page is cut off on one side). Any suggestions?

    I am trying to print from Safari. The problem happens without respect to the zoom level, as I have tried many times with several different web pages, from fully zoomed in to fully zoomed out. It also happens without respect to whether I use the print option (and then specify to print to pdf) or use File>Export to pdf...
    Irritating, as the "save as... "option is not foolproof either.
    Any thoughts?

  • IPhone 3G Email and Calendar times off by one hour (slow one hour)

    My times which I send/receive emails or put appointments on the calendar are 1 hour slow as compared to my computers. I have Mobile Me and Mobile Me (on the computer) and my Outlook emails and calendars match and my current time is correct on all. On the IPhone 3G the current time is correct but the time a email is sent or received and all appointments on the calendar are both off by one hour (one hour slow on the IPhone 3G).
    I have set time automatically in "settings" to on, and under "email contacts and calendar" I have time zones disabled. I have tried each possible combination of these settings but cannot get the email/calendar times to match between my computers and the IPhone 3G regardless of how these are set.
    I have numerous computers and all times are correct on all. On the IPhone 3G the current time (the clock) is correct, but times in emails and calendar appointments are all off (slow) by exactly one hour no matter what I do.
    Anybody else have this issue, and/or know what the solution might be?
    Thanks
    The Omega

    I have tried that and it did not work. I am now trying it with everything set to enable DST, and see if that works. Everything, so far, seems to be in sync. The phone would be right for a second when you went into the calendar and then change to be an hour off. Strange. I think the settings I have now (all, Windows, MobileMe, and the IPhone 3G set to DSL on, the same) may be working. Only time will tell.
    Thank you.
    The Omega

  • Is it possible to run an iPhone and an iPod off of one iTunes account?

    Is it possible to run an iPhone and an iPod off of one iTunes account?  I want to buy an iPhone but I also want to use my Ipod Touch

    NyVetteGuy wrote:
    As a clarification, you can have up to 5 devices with iTunes.
    Sorry, this is incorrect.  The limit of 5 relates to the number of computers you can authorize to use iTunes, NOT the number of iOS devices you can sync with a single iTunes library.  You can sync as many iOS devices as you like to iTunes.  See whitewater2's post below... he is syncing at least 6 iOS devices with the same iTunes library.

  • So I bought a phone off some one and it happened to be reported lost and I need the previous owners icloud to unlock it. what can I do?

    so i bought an iphone 4s off some one and it happened to be reported lost and i need the old owners icloud info to unlock it. what can i do?

    almightyrollin wrote:
    ive contacted the old owner he isnt willing to do it because he said its my problem and he cant trust me. is there any other way like taking it to the apple store?
    As you've already been told...NO.

Maybe you are looking for

  • Special Keys(Ctrl-opt-esc) in Screen Share no longer working after latest update

    I typically remote into a machine back home through icloud once or twice a week to help my wife kill a program that can get stuck.  I used to be able to send command+opt+esc to get to the remote computers force quit applications window.  But now when

  • Add a second WAN CIDR range to ASA 5505

    Forgive me if this has already been covered as i couldn't find any clear answers to do this with a lone ASA 5505 running sec plus.  How would i go about adding a second /28 CIDR range on anther segment given to us by our ISP which is on another segme

  • How to Get the Source File Path in the Receiver Side

    Hi Experts, Here We are Trying to Do How to Get the Sender Information ( File Name & Path ) on the Receiver Side . According to the Michal Blog /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp

  • Disable http - use only https

    dear all, i have created a self sign certificate on my oracle application server and enables ssl on port 443. how can i disable the http service as i inly want users to access https://myportal/ instead of using http://myportal as well thank you in ad

  • HTTP headers - auth_user

    Hi all, is there a way to access http headers like auth_user from an XSQL page? Thanks for any input. Olaf