Unable to replicate the frations seconds when you read a timestamp to a binary file

I use LabVIEW to collect packets of data structured in the following way:

cluster containing:

DT - single-precision floating-point number

timestamp - initial period

Table 2D-single - data

Once all the data are collected table of clusters (above) is flattened to a string and written to a text file.

I try to read binary data in another program under development in c#. I have no problem reading everything execpt the time stamp. It is my understanding that LabVIEW store timestamps as 2 unsigned 8-byte integer. The first integer is the whole number of seconds since January 1, 1904, 12: 00, and the second represents the fractional part of the seconds elapsed. However, when I read this information in and convert the binary into decimal, the whole number of seconds are correct, but the fractional part is not the same as that displayed by LabVIEW.

Example:

Hex stored in the binary file that represents the timestamp: 00000000CC48115A23CDE80000000000

Time displayed in LabVIEW: 8:51:38.139 08/08/2012

Timestamp converted an Extended floating-point number in labview: 3427275098.139861

Timestamp binary converted into a decimal number to floating-point in c#: 3427275098.2579973248250806272

Binary timestamp converted to a DateTime in c#: 8:51:38.257 08/08/2012

Anyone know why there is a difference? What causes the difference?

http://www.NI.com/white-paper/7900/en

The least significant 64 bits should be interpreted as a 64-bit unsigned integer. It represents the number of 2-64 seconds after the whole seconds specified in the most significant 64-bits. Each tick of this integer represents 0.05421010862427522170... attoseconds.

If we multiply the fractional part of the value (2579973248250806272) by 2-64 so I think that you have the correct time stamp in C.

Tags: NI Software

