Need a single-precision/2-byte conversion tool

Any one have a utility to convert 4-byte single precision numbers to and from a 2-byte representation?
I only need 3 digits, with one fractional digit (-14.3, for example).
Thanks...

At one time I thought I wanted to do this, but never got around to it.  I did find this information useful, however.
http://www.fox-toolkit.org/ftp/fasthalffloatconversion.pdf

Similar Messages

  • Single Precision Floating Point Numbers to Bytes

    Ok here is some code that i have written w hile back with some help from the support staff. It is designed to take in precision floating point numbers that are stored as 4 bytes and convert then to a decimal value. It works off of a udp input string and then also reformats the string. I have the ability to look at up to 4000 parameters from this one udp string. But now what i want to do is do the opposite of what i have written, and also perhaps get rid of the matlab i used in it as well. What i would like to be able to do is input a decimal value and then have it converted in to the 4 byte groupings that make up this decimal nd then have it inputed back in to a single long string witht hat grouping of bytes in the right order. A better explanation of what was done can be found on this website
    http://www.jefflewis.net/XPlaneUDP_8.html
    as the original code followed the "Single Precision Floating Point Numbers and Bytes" example on that site but what i want to do is "Going from Single Precision Floating Point Numbers to Bytes". The site also explains the udp string that is being represented. Also attached is the original code that i am trying to simply reverse.
    Attachments:
    x-plane_udp_master.vi ‏34 KB

    Perhaps what you are doing is an exercise in the programming of the math conversion of the bytes.
    But if you are just interested in getting the conversion done, why not use the typecast function?
    If the bytes happen to be in the wrong order for wherever you need to send the string, then you can use string functions to rearrange them.
    Message Edited by Ravens Fan on 10-02-2007 08:50 PM
    Attachments:
    Example_BD.png ‏3 KB

  • Single precision conversion

    Can someone explain why doing a floating point conversion compromises digit of precision accuracy? For example, if I wire the double precision number "16.0001000" to the "to Single Precision Float" vi input, the output is "16.0000991". 
    I have an application in which this level of accuracy is critical. I can think of several work arounds, but I still would like a good explanation for why this is the case.
    pmac

    Just use array to spreadsheet string on the DBL and write as text file (and an analogous operation for reading, converting back to DBL). Alternatively, you could make DBL version of "read/write  spreadheet file" by editing them slightly and saving them under a new name elsewhere. Make sure to change the icon too, e.g. give it a different color.
    If precision is that important, you might want to use binary files. The don't have any formatting loss at all.
    Of course if this is just measurement data, don't be fooled by fake precision. even SGL has a 22 bit mantissa, so if your DAQ hardware acqures in 16 bits, SGL is plenty.
    LabVIEW Champion . Do more with less code and in less time .

  • Upgrade from ICM 6 to 7 (TR) -- Domain conversion tool / UMT

    Hi, we are currently upgrading from 6 to 7.0 and subsequently to 7.5 (TR, new hardware, new domain, new instance).  So far we've staged our W2k3 domain and all the other soon to be ICM servers.
    I'm currently trying to migrate the domain users and it tells me that I need to use the Domain Conversion Tool to go migrate the domain users from 6 to 7. (Staging guide chpter 4)
    I can't find any documentation on the Domain Conversion Tool, when I run the executable I can see the different triggers (below) but that's it.
    I've done an export and gotten a file but what next?
    Do I do a convert now?
    is the convert going to change my production database?
    I'm also reading that the Domain Conversion Tool was replaced by the UMT (for 7.0 to 7.+).
    Or should I now use the UMT and point it to my export file?
    Im afraid to run the convert and and messing up my Rogger sideA database?
    Has anybody use this tool?
    any tips and or documentation is appreciated.  Thanks
    D:\ciscoutils\domainCnvTool>domcvt
    The syntax of this command is:
    DomCvt.exe /DB:dbname /F:filename /M:mode [/OD:old domain name]
              [/ND:new domain name][/P:password]
       /DB:dbname           Specifies the database name to operate on (e.g. cust1_sideA)
       /F:filename          Specifies the full path of the file to import or export to
       /M:mode              Indicates export mode or convert mode
                             E  Export mode
                             C  Convert mode
    The following switches are only needed in Convert Mode:
       /OD:old domain name  Specifies the old domain name to convert from in NetBIOS form (e.g. MyDomain)
       /ND:new domain name  Specifies the new domain name to convert to in NetBIOS form (e.g. MyDomain) or DNS form (e.g. MyDomain.mycompany.com)
       /P:password          Specifies the default password to be set for all the users in the new domain
    Use quotation marks when there are spaces in the file name or password

    Hi,
    From the 7.x(y) Staging Guide: 
    Common Steps Required before Migrating any ICM ComponentOn the Domain Controllers:
    Confirm that Domain Controllers have been upgraded from NT Domain to Windows 2000Active DirectoryOn the CallRouter Server:
     \RouterA\Router\CurrentVersion\Configuration\Global\DBMaintenance.
    Note:
    If moving a CICM with SideA and SideB disable the Configuration changes on bothsides.
    On the Logger server: 
    Copy the Domain Conversion Tool (DomCvt.exe) from the ICM 5.0(0) or ICM 6.0(0) Third-PartyTools CD as applicable (Domain Conversion Utility folder) onto the Logger server.
    Export the ICM user list using the DomCvt tool using the following command:
    domcvt /DB:<instancename>_sideA /F:c:\DomConvert\userlist.txt /M:E.
    And then lower down in the guide:
    On the Logger server:
    Step 18
    Run the Domain Conversion Tool to convert the ICM users exported earlier, using the followingcommand:
    domcvt /DB: <instance_name>_sideA /F:c:\DomConvert\userlist.txt /M:C /OD:<old_domain_netbios_name> /ND: <new_domain_netbios_name>Note: You can use the /p option to create a global password. If you do not use the /p option,the password is reset to null.
    I'm looking to run this myself shortly. The only caveat with this info is that its extracted from the section related to ICM5 and migration from multiple to single forest ... so possibly not the correct info. However, there's not much documentation on this as you've seen!
    Jed

  • Report Conversion Tool  error

    Hi exports
    iam using software 3.1
    Iam facing below issue ,while  converting deski to webi reports
    Note : All my servers are up ..
    Is i need to enable any options in servers
    Thanks,
    Raghunath

    Hi Raghu,
        Try this idea: run it on server. Other user suggest the Windows version as the reason. if does not run, reinstall the Tool, maybe something is corrupted.
    Report Conversion Tool gives Error: Failed on Webintelligence Server
    Regards

  • Cast string to single precision

    Hi,
    I try to write a communication between a PC and a DSP which is
    programmed to
    understand some kind of ModBus. I tried to use MBmaster.vi, a freeware
    of AIRtech in the netherlands.
    I was successfull to 90% after a very short time - I get back a string
    from the DSP which makes sense.
    The only problem is to *convert* the 4Byte=8Hex=32Bits(=IEEE754 single
    precision format) into the LabView single precision number it does
    represent .
    In other programming languages like C I think I could do this easily
    on a very low level procedure or with one of these dangerous casts.
    As a newbie to LabView I could not found neither one VI to do this or
    find out which simple combination of VIs could solve the problems.
    Are there any cracks
    here who know *the* easy solution??
    Thanx & Regards
    Urs Bögli

    "Doug (CapeFl)" wrote in message news:<[email protected]>...
    > Did you check the VI functions under Functions>String>Additional
    > String to Number Functions?
    > There are quite a few for converting to/from Hex, etc. I've used them
    > for concatenating 4-bit strings into an 8-bit string (to get an 8-bit
    > byte/word), also converting to/from Hex using some of the VIs I
    > mentioned.
    > Good Luck, Doug
    Dough,
    as a programmer for twenty years I have some problems to understand the way
    labview does work with types and casts - other languages are much clearer about it
    - or have I not found the ultimative help area yet ???
    May I ask you to send me the VI off list?
    thanks
    Urs

  • DDL Generation/Conversion Tools

    I am looking for a DDL generation tool, preferably command line, that can convert DDL of one RDBMS to another - say DDL of Oracle schema/table to MySQL/SQL Server & vice-versa. I have reviewed Oracle's SQL Developer - its DDL generation is one way MySQL to Oracle, SQL Server to Oracle etc.
    I would prefer a general-purpose DDL conversion tool/utility if one exists! Also, is there a way to use GGs DDLGEN for this ? I have explored this a bit but it seems all conversions are from Tandem DDL to DDL of various RDBMS.
    Thanks,
    Satish

    Satish,
    You can use DDLGEN to perform some basic DDL between systems but you'll likely need to make modifications to the .tpl file. Otherwise you may want to look into some other paid tools on the market.
    Good luck,
    -joe

  • Is there a CSM-to-ACE conversion tool?

    Hi Sir,
    Is there a tool to convert CSM config to ACE equivalent config?
    I have a long CSM config that needs to be migrated to ACE. If there's such a conversion tool, it would be great.
    Thank you.
    B.Rgds,
    Lim TS

    ACE web interface has the tool. Besides you can go to this site
    http://ace-tools.cisco.com/cgi-bin/csm2ace/csm2ace/
    thanks

  • Single precision integer to 8 digit hex string

    I need to convert a single precision integer to a MSB-LSB 8 digit hex string to send to a test machine via RS-232.  So 15 needs to turn into 41700000.  The best I have been able to do is get 15 to turn into 0000000F, which is correct but not in the MSB-LSB format I need.  Any ideas?

    Just typecast the SGL to U32 and format it with %08x.
    Message Edited by altenbach on 05-30-2007 08:49 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    SGL-to-HEXstring.vi ‏8 KB
    SGL-to-HEXstring.png ‏6 KB

  • I am using the dynamic signal analyzer.vi but this vi has the output as single precision. How can I change this to DBL precision?

    I am using the dynamic signal analyzer.vi but this vi has the output as single precision. How can I change this to DBL precision? If I change the representation from single to double in the AI buffer read.vi labview returns ilegal operation and crash. I have labview 5.1 on windows 95 and one AT-MIO16XE50 DAQ board.
    Thanks in advance
    Ricardo.

    Probably by changing the data type that lvdaq.dll expects to write to is causing the crash. I can't test this since I have only 6.1 installed now. In any case, since the daq card is only 16 bits, the single precision is probably adequate for AI Buffer Read. If you do need the greater precision later on, you should be able to change representation in any one of the upper level VIs.

  • Conversion tool question

    Again, I have a question regarding the conversion tool, BIPBatchConversion and it's output.
    In the original report there is a line like this
    Report Year : 2008
    where 'Report Year :' is boilerplate text and 2008 is the selected parameter when the report was run.
    In the converted .rtf file this has been implemented as a two column table like this :
    Column 1 in the table:
    Report Year : &F_year ( all boilerplate, no form fields )
    Column 2 in the table contains a form field with syntax <?P_YEAR?>
    The strange thing is that this form field has the default text, F_year ,which is the same that is used in the boilerplate text in column 1 !
    Will this work ?
    What is the meaning of the boilerplate text &F_year ?
    My expected behaviour would be :
    'Report Year :' as boilerplate text, directly followed by the form field containing the parameter P_Year
    Customer has several hundreds of Oracle Reports which we would like to autoconvert with minimum hands-on.
    If simple things like this is failing, we will not be able to use the conversion tool.....
    I have no access yet to customers database, so I can not verify if the converted report is working.
    Edited by: user792912 on Oct 23, 2009 4:35 AM

    Nonsense. You can use the conversion tool to get the converted rtf files. Touch up work is usually required no matter what.
    To answer your question, you will need to fix the substitution variables that are used as boiler plate text.
    Example - Reports6i bad practice: Personally, it's a sloppy practice to do that since a frame could be used and should be used
    Report Year:  &P_YEAR  <-Will not convert
    Fix in BIP:
    Report Year:  <?.//P_YEAR?>  I believe I answered your question, don't forget to give me the points.

  • Conversion Tool.

    Today I bought a new video camera (Sont Handycam DCR-SR82) to use with FCE4...Unfortunately these cameras encode files to MPEG2 which we all know cannot be used in FCE4. Anybody know of a free format conversion tool or work around that will make my clips usable?

    You can use the free MPEG Streamclip. However for converting MPEG2 file you need also the QuickTime MPEG2 Component not included in FCE; you can buy it at 20$ on the Apple Site.
    Open the MPEG2 file in MPEG Streamclip, then Export to QuickTime (cmd-E - NOT Export to DV!) with Compression: Apple DV-PAL (or Apple DV-DVCPRO/NTSC), Quality: 100%, fps: 25 for PAL or 29,97 for NTSC, Audio: uncompressed, Stereo, 48 KHz.
    With the above settings, when imported to FC, the resulting .mov will not require video nor audio rendering.
    Piero

  • 6506 sup1a-ge2 to sup720 ios (native) config conversion tool

    I am migrating from a sup 1a(hybrid mode) to a sup720 and in a class in December I heard that there was a conversion tool for the cat config to the ios config. If this is true - can you please let me know what it is and where can I get it?
    thanks

    Hi there,
    It's online, you'll need a CCO-login and the link is here:
    http://www.cisco.com/cgi-bin/Support/CatCfgConversion/catcfg_xlat.pl
    Remember to check this link to understand the difference between CatOS and IOS commands:
    http://www.cisco.com/en/US/products/hw/switches/ps700/products_tech_note09186a008010e9d5.shtml
    Did it help?

  • Business Objects Edge XI R2 - Missing Report Conversion Tool

    We have BO Edge XI R2 (SP5) installed, and want to migrate a load of reports from a BO5.4 repository. We have used the Import Wizard to bring objects across, but according to the manual we need to use the Report Conversion Tool to convert them to WEBI report format. The manual seems to say that the Report Conversion Tool should be an option on the Start menu, but it just doesn't appear for me. I have uninstalled the client software from my machine and re-installed it, and there is no option to select to install it. Does anyone know how I can get access to the tool ?

    Hello Bob
    There are three products you actually mention in your post: Crystal Reports, Crystal Reports Server (Business Objects XI R2 server) and Business Objects Enterprise. Crystal Reports and Crystal Reports Server use the same runtime which is available from here:
    [CR XI R2 (SP6) MSM for .NET|https://smpdl.sap-ag.de/~sapidp/012002523100000634042010E/crxir2sp6_net_mm.zip]
    [CR XI R2 (SP6) MSI for .NET|https://smpdl.sap-ag.de/~sapidp/012002523100000633302010E/crxir2sp6_net_si.zip]
    Business Objects Enterprise SDK was always only available from the BOE Install CD and updates were posted to the SAP Market Place (SMP). This is a gated site and login info should have been provided to you on purchase of BOE. I am unable to find the runtime on SMP (it was more than likely removed when support for XI R2 products terminated last year), but I'm sure your account manager should be able to help you out.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Problem when execute report Conversion Tool XI 3.0 on a client

    Hi everyone,
    When I use Report Conversion Tool on a client (not on Webi Server Windows 2003) I have an error (a red cross appears) before the conversion.
    I believe that RCT can not open the document to migrate.
    All it's OK when I use RCT since the Webi Server.
    Any help will be appreciated.
    Thanks

    Hi,
    Thank you for your prompt response.
    I have install all the client tool (even SDK, Query Web Service) except Assitant migration source de données, Gestionnaires Vues d'entreprise et Gestionnaire de traduction.
    I think I have a problem of rights on my Windows 2003 Server because in the log of conversion (C:Documents and SettingsUtilisateurLocal SettingsTempconversionUSER146731693logsD30860242.xml)
    the following lines are written :
    Note that I do the conversion with the Administrator login.

Maybe you are looking for

  • How to call a Https Web service client (partner link)

    Hi, I am trying to call a https web service and having issues with it. I have copied the server certificate into my JDeveloper truststore as well as into OC4J truststore. I have successfully deployed the application but when I initiate the process an

  • Widgets Glitch on ibook g4

    When I use widgets and type something into a field within widgets my keyboard does not function properly after. I would like help with solving this problem.

  • Best way to work on a large project in CS5

    Hello friends, I've recently started editing a feature length film in APP CS5.  I've never worked on a project this large before (around 160 GB).  Since I've been just doing small projects, it hasn't been an issue to have my source footage on my C: d

  • Flash player 11.0 flickers/doesn't draw whole frames

    Hello, I'm currently running Flash Player 11.0.1.152 on Arch Linux 64-bit, with nVidia driver 285.05.09. I'm coming across a lot of Flash videos where terrible flickering occurs. The frame rate is very good but it seems like some of the frames themse

  • Ix4-300d enable gmail

    Hi, I have tried to enable mail notifications in the ix4-300d, but the testmail is never sent. I am using the gmail smtp-server (smtp.gmail.com). How shall I configure the mail settings to support this? Solved! Go to Solution.