Convert EXT to U64

Hi all,
I'm having trouble converting an EXT to a U64.
I searched the forum and found this excellent post for going the other way:  converting a U64 to an EXT.  This solved half my problem beautifully.
http://forums.ni.com/t5/LabVIEW/convert-64bit-UTC-time-since-1-jan-1601-to-current-time-labview/m-p/...
Unfortunately, I need to be able to go the other way also and I'm having trouble ascertaining how by looking at this code. I understand parts of it, but not the whole.  I haven't been successful in finding a conversion algorithm online (normally Mr. Google is more helpful than he was today).
Typecasting the EXT to a U64 doesn't give me accurate results (also discussed elsewhere on the forum, this is a lossy conversion).  Using the "to U64" function on the numeric conversion palette also does not give me accurate results.  I checked both of these things by inputting a U64 to the code shown in the link above, then taking the resulting EXT and attempting to convert it back to a U64 using either the numeric conversion function or a typecast.
This post discusses the issue with the numeric conversion function:
http://forums.ni.com/t5/LabVIEW/BUG-Large-floating-point-numbers-convert-to-the-wrong-integer/td-p/2...
It's wonderful that this was resolved in LV 2013, but I'm using LV 2012.
I think I need to figure out how to reverse the code I linked to above, but I don't understand it well enough to do so.  Can anyone help?
Thanks!
Diane

Hi Diane,
I have looked through the Bug report, but there was no mention of the workaround or fix documentation that was implemented in the 2013 version, so we'll have to find a workaround.
Since this conversion issue only arises when the top 53 bits are set, I suggest starting up by checking your initial EXT. If those bits are set (you could do a conversion to string and compare the first 13 characters to FFFFFFFFFFFFF), then this is where the tricky bug comes in; if not it appears typecasting to U64 works out.
In the problematic case, a possible idea (that looks similar yet a little simpler to the VI you mentioned) would be to convert the EXT to a string, split the string in two, convert those separatly, concatenate the strings and convert back to a U64.
Xavier
Applications Engineering Specialist
National Instruments

