Binary to hex convertor

Hello all,
I was searching on the internet an binary to hex convertor in java language, but I was found 0 results.
I want to converting an binary number to hex number, but not binary or hex calculator.
I need a java code for converting binary code into hex code.
For example:
I have got a file with some binary codes and I want to converting it.
For converting the binary code I must type followings:
java <project's name> bynary.txt hex.txt
The binary code has been converted into hex code to hex.txt file.
Please help me.
Thank you!

If you are converting a binary file to a hex file I'd just read in the binary file and write the hex file a nibble at a time matching the 4 bit Strings, prolly best to use a HashMap.
import java.util.*;
public class BinaryToHexConversion { 
     static final HashMap<String, Character > binaryToHexMap = new HashMap<String, Character >();
      * load binaryToHexMap values
     static {
          binaryToHexMap.put( "0000", '0');
          binaryToHexMap.put( "0001", '1');          
          binaryToHexMap.put( "0010", '2');
          binaryToHexMap.put( "0011", '3');          
          binaryToHexMap.put( "0100", '4');
          binaryToHexMap.put( "0101", '5');
          binaryToHexMap.put( "0110", '6');
          binaryToHexMap.put( "0111", '7');
          binaryToHexMap.put( "1000", '8');
          binaryToHexMap.put( "1001", '9');
          binaryToHexMap.put( "1010", 'A');
          binaryToHexMap.put( "1011", 'B');
          binaryToHexMap.put( "1100", 'C');
          binaryToHexMap.put( "1101", 'D');
          binaryToHexMap.put( "1110", 'E');
          binaryToHexMap.put( "1111", 'F');     
     public static char convert( String binaryString ) {
          Character returnChar = binaryToHexMap.get( binaryString );
          if ( returnChar != null ) {
               return returnChar;
          } else {
               throw new IllegalArgumentException( "Method convert requires 4 character binary String to convert binary to hexadecimal" );
}

Similar Messages

  • Help with binary to decimal, binary to hex, and hex to ascii or ascii to hex program

    I decided to do a program that will do binary to decimal, binary to hex, and hex to ascii for a project related to a java programming course, which only needs to perform features from chapters 1-6 and 8 of Tony Gaddis's book. The functions work fine as their own main programs out side of this combined effort, so can anyone help me determine why I get the following 41 errrors saying: class, interface, or enum expected as well as any other errors that may show up afterwards because I'm stumped. My flowcharts, which have to be revised after discovering that my previous function were logically incorrect after running them in their own main are attached below as the spec sheet.
    My code is as follows and I hope you don't mind the commented lines of unused code because I'm not sure where I want things and what I want at the moment:
    import java.util.Scanner;
    import java.io.*;
    import java.lang.*;
    public class BintoDectoHextoAscii
       public static void main(String[] args)throws IOException
          Scanner input = new Scanner(System.in);
          System.out.println("Enter a binary number: ");
          String binary = input.nextLine(); // store input from user
         if (binary == input.nextLine())
          //int i= Integer.parseInt(hex,2);
          //String hexString = Integer.toHexString(i);
          //System.out.println("Hexa decimal: " + hexString);
          //int finaldecimalvalue = binaryToDecimal(hexString);
          int finaldecimalvalue = binaryToDecimal(hexString);
         if (binary != input.nextLine())
          String hexInput; // The variable Bin Input declared as the datatype int to store the Binary value  
          // Create a Scanner object for keyboard input.
          //Scanner keyboard = new Scanner(System.in);
          // Get the number of binary files.
          System.out.print("Enter the Hex value: ");
          hexInput = keyboard.nextLine();
          System.out.println("Original String: "+ hexInput);
          //String hexEquivalent = asciiToHex(demoString);
          String hexEquivalent = asciiToHex(hexInput);
          //Hex value of original String
          System.out.println("Hex String: "+ hexEquivalent);
          String asciiEquivalent = hexToASCII(hexEquivalent);
          //ASCII value obtained from Hex value
          System.out.println("Ascii String: "+ asciiEquivalent);String finalhexOutput = HextoAsciiConverter(hexEquivalent);
         if (binary != input.nextLine() && hexInput != keyboard.nextLine())
             BufferedReader binInput = new BufferedReader(new InputStreamReader(System.in));
             System.out.println("Enter the Binary number:");
             String hex = binInput.readLine();
             //String finaldecimalvalue = binaryToDecimal(decimal);
             //long finalhexvalue = BinaryToHexadecimal(num);
             long finalhexvalue = BinaryToHexadecimal();
       public static String BinaryToHexadecimal(String hex)
          //public static void main(String[] args)throws IOException
             //BufferedReader bf= new BufferedReader(new InputStreamReader(System.in));
             //System.out.println("Enter the Binary number:");
             //String hex = binInput.readLine();
             long num = Long.parseLong(hex);
             long rem;
             while(num > 0)
             rem = num % 10;
             num = num / 10;
             if(rem != 0 && rem != 1)
             System.out.println("This is not a binary number.");
             System.out.println("Please try once again.");
             System.exit(0);
             int i= Integer.parseInt(hex,2);
             String hexString = Integer.toHexString(i);
             System.out.println("Hexa decimal: " + hexString);
          return num.tolong();
      //int i= Integer.parseInt(hex,2);
      //String hexString = Integer.toHexString(i);
      //System.out.println("Hexa decimal: " + hexString);
    //} // end BintoDectoHextoAsciil
       //public static String HexAsciiConverter(String hextInput)
          // Get the number of binary files.
          //System.out.print("Enter the Hex value: ");
          //hexInput = keyboard.nextLine();
          //System.out.println("Original String: "+ hexInput);
          //String hexEquivalent = asciiToHex(demoString);
          //String hexEquivalent = asciiToHex(hexInput);
          //Hex value of original String
          //System.out.println("Hex String: "+ hexEquivalent);
          //String asciiEquivalent = hexToASCII(hexEquivalent);
          //ASCII value obtained from Hex value
          //System.out.println("Ascii String: "+ asciiEquivalent);
       //} // End function  
       private static String asciiToHex(String asciiValue)
          char[] chars = asciiValue.toCharArray();
          StringBuffer hex = new StringBuffer();
          for (int i = 0; i < chars.length; i++)
             hex.append(Integer.toHexString((int) chars[i]));
          return hex.toString();
       private static String hexToASCII(String hexValue)
          StringBuilder output = new StringBuilder("");
          for (int i = 0; i < hexValue.length(); i += 2)
             String str = hexValue.substring(i, i + 2);
             output.append((char) Integer.parseInt(str, 16));
          return output.toString();
       public static String binaryToDecimal(String binary)
            //Scanner input = new Scanner(System.in);
            //System.out.println("Enter a binary number: ");
            //String binary = input.nextLine(); // store input from user
            int[] powers = new int[16]; // contains powers of 2
            int powersIndex = 0; // keep track of the index
            int decimal = 0; // will contain decimals
            boolean isCorrect = true; // flag if incorrect input
           // populate the powers array with powers of 2
            for(int i = 0; i < powers.length; i++)
                powers[i] = (int) Math.pow(2, i);
            for(int i = binary.length() - 1; i >= 0; i--)
                // if 1 add to decimal to calculate
                if(binary.charAt(i) == '1')
                    decimal = decimal + powers[powersIndex]; // calc the decimal
                else if(binary.charAt(i) != '0' & binary.charAt(i) != '1')
                    isCorrect = false; // flag the wrong input
                    break; // break from loop due to wrong input
                } // end else if
                // keeps track of which power we are on
                powersIndex++; // counts from zero up to combat the loop counting down to zero
            } // end for
            if(isCorrect) // print decimal output
                System.out.println(binary + " converted to base 10 is: " + decimal);
            else // print incorrect input message
                System.out.println("Wrong input! It is binary... 0 and 1's like.....!");
            return decimal.toint();
       } // end function
    The errors are as follows:
    ----jGRASP exec: javac BintoDectoHextoAscii.java
    BintoDectoHextoAscii.java:65: error: class, interface, or enum expected
       public static String BinaryToHexadecimal(String hex)
                     ^
    BintoDectoHextoAscii.java:73: error: class, interface, or enum expected
             long rem;
             ^
    BintoDectoHextoAscii.java:74: error: class, interface, or enum expected
             while(num > 0)
             ^
    BintoDectoHextoAscii.java:77: error: class, interface, or enum expected
             num = num / 10;
             ^
    BintoDectoHextoAscii.java:78: error: class, interface, or enum expected
             if(rem != 0 && rem != 1)
             ^
    BintoDectoHextoAscii.java:81: error: class, interface, or enum expected
             System.out.println("Please try once again.");
             ^
    BintoDectoHextoAscii.java:83: error: class, interface, or enum expected
             System.exit(0);
             ^
    BintoDectoHextoAscii.java:84: error: class, interface, or enum expected
             ^
    BintoDectoHextoAscii.java:87: error: class, interface, or enum expected
             String hexString = Integer.toHexString(i);
             ^
    BintoDectoHextoAscii.java:88: error: class, interface, or enum expected
             System.out.println("Hexa decimal: " + hexString);
             ^
    BintoDectoHextoAscii.java:90: error: class, interface, or enum expected
          return num.tolong();
          ^
    BintoDectoHextoAscii.java:91: error: class, interface, or enum expected
       ^
    BintoDectoHextoAscii.java:124: error: class, interface, or enum expected
          StringBuffer hex = new StringBuffer();
          ^
    BintoDectoHextoAscii.java:125: error: class, interface, or enum expected
          for (int i = 0; i < chars.length; i++)
          ^
    BintoDectoHextoAscii.java:125: error: class, interface, or enum expected
          for (int i = 0; i < chars.length; i++)
                          ^
    BintoDectoHextoAscii.java:125: error: class, interface, or enum expected
          for (int i = 0; i < chars.length; i++)
                                            ^
    BintoDectoHextoAscii.java:128: error: class, interface, or enum expected
          ^
    BintoDectoHextoAscii.java:130: error: class, interface, or enum expected
       ^
    BintoDectoHextoAscii.java:135: error: class, interface, or enum expected
          for (int i = 0; i < hexValue.length(); i += 2)
          ^
    BintoDectoHextoAscii.java:135: error: class, interface, or enum expected
          for (int i = 0; i < hexValue.length(); i += 2)
                          ^
    BintoDectoHextoAscii.java:135: error: class, interface, or enum expected
          for (int i = 0; i < hexValue.length(); i += 2)
                                                 ^
    BintoDectoHextoAscii.java:138: error: class, interface, or enum expected
             output.append((char) Integer.parseInt(str, 16));
             ^
    BintoDectoHextoAscii.java:139: error: class, interface, or enum expected
          ^
    BintoDectoHextoAscii.java:141: error: class, interface, or enum expected
       ^
    BintoDectoHextoAscii.java:144: error: class, interface, or enum expected
       public static String binaryToDecimal(String binary)
                     ^
    BintoDectoHextoAscii.java:150: error: class, interface, or enum expected
            int powersIndex = 0; // keep track of the index
            ^
    BintoDectoHextoAscii.java:151: error: class, interface, or enum expected
            int decimal = 0; // will contain decimals
            ^
    BintoDectoHextoAscii.java:152: error: class, interface, or enum expected
            boolean isCorrect = true; // flag if incorrect input
            ^
    BintoDectoHextoAscii.java:155: error: class, interface, or enum expected
            for(int i = 0; i < powers.length; i++)
            ^
    BintoDectoHextoAscii.java:155: error: class, interface, or enum expected
            for(int i = 0; i < powers.length; i++)
                           ^
    BintoDectoHextoAscii.java:155: error: class, interface, or enum expected
            for(int i = 0; i < powers.length; i++)
                                              ^
    BintoDectoHextoAscii.java:159: error: class, interface, or enum expected
            for(int i = binary.length() - 1; i >= 0; i--)
            ^
    BintoDectoHextoAscii.java:159: error: class, interface, or enum expected
            for(int i = binary.length() - 1; i >= 0; i--)
                                             ^
    BintoDectoHextoAscii.java:159: error: class, interface, or enum expected
            for(int i = binary.length() - 1; i >= 0; i--)
                                                     ^
    BintoDectoHextoAscii.java:166: error: class, interface, or enum expected
                else if(binary.charAt(i) != '0' & binary.charAt(i) != '1')
                ^
    BintoDectoHextoAscii.java:169: error: class, interface, or enum expected
                    break; // break from loop due to wrong input
                    ^
    BintoDectoHextoAscii.java:170: error: class, interface, or enum expected
                } // end else if
                ^
    BintoDectoHextoAscii.java:174: error: class, interface, or enum expected
            } // end for
            ^
    BintoDectoHextoAscii.java:180: error: class, interface, or enum expected
            else // print incorrect input message
            ^
    BintoDectoHextoAscii.java:185: error: class, interface, or enum expected
            return decimal.toint();
            ^
    BintoDectoHextoAscii.java:186: error: class, interface, or enum expected
       } // end function
       ^
    41 errors
    ----jGRASP wedge2: exit code for process is 1.
    ----jGRASP: operation complete.

    so can anyone help me determine why I get the following 41 errrors saying: class, interface, or enum expected as well as any other errors that may show up afterwards because I'm stumped.
    Yes - YOU CAN!
    My code is as follows and I hope you don't mind the commented lines of unused code because I'm not sure where I want things and what I want at the moment:
    Excellent! Commenting out code is EXACTLY how you troubleshoot problems like yours.
    Comment out sections of code until the problem goes away. Then start adding back ONE SECTION of code at a time until the problem occurs. When it does you have just FOUND the problem.
    If you do that you wind up with code that looks like this:
    import java.util.Scanner;
    import java.io.*;
    import java.lang.*;
    public class BintoDectoHextoAscii  {
          public static void main(String[] args)throws IOException      {
             Scanner input = new Scanner(System.in);
             System.out.println("Enter a binary number: ");
             String binary = input.nextLine(); // store input from user
                  public static String BinaryToHexadecimal(String hex)     {     } // end function        
    Notice ANYTHING UNUSUAL?
    You have a complete CLASS definition followed by a method definition.
    Methods have to be INSIDE the class - you can NOT define methods on their own.
    Write modular code.
    Write EMPTY methods - just the method signature and maybe a RETURN NULL if you need to return something.
    Then add calls to those empty methods.
    When everything compiles and runs find you can start adding code to the methods ONE METHOD AT A TIME.
    Test compile and run after you add the code for each method.

  • Find logo from binary or hex string

    HI All ,
    I have file 2 strings one with HEX and one binary this to string is contain the value
    for attachment (logo) ,which FM or method i should use to see the logo, the picture itself  ?
    Regards
    James
    Edited by: James Herb on Feb 28, 2010 5:32 PM

    Hi James,
    This methods and function modules should work for you.
          CALL METHOD cl_binary_relation=>read_links_of_binrel
            EXPORTING
              is_object   = is_object
              ip_relation = 'ATTA'
            IMPORTING
              et_links    = et_links.
        catch
        cx_obl_parameter_error into icx_obl_parameter_error.
          exception_string = icx_obl_parameter_error->get_longtext( ).
        catch cx_obl_internal_error into icx_obl_internal_error .
          exception_string = icx_obl_internal_error->get_longtext( ).
        catch
        cx_obl_model_error into icx_obl_model_error.
          exception_string = icx_obl_model_error->get_longtext( ).
      ENDTRY.
      SORT et_links BY utctime.
      LOOP AT et_links INTO et_links_s.
        v_tbx       = sy-tabix.
        document_id = et_links_s-instid_b.
        CALL FUNCTION 'SO_DOCUMENT_READ_API1'
          EXPORTING
            DOCUMENT_ID                      = document_id
          FILTER                           = 'X '
         IMPORTING
            DOCUMENT_DATA                    = document_data
         TABLES
            OBJECT_HEADER                    = object_header
            OBJECT_CONTENT                   = object_content
          OBJECT_PARA                      =
          OBJECT_PARB                      =
          ATTACHMENT_LIST                  =
          RECEIVER_LIST                    =
          CONTENTS_HEX                     =
         EXCEPTIONS
            DOCUMENT_ID_NOT_EXIST            = 1
            OPERATION_NO_AUTHORIZATION       = 2
            X_ERROR                          = 3
            OTHERS                           = 4.
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    ENDLOOP.

  • Digital waveform graph switch between hex and binary possible?

    hello,
    is there a way to have a digital waveform graph switch back and forth from binary to hex data display?
    Thank you

    ok, thanks Nathan
    Attachments:
    Mixed Signal Graph1.vi ‏26 KB

  • Hex to Binary

    Hi,
    Enclosed is a very good program used to convert Binary to Decimal (Ascii).  However I can someone help me convert Hex to binary or Hex to decimal?
    Attachments:
    Read File II.vi ‏84 KB

    PReitano wrote:
    Enclosed is a very good program used to convert Binary to Decimal (Ascii).  However I can someone help me convert Hex to binary or Hex to decimal?
    The program you attached seems to convert a file containing hexadecimal formatted ASCII text to SGL, not "Binary to Decimal (Ascii)" as you claim.
    Please clarify your needs. If the output is an integer data type, you can just set the display to either hex, binary, or decimal as needed. If you need binary or decimal formatted text of your data, use a formatting operation with the desired format.
    LabVIEW Champion . Do more with less code and in less time .

  • Binary/hex to ASCII character

    I am trying to send 8bits to a microcontroller, who understands ASCII characters. I am having trouble finding out how to convert my 8bits, or hex values, to the corresponding ASCII character....
    i.e. 01010101 binary = 55 hex = U char
    See the attached file...
    Attachments:
    Bin2Hex.vi ‏64 KB

    Graz, sorry i posted in the wrong forum at first, but thanks for replying.
    I am able to check what the microcontroller recieves, by activating 8 LED's corresponding to the byte. When using the attached file: Basic Write 1, wverything works great. The LED's will represent the byte exactly, for example 01010101 when sending the string "U" and so on..
    For my project i need to be able to specify 8 bits (or switches) individually, and send this to the microcontroller, in the manner of the attached file Bin2Hex...
    I basically just need to combine these two in the correct manner... something im yet to achieve..
    Attachments:
    Basic Write 1.vi ‏40 KB
    Bin2Hex.vi ‏56 KB

  • Module to replace binay 0 (00 in hex) with space ?

    Hello everybody,
    I have a scenario JMS-MQS -> XI -> RFC
    In the sender, the message coming from MQS (plaintext) is transfrom to an XML message by the module     localejbs/AF_Modules/MessageTransformBean . There is no problem at this level but the following mapping doesn't work always because sometimes we receive some binary 0 (hex 00) in the MQS message .
    Can somebody tell me if there is a module in  which can replace all these binary 0 (hex 00) by space?
    Thank in advance for your collaboration ?
    Kind Regards.
    E. Koralewski

    I made a module which replace that Hex '00' by hex '20' and that solved my problem.
    Best Regards.
    E. Koralewski

  • How to Convert Binary Data in Binary File

    hi,
    my telecom client puts a binary file which is asn.1 encoded with BER.
    how to handle binary data in java.
    how to convert binary to hexa to ascii format
    how to convert binary to octet to ascii format
    please help me in this.
    regards,
    s.mohamed asif

    You don't need to convert the data.
    Only you can do is print it in that formats, like it:
    public static String byteArrayToHex(byte[] b) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < b.length; i++)
             sb.append(Integer.toHexString(b&255) + " ");
    return sb.toString();
    take a look at this
    http://java.sun.com/docs/books/tutorial/essential/io/

  • Is BPEL supports writing character data into binary format  ?

    Hello,
    I can write a BLOB data from DB to a file using Opaque feature in File Adapter.
    But is it possible to write Character data into Binary or Hex Format either by using base64Binary or Hex or bytes formats supported in XML?
    Thanks

    I am looking WHOLE FORMA DATA in either XSTRING or BINARY FORMAT or any other format, except STRING format.
    I gave COUNTRY as an example, but am looking the HWOLE form AS IS
    Any help pls.
    Thank you   

  • Trying to decode a binary...

    So, at work we have this software that reads data from a machine and stores it in a proprietary binary format. There is a separate program that translates that binary into a CSV. My goal is to write my own program that can read the binary and make a CSV out of it, but I just don't know what to do with this thing. I did a text dump of the binary in hex and I can recognize the company's name, and then the column titles from the CSV, but after that it's a mess. There is very little pattern, and the hex->ASCII is totally random symbols with no meaning I can find.
    Has any one done something like this before? Any tips? I've googled, but without much luck.

    linas wrote:
    There are more issues with that sample:
    You place three float at the struct (~12 bytes), plus 472 bytes. But then you read 472 byte blocks.
    You want to read the file in blocks of the same size as DATA_ROW, so I would directly use sizeof(DATA_ROW).
    If you know the block size but not all the fields (eg. you ltraced the program), you can add padding chars in DATA_ROW so that it sums up to the total size (if they are 472-byte blocks, you would pad with 460 bytes), or make it an union with a 472 bytes array alternative to the known fields.
    You might also have padding issues from the compiler. Consider using __attribute__((packed))
    You perform the comparison with a single equal (although in this case it's not too dangerous, since it will refuse to compile).
    Plus, it might return a different number without it being an error.
    Reading binary files is not hard. Figuring out what fields are there is. Also, take into account endianess when reading at yet-unknown bytes.
    Since we're being picky you should probably avoid trying to process data with a comment as well
    The padding was done for simplicity, the whole record is 472 bytes so if your switching things around alot its easier to make your buffer too big and not use it all then to recalculate it every time you change something.
    Endians is a good point. I think it would be safe to assume (at least to start with) that its not an issue as the software is written for windows and probably adheres to those standards.
    Cheers

  • Swap binary data endianess

    Hello all,
    I have a preconfigured FPGA, which is outputting 8bit unsigned binary data in packets (which are 90bytes long). I'm reading this data into LabView using VISA (over RS232). The VISA-Read is converting the binary to hex (as I expect), but it's doing it with the wrong endianess, so the hex is meaningless (i.e. I get a 2 when I expect 64 etc).
    I can see may ways (both through inbuilt functions and solutions suggested here) for correcting endianess of multiple bytes ("Swap Bytes" for example), but none for changing this internal to a single byte, nor can I see a means of configuring VISA in this respect. Am I missing something obvious? All suggestions welcome, thank you!

    I never heard of a format with reversed bits. Are you sure that's what it actually is?
    Can you attach a VI containing a typical 90byte raw data set and the desired result?
    I would go with the Lookup table as in Darin's top example. If you disable debugging, it will get folded into a constant at compile time and is thus extremely efficient at runtime. (or just make it into a constant manually as Darin did).
    (Darin, that second algorithm is weird. These guys have way too much time on their hand: Inflate each byte 8x to U64 just to do some obscure binary operations then shrink it back later... )
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    ReverseBitsLUT.png ‏5 KB

  • Printing hexadecimal/binary numbers

    I'm trying to print the hexadecimal and binary representation of the following:
    public static void main(String[] args) {
    int t = 0x1;
    t = t<<30;
    System.out.println(0xt);
    I tried to print the hexadecimal representation of t using the above, but it didn't work (I know t isn't a hex number, but I want the contents of variable t printed in hex). How can I accomplish this?
    Thanks ahead.

    Use the Integer class. It has methods for binary and hex:
    Integer.toBinaryString(int i);
    Integer.toHexString(int i);

  • How can I convert an image created in Photoshop into a format that Java's ImageIO library will take?

    Hi all,
    I've been trying to write an image resize tool to use the Lancoz resample algorithm to resize images to a high standard in Java.  The library with the algorithm/filter in it is mortennobel's image scaling library and it takes a buffered image as an input and returns the resized image as desired.  However the trouble I’m having is that the ImageIO library in Java, a standard library, which converts images given to its read method to buffered images doesn't accept certain images created in Photoshop and so it throws an exception.  My library needs to be fully automated to process possible thousands of images at a time and so manually converting them by resaving them as JPEG's is really feasibly.  Is there some way I can convert these images from Adobes Exif format to standard JFIF format?  I've tried simple inserting the APP0 marker from a JFIF image in-between the SOI and APP1 marker but the ImageIO library still failed.
    The above image is a screenshot of the binary in hex of one of the images that cause an Invalid Format exception when passed to ImageIO.
    Any help you could offer me with this would be much appreciated.
    Kind regards and thank you,
    Alexei Blue
    Science Warehouse.
    NB: I previously posted this post in Developers but was told to post it in a Photoshop forum so apologies if this is the incorrect formum

    The image scaling library does have a BiCubicFilter in it so I'll experiment around with them and see what happens.  As for the imageIO library I think it accepts Exif image types, but still for some reason it just doesn't like Adobe Photoshop types.  Maybe its the colour map it doesn't like I just can't seem to work out what's wrong which is slightly frustrating but looking round to see if I can find an answer

  • How does CRC 16 with lookup table work?

    I have been try to get CRC16 with a lookup table to work but it does not match the CRC for a device I am trying to simulate.  I have attached the code any help would be great.
    Attachments:
    Binary to Hex String.vi ‏37 KB

    You can't just say you need a CRC-16.  There are way too many parameters involved: Polynomial, Initial CRC, Data Inversion.
    When it comes to a CRC with a lookup table, it uses precalculated results based on a specific CRC implementation.  If you don't know which implementation it uses, it isn't really usable.
    What instrument are you trying to simulate?  What is the exact CRC implementation does it use?
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Newbie: Earth Centered Earth Fixed - Lat/Long Conversion, can it be done w/ Spatial?

    This is an information request from a complete coordinate systems newbie:
    1. Does Oracle Spatial in 9.0.1 have an entry in MDSYS.CS_SRS that
    corresponds to the coordinate system commonly known as "Earth Centered, Earth
    Fixed" - where would I look (besides the table itself - I already tried that
    with the 8.1.7 EE to no avail - it may be because I don't know enough about how
    coordinate systems are referenced (the common nomenclature used) and just
    didn't recognize it when I saw it.)
    2. Are there any existing pl/sql snippets of code that can handle coordinate
    conversions between ECEF-Lat/Long, geodetic degrees-decimal degrees? (If yes,
    where should I go to look for them? By the way, please, please say yes, there
    are many such packages just like there are for unit conversions (like binary to
    hex).)
    3. Where should I look to get information on a product called Map Viewer which
    was mentioned in the latest edition of Oracle Magazine (May/June 2002, p.25 -
    it was said to be a part of the 9iAS suite of products - I looked all over the
    documentation but didn't find any mention of it.)
    Thank you very much for your time and attention!
    Julien

    This is an information request from a complete coordinate systems newbie:
    1. Does Oracle Spatial in 9.0.1 have an entry in MDSYS.CS_SRS that
    corresponds to the coordinate system commonly known as "Earth Centered, Earth
    Fixed" - where would I look (besides the table itself - I already tried that
    with the 8.1.7 EE to no avail - it may be because I don't know enough about how
    coordinate systems are referenced (the common nomenclature used) and just
    didn't recognize it when I saw it.)
    2. Are there any existing pl/sql snippets of code that can handle coordinate
    conversions between ECEF-Lat/Long, geodetic degrees-decimal degrees? (If yes,
    where should I go to look for them? By the way, please, please say yes, there
    are many such packages just like there are for unit conversions (like binary to
    hex).)You can get the proper params from the EPSG <http://www.epsg.org>,
    I recall seeing some coord conversion samples in the tutorials/sample code - look in the OTN library
    MArk

Maybe you are looking for

  • BOE XI 3.1 Mysql database connection jar

    Hi All, I am new learner for BOE.I installed Business Object Enterpraise 12.0. I have created the report WebI rich client and saved in local path, and also some value insert into mysql database table. I need to know how its stored into mysql database

  • LOST ALL DATA ON MY COMPUTER AFTER UPGRADE TO 7.0

    Hi, I just wiped out my hard drive during my upgrade to itunes 7.0... I could be mistaken, not quite sure, but here's what I did just prior to wiping out all of my .mp3 files and My Documents for the main user profile etc. etc. (photos, ramblings in

  • Why did my phone freeze up during update

    why did my IPhone freeze up during current update?

  • Internet Browser Issues

    The issue is......it sucks. Can we download a different mobile browser? If so, how do we unzip it if it's a zip file, how do we install it and get it up and running? I can't watch videos or listen to music with this crappy browser and I can't log int

  • Scrolling Trackpad

    I have been surfing Apple.com and on the new Ibooks it looks like they have a scrolling trackpad where you would use two fingers vertically and horizontally to scroll up and down and side to side. I brought my Ibook, about two years ago. Do I have th