Similar Questions

  • "Windows cannot access the specified device or file. You can not have the appropriate permissions to access the item. "When you try to open a. EXE file.

    Windows cannot access the specified device or file. You can not have the appropriate permissions to access the item.

    Well, I was on my computer, I tried to open an exe file and I got this message

    Windows cannot access the specified device or file. You can not have the appropriate permissions to access the item.
    I have windows xp, anyone have an idea what to do?

    Hi Reaper14,

    ·         The question is limited to this particular .exe file?

    ·         You can open other files very well?

    If you are unable to open a .exe file, refer to the following article.

    Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    322756 (http://support.microsoft.com/kb/322756/) how to back up and restore the registry in Windows

    Click on the link below.

    Cannot open EXE files

  • I'm looking for a way to blur a face for about 8 seconds of a video of 20 minutes. When I use the mosaic is bluring in the same place throughout the 20-minute video. How can I add to the 8 seconds when the face appears?  Thank you.

    I'm looking for a way to blur a face for about 8 seconds of a video of 20 minutes. When I use the mosaic, it is bluring in the same place throughout the 20-minute video. How can I add to the 8 seconds when the face appears?  Thank you.

    Razor the clip at the beginning of the second part 8 and at the end, and then apply the mosaic effect to the clip.

  • Favicons repeat through tabs, behind the label text when you switch between tabs. 37.0.1 sometimes the Green scroll bar does not have too

    Please mention the attached JPEGS. When I switch between tabs, favicon image repeated behind the text. In some cases, the image of the vertical scrollbar is messed up, it cleared up when I click on it. -Does not appear to affect performance, simply annoying. Thank you!

    Please temporarily disable your Avast extension to see if it has to do with it.

    Try Firefox Mode without failure:

    Try Firefox Safe mode to see if the problem goes away. Firefox Safe mode is a troubleshooting mode that temporarily disables hardware acceleration, restores some settings and disables add-ons (extensions and themes).

    If Firefox is open, you can restart Firefox Safe mode in the Help menu:

    • Click the menu button

      click Help

      then select restart with disabled modules.

    If Firefox does not work, you can start Firefox in Mode safe as follows:

    • On Windows: Hold down the SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac: Hold the option key during the startup of Firefox.
    • On Linux: Exit Firefox, go to your Terminal and run firefox-safe-mode
      (you may need to specify the installation path of Firefox for example/usr/lib/firefox)

    When the Firefox Safe Mode window appears, select "start mode safe."

    If the problem is not present in Firefox Safe Mode, your problem is probably caused by an extension, theme or hardware acceleration. Please follow the steps described in the section Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems to find the cause.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. This might help others with the same problem.

  • What are the supported items when you use multiple suites?

    Hi all

    I created a plugin that sends the current path to a url,

    his work very well with debugging in Visual studio 2005 and then it is added to the Adobe Illustrator work only once.

    Its transmission, the path is that for a single file. While I was trying for the second time its does not work

    I use more costumes in my plugin

    AIDocumentSuite

    AIFilePathSuite

    AIActionManagerSuite

    AIUnicodeStringSuite

    AIURLSuite

    I use the "'AIURLSuite ' to call the url and calls the url several times while its used only and its only works once with multiple suites. "

    What are the supported items when you use multiple suites? It is necessary to release all the variables and the suites after completing the task?

    Should they come out in the same order in which they are acquired?

    Thanks in advance

    Farida kaid

    As far as I know, there is nothing forcing you to unleash in the same or in front of the order in which you have acquired in. Frankly, in our plugin gain us once, then lock the plugin to prevent it from unloading and don't release suites when we finished. That said, as far as I know, you should be fine to learn/work/output several times.

  • How will I know where the time goes when you delete a line?

    Dear experts,

    Removal of certain rows in a table (approx. 4.9 GB / 2.9 Millon lines) takes an average of.5 seconds each line (on average).

    This table contains 3 clues, just I just rebuild. Statistics from a couple of the day before.

    I have imported/exported the table to a new schema and destruction prend.002 seconds each line (on average).

    How will I know where the time goes when you delete a line?

    BTW, this is ORACLE 10 g

    Thank you
    Serra

    There the child tables of this table with FK defined as DELETE CASCADE?

  • Cannot add the find now is in the Tools menu when you try to install add to import Windows Live messages, contacts, etc.

    I want to import Windows Live 2011 messages, contacts, etc and tried to install the recommended add on. I downloaded and registered the add on by following the instructions, but when I went on the Tools menu, to add on the of are not there to complete the installation.

    Add what ons reports tools when you use the menu bar. Shortcuts universal to display hidden menu bars is alt or F10

    It looks like you use the button AppMenu (3 horizontal lines).
    I guess that you haven't noticed the Add-ons selection in the main menu when you have clicked on that.

  • I want the cursor to be in the address bar when you create a new window; It works for new tabs and a new private window, but not in safe mode.

    I tried following the advice offered in the different threads bit I found on this but nothing works out. I want the cursor to be in the address bar when I open a new window or when firefox opens without restoring a previous session. I solved the problem for new tabs via subject: config, but it does not work for the new windows. I tried safe mode and the problem persists. In a new private window, the cursor is in the address bar.

    A new window opens the homepage (default: subject: House) and not the new tab page (default: subject: newtab).

    Some of the built-in pages set the focus to the search bar on the web page, just like the Google site only.

    You can use a bookmark in the bookmarks toolbar that opens the subject: blank page.
    If you hold down the SHIFT key when you click this bookmark, then you open a new widow with this page.
    Otherwise, you need to set the home page to about: blank or on the point: about to have easy access to all the pages.

  • How to disable the screen saver when you watch videos in full screen in firefox?

    This only happens with Firefox, other browsers videos play normally and without interruption. I want to keep my window screen saver by default but not when watching full-screen mode.

    The Flash Player plugin must normally block the system to go to sleep, reduce the brightness of the display or go to the screen saver when you are using full-screen. It is strange that you have this problem with Flash.

    There are workaround solutions such as the use of an add-on or an external program that simulates the movement of your mouse, but those who really shouldn't be necessary.

    VLC, I don't know.

    Furthermore, you closed and restarted Windows because this problem first occurred? Just in case where some component shared Windows crashed.

  • Tecra 9000 - no display on the LCD screen when you turn on

    I recently got a Tecra 9000 for cheap on eBay. I am experienced with the construction and repair of computers, but not so with laptops.

    The problem with this laptop, it's that do not display on the LCD screen when you turn on. It was just black, no backlight, nothing. I took the laptop all share, found no obvious problem. I had to turn it on and the screen lights up a few times trying to figure out the problem. Would it be a bad connection? Or something else?

    After getting it to start work, I'll try to start to put it back together and it stopped working again. I haven't not been able to reduce it to know if it's a bad connection or a card problem.

    Someone at - it suggestions? This is a problem for others here?

    As you describe the issue, I think it is somehow a bad connection or a damaged cable, because it does not work once you have disassembled the screen.
    Maybe you need to check all the cables, leading motherboard to the LCD and take a close look, maybe for a few scratches or strong curvature.

  • I liquidated my bar. As the search bar when you type in the web address, and now I can get it back. I handed to the clicked place where I did to trun off (unchecked it), and I don't see anything again?

    I liquidated my bar. As the search bar when you type in the web address, and now I can get it back. I handed to the clicked place where I did to trun off (unchecked it), and I don't see anything again?

    Hold down the key (key in OSX) and press the following letters in this exact order: V T M
    The bar of menus must now appear permanently, unless you turn it off again (view > toolbars). Turn on/off the menu bar is a new feature in version 3.6.

    See the other bars under view > toolbars. By clicking on one of them will place a check mark (display) or remove the check mark (not shown).

    Then, in the Menu bar, go to view-> toolbars-> customize, then press the Restore Default Set .

  • Hi, actually I want the program stops when you press the stop button. but the problem is the program is runing in loop only he doesn't return tile view deleted complete execution of any body can help me for this.

    Hi, actually I want the program stops when you press the stop button. but the problem is the program is runing in loop only he doesn't return tile view deleted complete execution of any body can help me for this.

    Here

  • How to disable the backup works when you print an email?

    How to disable the backup works when you print an email.  Whenever I try to print an e-mail, save it as a PDF is displayed.  I then have to save, then open the file to print.

    Hello

    Thanks for posting your query on the Microsoft Community.

    To disable this feature, you need to uninstall Adobe reader and then check if still back you the question quickly.

    Kind regards

    Jesinta Rozario

  • How can I disable the mouse pad when you use a mouse plug-and-play?

    How can I disable the mouse pad when you use a mouse plug-and-play? I tried to disable the driver, and nothing works.

    Hello

    Check with support of the manufacturer system, documentation online or forums that there is probably
    Shortcut keys that enable and disable the touchpad functions.

    Parameters for TouchPad located in the control panel - mouse (there may be several tabs with TouchPad entered)
    and some come with a utility that loads in the Notification area next to the clock in the bottom right.

    ==========================================

    If necessary: (make sure that you have restarted at least once, if the above did not work)

    Panel of configuration manager devices - mouse and pointing devices - Double click on the touchpad - the driver tab-
    Click on update driver (it comes may not do anything like MS is far behind the drivers of certification), now right CLICK
    on the TouchPad and UNINSTALL.

    Then go to the USB and UNINSTALL ALL controllers except the category itself (all in). RESET

    This will refresh the driver for the TouchPad and battery USB. This does not prevent the touchpad from working.

    The similar procedure on XP, Windows 7 and Vista is the same, except that we need to clear the specific device if present.
    http://support.Microsoft.com/kb/310575

    Then go to the system manufacturer's website and get the latest touchpad drivers.

    Download - SAVE - go to where you put it-click on - RUN AS ADMIN.

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • Get the blue screen when you create a new message or the response message in OWA Exchange 2007

    Get the blue screen when you create a new message or the response message in OWA (Exchange 2007)

    Hello

    I suggest you post the question in the forums and check them off below if it helps:

    http://social.technet.Microsoft.com/forums/en-us/exchangesvrclients/

    It will be useful.

Maybe you are looking for

  • Lost Windows 7 Key

    I need to reload Windows 7 on my HP 500 b - OEM product key label is missing the last four characters with a torn label.  Is there a way to find out what here?  I have the serial number and product.  Any suggestions gratefully received!

  • How to fix the bug of 1970 on iPad mini 2

    How to fix the bug of 1970 on iPad mini 2

  • Isolate the iPad Pro downloads since Photo Push SD card to iCloud

    I recently made a trip to the coast with my digital SLR camera, an iPad Pro and SD lightning adapter.  In general, I use Photos.app on my rMPB 13 "with a disk external DRIVE containing a reference of all DSLR photos library.  To save space and reduct

  • Problem with writing to registers

    Hello I am using the kit DDK to read and write in the registers of the VI running on the FPGA (7831R + 7833R). So I downloaded the examples for the R series. It still reads 0xffff, but I did not now why...? ! I use the VISA OsiBus and layer 7831R. I

  • 3 documents in the queue can remove/print document 2 and 3 but not document 1. Reference Dell

    Have an old Dell computer and can't get the documents to print on my HP Officejet 5610v all-in-One printer because it is suspended in some way - need help - it is used to print, but now just documents get hung up.  3 documents in the queue can remove