Similar Messages

  • TUT5124 Updating to GW2014 Convert Ext.Entities to Users

    Hi all,
    my customer converted already some time ago all eDirectory users to external entities as a preparation to be able to run his GroupWise system without eDirectory with the actual GW12.03 patch level
    Now we have this recommendation in the 3rd slide of the TUT5124 presentation of the BS2014 where it is recommended to convert the external entities to eDirectory users as preparation step for the upgrade to GW2014.
    Do we have some kind of technical background information why this step is required?
    The customer reported that he was able to associate the external entity to the active directory user without problems, without eDirectory user.
    Please advice...
    Many thanks in advance and best regards,
    Stefano
    Stefano Barello - Lanworks IT engineering

    SBarello,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://www.novell.com/support and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Forums Team
    http://forums.novell.com

  • Converting ext disks to GUID partition scheme without erasing

    I've got a few external hard drives that I've been using for a few years, and I just tried to encrypt them...only to be told by OS X that they need to have the GUID partition scheme. Is there a way to give them this without erasing their contents? They're big drives and close to full. Most of them are backup drives, so I'd really prefer not to erase them, nor do I want to buy a new drive just to use as a copy machine.

    Unfortunately, you do need to erase the drive to partition GUID
    http://support.apple.com/kb/TS1600

  • BUG: Large floating point numbers convert to the wrong integer

    Hi,
    When using the conversion "bullets" to convert SGL, DBL and EXT to integers there are some values which convert wrong. One example is the integer 9223370937343148030, which can be represented exactly as a SGL (and thus exactly as DBL and EXT as well). If you convert this to I64 you get 9223370937343148032 instead, even though the correct integer is within the range of an I64. There are many similar cases, all (I've noticed) within the large end of the ranges.
    This has nothing to do with which integers can be represented exactly as a floating point value or not. This is a genuine conversion bug mind you.
    Cheers,
    Steen
    CLA, CTA, CLED & LabVIEW Champion
    Solved!
    Go to Solution.

    Yes, I understand the implications involved, and there definetely is a limit to how many significant digits that can be displayed in the numeric controls and constants today. I think that either this limit should be lifted or a cap should be put onto the configuration page when setting the display format.
    I ran into this problem as I'm developing a new toolset that lets you convert all the numeric formats into any other numeric format, just like the current "conversion bullets". My conversion bullets have outputs for overflow and exact conversion as well, since I need that functionality myself for a Math toolset (GPMath) I'm also developing. Eventually I'll maybe include underflow as well, but for now just those two outputs are available. Example:
    I do of course pay close attention to the binary representation of the numbers to calculate the Exact conversion? output correctly for each conversion variation (there are hundreds of VIs in polymorphic wrappers), but I relied in some cases on the ability of the numeric indicator to show a true number when configured appropriately - that was when I discovered this bug, which I at first mistook for a conversion error in LabVIEW.
    Is there a compliancy issue with EXT?
    While doing this work I've discovered that the EXT format is somewhat misleadingly labelled as "80-bit IEEE compliant" (it says so here), but that statement should be read with some suspicion IMO. The LabVIEW EXT is not simply IEEE 754-1985 compliant anyways, as that format would imply the x87 80-bit extended format. An x87 IEEE 754 extended precision float only has 63-bit fraction and a 1-bit integer part. That 1-bit integer part is implicit in single and double precision IEEE 754 numbers, but it is explicit in x87 extended precision numbers. LabVIEW EXT seems to have an implicit integer part and 64-bit fraction, thus not straight IEEE 754 compliant. Instead I'd say that the LabVIEW EXT is an IEEE 754r extended format, but still a proprietary one that should deserve a bit more detail in the available documentation. Since it's mentioned several places in the LabVIEW documentation that the EXT is platform independent, your suspicion should already be high though. It didn't take me many minutes to verify the apparent format of the EXT in any case, so no real problem here.
    Is there a genuine conversion error from EXT to U64?
    The integer 18446744073709549568 can be represented exactly as EXT using this binary representation (mind you that the numeric indicators won't display the value correctly, but instead show 18446744073709549600):
    EXT-exponent: 0x100000000111110b
    EXT-fraction: 0x1111111111111111111111111111111111111111111111111111000000000000b
    --> Decimal: 18446744073709549568
    The above EXT value converts exactly to U64 using the To Unsigned Quad Integer "bullet". But then let's try to flip the blue bit from 0 to 1 in the fraction part of the EXT, making this value:
    EXT-exponent: 0x100000000111110b
    EXT-fraction: 0x1111111111111111111111111111111111111111111111111111100000000000b
    --> Decimal: 18446744073709550592
    The above EXT value is still within U64 range, but the To Unsigned Quad Integer "bullet" converts it to U64_max which is 18446744073709551615. Unless I've missed something this must be a genuine conversion error from EXT to U64?
    /Steen
    CLA, CTA, CLED & LabVIEW Champion

  • Limit for numeric values ?

    Hello, I'm using a trial version of FormsCentral (Acrobat Pro XI) and when trying to define the range of values in a text box with number format option I do not see any, nor to set the number of decimal places (only I see options to set as Mandatory and display the help text) ... How can I configure these options ?

    GSinMN wrote:
    Hello Doug,
      Good catch.  I've been dealing with "odd sized" numbers through most of the development for this application.  Generally I convert everything to U64 (in Labview), do and processing or manipulation I need, then convert back as needed.  As far as how things are stored in TestStand, most variables are imported and stored as character strings, then converted as needed.  For this particular post, I was just wondering if there was a way to do some of that conversion directly in TestStand.  Doesn't sound like it would work. 
    GSinMN 
    What I was referring to with the 5 byte issue was when using the default (double-precision foating point) representation of a number in TestStand. When using that representation, integers are treated as 32-bit.
    There are also 64-bit integer representations in TestStand. If you change a TestStand number's representation to "Unsigned 64-bit Integer", then you can use bitwise arithmetic on the 8 byte integer values (using the ui64 suffix for constants such as 0x00000000000000FFui64), however, the numeric limit step types do not currently support 64-bit integers, so you would not be able to use those.
    -Doug

  • Double TNS datagrams in one TCP packet

    I have the following Problem:
    During a database Connection over an IPSec - tunnel between a Fortigate and a Juniper firewall the connection stalls.
    This is exactly reproducible with on select or bulk insert statement. Neither OCI or thin changes the behavior. Without the tunnel(f.e. LAN or ISDN connect)
    there no problem an no duplicate TNS.
    I have logged the TCP traffic with wireshark on both sides and noticed that I have two tns datagrams in one TCP packet.
    I use different IPSec tunnels and haven only problems with this one. Do you have a hint whats going on?
    BTW: I change sdu and tdu sizes. This changes the point in time of the stall (double tns).
    Here is the Wireshark Log:
    519     1128.135566     192.168.197.33     10.4.100.73     TNS     Request, Data (6), Data
    520     1128.135912     192.168.197.33     10.4.100.73     TNS     Request, Data (6), Data
    521     1128.179202     10.4.100.73     192.168.197.33     TCP     [TCP Window Update] ncube-lm > 64542 [ACK] Seq=7203 Ack=2341 Win=65535 Len=0
    522     1128.202975     10.4.100.73     192.168.197.33     TCP     ncube-lm > 64542 [ACK] Seq=7203 Ack=3691 Win=64185 Len=0
    523     1128.213284     10.4.100.73     192.168.197.33     TNS     Response, Marker (12), Attention
    524     1128.213516     10.4.100.73     192.168.197.33     TNS     Response, Marker (12), Attention
    525     1128.213557     192.168.197.33     10.4.100.73     TCP     64542 > ncube-lm [ACK] Seq=4265 Ack=7225 Win=64201 Len=0
    526     1128.217649     192.168.197.33     10.4.100.73     TNS     Request, Marker (12), Attention
    527     1128.255460     10.4.100.73     192.168.197.33     TCP     [TCP Dup ACK 524#1] ncube-lm > 64542 [ACK] Seq=7225 Ack=3691 Win=65535 Len=0
    * 528     1128.501575     192.168.197.33     10.4.100.73     TNS     [TCP Retransmission] Request, Marker (12), Attention
    529     1128.588704     10.4.100.73     192.168.197.33     TCP     ncube-lm > 64542 [ACK] Seq=7225 Ack=4276 Win=64950 Len=0
    Here the connection stalls, but does not terminate. The data transmission is not finished.
    The * packet has the following header information:
    Frame 528: 639 bytes on wire (5112 bits), 639 bytes captured (5112 bits)
    Ethernet II, Src: FujitsuT_92:f0:b5 (00:19:99:92:f0:b5), Dst: Fortinet_25:ea:de (00:09:0f:25:ea:de)
    Internet Protocol, Src: 192.168.197.33 (192.168.197.33), Dst: 10.4.100.73 (10.4.100.73)
    Transmission Control Protocol, Src Port: 64542 (64542), Dst Port: ncube-lm (1521), Seq: 3691, Ack: 7225, Len: 585
    Transparent Network Substrate Protocol
    Packet Length: 574
    Packet Checksum: 0x0000
    Packet Type: Data (6)
    Reserved Byte: 00
    Header Checksum: 0x0000
    Data
    Transparent Network Substrate Protocol
    Packet Length: 11
    Packet Checksum: 0x0000
    Packet Type: Marker (12)
    Reserved Byte: 00
    Header Checksum: 0x0000
    Attention
    Marker Type: Data Marker - 1 Data Bytes (0x01)
    Marker Data Byte: 0x00
    Marker Data Byte: 0x02
    Any idea?

    Ben wrote:
    Convert dbl to U64 then use swap words. Swap Words is polymorphic and will adapt the the data type you prest to it.
    Ben
    Convert is a bad idea here.you want to typecast instead.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • File not getting converted to the .EXT type

    Hello Experts,
    Please help me with an issue ...
    Actually Iam doing a mailing program.... in which a newly generated invoices are sent to user....
    the mailing is working fine.
    The file which the user is getting in his mail box should be a .EXT type file....from where he will download the file and upload it in  the airtel portal..... from where it been sms to the different number's present in that file......
    But the problem is the file is not getting converted to .EXT type and when we are trying to upload it in airtel portal it is saying that file is not in UTF-8 format..
    To check whether conversion to file type is working  when Iam trying to convert the file in .TXT type its getting converted to text format...but not working with .EXT type when passing 'EXT' in doc_type   of FM .
    I checked the SCOT transaction if any setting exist but ...didnt found anything useful ...
    Please help me to resolve the isuue

    Hi joel,
    From this thread
    Shared Files - problems after upgrading APEX 3.0 to 3.1
    i have taken your words,
    In my development of the browser cache support for static files, I did notice some unexplainable behavior with IE and Firefox. When uploading static files and then testing them, it almost seemed like the browser would request the resource only some of the time (and then get the HTTP 304). If an Expires tag is not computed, I know Firefox will compute one itself.
    As per my understanding, Is it cache_expire should be calculated?
    I could not get that line.Could you please explain me.
    Thanks in advance.
    bye
    Srikavi.

  • Convert "Grayscale I16" to "RGB U64"

    Hello, 
    I need to convert an image from Grayscale I16 to RGB U64, but it doesn't work (I have joined a zip file).
    I think there is a bug in the NI Vision, or it's not implemented because I have no problem to do it from Grayscale U8 to RBG32. 
    Can you help me to find a solution to do that? 
    I need to use ReplaceColorPlane function or equivalent because I have to perform various treatments on each layer (RGB).
    Thanks
    Solved!
    Go to Solution.
    Attachments:
    tests.zip ‏217 KB

    Hi Badgones73,
    The U64 image is composed of four U16 values (R, G, B and alpha). LabVIEW represents 16-bit images as an I16. When the IMAQ Extract Color Planes is called, the U16 value must be converted into I16 values. This is done by converting all values with a MSB of 1 to a value of 0. This means all the values from 32,768 to 65,535 are now 0. To avoid using losing these values, you must read the image into LabVIEW without using the vision functions.
    Once you have extracted the U16 values, they can be converted from U16 images to I16 images. Once this is done, you will be able to use all of the Vision functions.
    Also, i invite you to read the information on our website:
    How Do I Convert a Color Image to Grayscale?
    http://digital.ni.com/public.nsf/allkb/ED42C55C29B9B34C862570A60079952E?OpenDocument
    Regards,
    Rémi D.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> Les rencontres techniques de NI - Mesures et acquisition de données : de la théorie à la mise en ...

  • Convertir une image "Grayscale I16" en "RGB U64"

    Bonjour,
    je cherche depuis un petit moment sur tous les forums que je connais, et je ne trouve pas de réponse à mon besoin, à savoir convertir une image en niveaux de gris de 16 bits en RGB 64 bits. J'ai réussi à le faire en 32 bits, mais la dégradation est trop importante pour mes besoins.
    Si vous avez une solution, je vous en serais reconnaissant.
    Si ça peut vous aider, j'ai Labview 8.6 et NI Vision.
    Merci d'avance

    Si vous souhaitez, voici le VI que j'essaye de faire. 
    Il marche très bien en grayscale 8bits => RGB 32 bits, mais pas en Grayscale 16 bits => RGB 64 bits...
    J'ai supprimé tout le traitement que j'effectue sur l'image pour que ce soit plus lisible. Comme j'effectue divers traitement suivant la couche de l'image (R,G,B), je suis obligé de passer par un Imaq ReplaceColorPlane. 
    Merci du temps que vous consacrez à mon problème.
    Pièces jointes :
    tests.zip ‏217 KB

  • I saved my aiff files to ext. storage.  Now how can I retrieve them and convert them to mp3 or wav files?

    I was trying to free up space on my internal storage, so when I created files in Garage Band, I thought it would be a great idea to store them in my external hard drive.  However, I now wanted to retrieve my files and burn them to a cd.  When I dragged and dropped them to iTunes, they showed up in my playlist, but when I tried to burn the playlist, I got a message telling me there were no files in the playlist.  Then I looked into putting them back into Garage Band and transferring from there to iTunes.  But do not know how to do this, or even if I can do this.  Do I have to always convert my aiff files to either wav or mpe files before I store them?  Is it a lost cause for me now?  Would really appreciate help on this.

    On the external drive, in the Finder, do a get Info on one of those & report size, where, etc.
    Also, if you double click on one, does iTunes play it?
    You could save some space without losing quality by converting them to Apple Lossless.

  • How to convert jpeg images into video file of any ext using JMF

    I want to convert the Jpeg files into video clip with the help of JMF
    any one can help me?
    Plz reply me at [email protected]
    or [email protected]

    I'm not sure of his/her reasoning behind this, but I have yet to find a way to record video with mmapi on j2me. So with that restriction, I can see how one could make it so that it just records a lot of jpegs, and then makes it a movie.
    I would be interested finding a workaround for this too. Either if someone would explain how to record video with mmapi or how to make recorded images into a video. Thanks!

  • What is the procdure to store a PDF converted Smartform into an ext drive?

    Hi All,
             I have a requirement in which I have to save a smartform converted as .PDF into an external drive(in network like VSS).If its for saving in local system,we can use GUI_DOWNLOAD.But how to do it for an external drive.
    Thanks in advance,
         Anjaly

    Hi,
    we can use GUI_DOWNLOAD to download to any drive.
    but in case u r not sure of the destination.call another fm for pop-up screen and using any lont text variable hold the path and using the variable and using GUI_DOWNLOAD u can do the required.

  • Jpgs uploaded from ext drive unwantedly converted into Unix executable file

    I uploaded 20 gigs of jpegs from an external hard drive. The jpegs showed up on my hard drive, but as unix executable files. They still take up the same 20 gigs of space, but I can't open them since they're unix.
    Any suggestions?

    but the only one that works in the "import and open with iPhoto" option.
    So it seems they haven't lost their essential imageness, ie they are photos not unix executables. They are just presenting wrongly.
    Download FileList and select half a dozen to batch change by dragging them into the FileList window, and alter them by adding the .jpeg extension, and they should all change without needing to move them.
    You may have to play around with that application a bit to get the hang of it but after doing a few trial experiments, to learn what to put where it is a very useful little utility. Once satisfied on its usage you can then batch change in bulk.
    roam

  • Lost smart playlists/no connection to ext HD after converting to leopard

    I just changed my OS to Leopard. When I opened itunes, all my playlists and smart playlists were gone. Before the conversion I had my itunes preferences set so that it would automatically connect to an external hard drive where the music library was (and still is, hopefully, so I still have the tunes). Now it no longer links to it. Can anyone tell my why all this happened, and how I might fix it. I really don't fancy the idea of having to redo all the playlists (hundreds).
    Thanks,
    Steve

    Last week I installed Leopard on my Mac Pro G5 and when I opened iTunes all my music was there, but all my playlists were gone.
    Does anyone know how I can find them and import them to iTunes. I do not want to write them all again.
    Thanks

  • Greetings world.I have created a dmg. of my entire iomega ext HDD via disk utility using a mac book pro. It is currently sitting on the desktop. I have erased the iomega and now I can not understand how to put the dmg back.

    It is safe to say that i need help..................
    let me start at the beginning.
    I have 1 2008 imac. always a pleasure never been a problem. Attached to it i have an iomega 500gb ext drive. also been ok.
    until now!!
    The HDD would not mount. Disk utility suggested that it was ok so i tested the imac HD. I got error code 4MOT/2/40000004: HDD- 1502. This doesnt worry me at the moment.
    I attached iomega to my Mac book pro and again it would not mount. The disk utility did tell me that the iomega needed repair. it advised that i should wipe it and restore.
    So I used the MB Pro disk utility to create a DMG. and saved it to the desk top. I then erased the iomega. did a repair and it all seemed ok. So then i try to do a restore.
    After a very long time it said internal error with the dmg. using disk utility i did a convert dmg (compressed) and saved it to the iomega. middle of the night job!!
    got up this morning and indeed it had sent the DMG to the iomega. But i could not open it. The iomega itself seemed dandy asking me if i wanted to use it as a time machine etc and it mounted ok and i saved a small jpeg to the iomega as well. I then thought that maybe when i did the convert as a compressed file i made a mistake. i'm guessing it should be a read and write so i started all over again.......... wiped iomega (which was quite quick) then tried the convert tool again.....it trys for a while then says there is not enough disk space...........I'm not sure which disk it is refering to.??
    I have purchased a 1tb hard drive today incase the iomega is some how full up.
    So really my question to the world is .........Help?

    well no reply from the community. sniff- do i stink!? - probably a little bit. If i have lost all that data then I'm gonna really really pong.
    Any ways i have purchased a 1tb usb HDD and have managed to duplicate the dmg file onto it. however still unable to mount the **** thing. so now i have ordered disk warrior which will be in my possession tomorrow.
    fingers toes eyes crossed.

Maybe you are looking for