Hex to ascii

Now if i convert hex to ASCII and then back to HEX will the data be same.
youll say yes.I know.this holds good if the data is char or string
my question is what if double,int,float are converted to hex format and then converted to ASCII format and then back to hex format.
will the data be same.HELP
kudos welcome
Solved!
Go to Solution.

Please explain what you mean, because there are many ways to go from numeric to string.
The terms HEX and ASCII have no meaning unless you explain exactly what you are trying to do.
If you take a numeric (DBL, I32, U8, CXT, etc), you can represent it as a string using typecast or flatten to string, and the information will be retained bit by bit. If you later unflatten or typecast it back, nothing is lost.
Here, the resulting string is typically to readable, unless the string is displayed in hex format.
If you talk about formatting, you might lose a lot of information irreversibly. You can only format integers to hex format. If you format a DBL to a decimal string representation, you need to ensure that you show enough decimal digits. Even if you do, there will be small differences due to the inability to fully represent certain fractions in the other numeric system (binary vs. decimal). A formatted string is typically readable directly.
Please provide more information!
LabVIEW Champion . Do more with less code and in less time .

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.

  • Convert hexa to ascii

    Hi,
    i converted this trame "444C4D535F436F6D6D616E6420313520C101C10046000060030AFF040016000A" to ASCII but i can't
     found the right conversion in which i must found a special caracter like Â,Â,¬,...
    What is the best way to convert a hex to ascii?
    Thx for your help. 

    ASCII encodes 128 well-defined characters in 7 bit integers, see here, the Angstrom symbol and many other symbols do not belong to this code...
    Also, this is a forum about CVI, not about learning coding in C, so you should add some question specific to CVI
    Searching for strtol may be rewarding...

  • 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

  • Convert Hex to ASCII

    Is there an easy way to convert a HEX file format or string to ASCII format? It's easy to convert ASCII to HEX using using "toHexString" but how do you convert HEX back to ASCII?

    Integer.parseInt(hexString, 16);

  • Conversion HEXA vers ASCII

    Bonjour,
    Je n'ai trouvé aucun outil Labview ni aucun post traitant de ce problème:
    Convertir du ASCII en hexa n'est pas un problème, mais je ne parviens pas à faire l'inverse.
    J'ai par exemple une constante chaîne de valeur 3C
    Je souhaite la traiter pour obtenir une variable chaîne de valeur < qui est son equivalent en ASCII
    Mon VI ne se résume bien évidemment pas à cela mais le principe sur lequel je bloque est rigoureusement celui ci.
    Les valeur que je suis susceptible de convertir sont comprises entre 30 et 3F.
    Je peux traiter ceci cas par cas mais ça me paraît inutilement lourd.
    Y a-t-il un outil qui m'aurait echappé ?
    Une méthode particulière que je ne connais pas ?
    Merci d'avance

    logique que tu ai 030D, tu converti une tableau d'octet, dois je te rappeler qu'un octet prend toujours 2 digits en Hexa, Puisqu’un digit par quartet.
    c'est a toi d'extraire les données que tu veux (1quartet) de chaque octet, et de les lier 2 à 2 pour en fair des octets et ainsi pouvoir les lire via la chaine.
    je rajouterais que labview et un peu lourd pour ce genre de traitement si facilement faisable en C.
    mais je te l'ai quand meme fais (une bonne demi-heure de perdue!)
    t'aurais pu chercher quand meme
    je crois que tu vas devoir me mettre 5 etoiles, car la je bosse pour toi.
    mobyJ
    Message Edité par MobyJ le 04-25-2007 04:29 PM
    Attachments:
    Forums.JPG ‏43 KB

  • Conversion - ASCII (Alphabet) to Hexa  and Hexa to ASCII (Alphabet)

    Hi Guys,
    Can you please give me the code to change ALPHABET  to HEXA  and HEXA to ALPHABET in UNICODE system.
    1. I want to convert alphabet 'A' to Hexa.
    2. Convert Hexa to back in Alphabet (ASCI).
    Thanks,
    mini

    No Response.

  • Re: conversion of hexa digit to ASCII format

    Hi all,
    Is it possible to convert hexa digit into ASCII format .
    Regards,
    Alex

    This will work:
    data: hex type x VALUE '20',    "for space character
          ascii type i.
    ascii = hex.
    write: / 'Hex:' x, 'Ascii: ' ascii.

  • Hex code to ASCII

    Hey all,
    i'm programming a web application to take in an ASCII Art from a text field in a web page and store it in an sql database so that the application displays all
    the arts in another web page.
    however whenever someone types in: {
    it gets converted to %7b...
    thats not a big deal but when the other web page displays the collection of ascii arts it displays %7b instead of {.
    so all i wanna do is to convert the %7b to { before displaying it..
    kindly help..
    i wanna make a procedure which takes in something like: Hello%7bJava%7b!
    and converts it to: Hello{Java}!
    Ps. it should work for all hex codes and not only for %7b
    please not: i want to convert only hex code to ascii and not disturb any existing ascii..
    i.e in Hello%7bJava%7b!
    hello and java must be unaffected while %7b should be converted to {
    in other words i wanna convert only hex to ascii and not affect ascii
    Edited by: 992452 on Apr 1, 2013 11:33 PM

    however whenever someone types in: {
    it gets converted to %7b...It gets converted to that by what? Your Java code? Java JDK classes? SQL?

  • Concatenate hex string with ASCII string

    Hello,
    I'm new to LabView and I'm building an application that speaks to a camera. I'm stuck at something that seems quite basic: I need to concatenate a constant string of hex values (0002 040D ...) with an ASCII string of hex characters (00D0A10F, for example), that comes out of a "Number to Hex string" block. The output should be a string of hex values (0002 040D 00D0A10F) and go to the camera, but the concatenate block turns the ASCII string into hex display too, so that every character is converted to two hex symbols....
    I found a very old post where someone claims they found a solution; unfortunately, it's not posted...
    Does someone have an idea what do to do?
    Thanks a lot!
    Michal
    Solved!
    Go to Solution.

    Hi,
    Give this a try - it converts an ASCII string of hex characters into the ascii characters.
    So, if you view the output as hex, it should concatenate properly with your other data.
    Dan
    Dan
    CLD
    Attachments:
    hex to ascii.vi ‏8 KB

  • Query regarding hex format in labview

    hello,
    I am getting hex data in labview in the format xxxx xxxx xxxx xxxx and i am trying to convert it into number format..so is this hex format valid or do i need to remove the spaces between them before conversion to a number?..any help would be appreciated...
    -innovator81

    Innovator,
    This can go on forever unless you are more specific (see also your other thread).
    You need to distiguish what you see and what the underlying data is.
    If your string display is set to HEX display, you don't have any spaces and each pair of the letters 00-FF represent one byte in your raw string. LabVIEW displays it strucured with spaces to help the eyes, but your data does NOT contain any spaces. This is a purely cosmetic property of the text indicator if set to HEX display.
    If your string display is set to normal and you see data in the form XXXX XXXX XXXX ..., you real data is a humanly readable hex formatted ASCII string.
    You need to understand the difference between these two cases!
    LabVIEW Champion . Do more with less code and in less time .

  • Retrieve the character from hex code

    I want to write the hex code / ASCII code of the English alphabets ( A - Z and a - z ) in a file and again want to read those codes (either ASCII or Hex code) from the file to retrieve the characters from them. How it is possible?
    For example, ASCII code of 'A' is 65 and hex code is 41.
    ASCII code of 'z' is 122 and hex code is 7A.
    Avijit

    Forgot that you need to convert them back:
            Character c = new Character('A');
            System.out.println("char : "+c);
            int ascii = (int) c.charValue();
            System.out.println("ascii: "+ascii+" => "+(char) ascii);
            String hex = Integer.toHexString(ascii);
            System.out.println("hex  : "+hex +" => "+(char) Integer.parseInt(hex, 16));

  • Unable to communicat​e with serial device using hex

    Hi... I have two instruments, both manufactured by the same company (Inficon), both that provide the same basic function which is rate control of vapor deposition...  Both instruments use RS-232 serial communication (baud rate of 19,200, 8 data bits, 1 stop bit, no parity, no flow control).  The only fundamental difference between the two instruments is that the instrument I will call #1 communicates serially using simple ASCII text while the second instrument (#2) communicates using HEX numbers...  Using VISA serial write and read, I have for a long time been successfully communicating with instrument #1...  I send it (serial write) a certain ASCII text command and the instrument responds with a message I successfully read back (serial read)...  That works fine...  Now I have a need to do the same "write a command and read a response" with instrument #2... I'm working with an engineer at the instrument company who has supplied me with the precise HEX messages I need to send, messages he has tested on an identical instrument #2 at his factory but so far, what works for him does not work for me...  I write the HEX string.  I get no errors but also I get NO BYTES available to read at the serial port...  Note, he is NOT using LabVIEW at the factory but is instead using a proprietary serial communication executable the factory uses internally...  He and I have resorted to having me try the simplest HELLO command in HEX that is, in fact, exactly the following
    0200480149  <--- in HEX (first two bytes are Length of command with LSB first, MSB second, the next two bytes are the command itself, in this case H1 (HEX for ASCII "H" is 0x48 and this company then uses 0x01 for 1 rather than the actual HEX for ASCII "1" which would be 0x31. Then the last byte is a checksum which is simply the HEX add of the two command bytes, 0x48 + 0x01 = 0x49...
    The bottom line I am confident the above 0200480149 (HEX) would work if I was sending it correctly but somehow I am not...  
    It's the weekend right now and I've been reading NI support posts here and I already have a couple of ideas that I intend to try on Monday...  One is I will try HyperTerminal to see I can communicate that way...  Second, the code I am using is ALMOST identical to the very basic Serial Write/Read code that can be found at (this is being done in LabViEW 7.1)
    C:\Program Files\National Instruments\LabVIEW 7.1\examples\instr\smplserl.llb\Basic Serial Write and Read.vi 
    But the ALMOST might be important...  I just noticed that I "Enable Termination Character" set to TRUE (default).  That may be causing my problem so the first thing next week I will set that to FALSE and see if my problem goes away...  But I'm trying to get a jump start on this problem (I am under time pressure to get this working) so I thought I would ask for your help...
    I also am not sure how to set up the string control that is inputting this HEX input message...  I have set it as "Normal" and also as "HEX display"...  But either way I set it, I still get "0 bytes at port" when I get to the READ portion of the code so neither "Normal" nor "HEX display" is working for me... 
    So other than trying HyperTerminal and also trying to set the "Enable Termination Character" to FALSE, can anyone suggest what I might be doing wrong???  I am pretty sure it is a formatting issue (such as sending that termination character) and I need to get it figured out soon... Any other ideas???  Any help would be much appreciated...  thanks.... bob...

    Hi...  Thanks for the response...  Find the very simple code I am using attached...  Do note that the string indicator out of the VISA read does open up with default values of 0D0A (CR LF)...  I didn't put those in and I've left them there to show what the defaults were when this code was first saved, just in case you think those values being there matter...  ??  Anyway, again, the code is attached...  Note also I have left the code with its "Enable Termination Char" set to ON (default) in the Configure VISA serial subvi.  I am not at work yet and will set that to FALSE later but you've more or less convinced me that is not going to solve my problem as that is tied to terminating the READ and does not impact the Serial WRITE...  And I appreciated the input on Portmon...  I downloaded it and will give it a try when I get to work which will be soon...  But I wanted to attach the code as you requested...  Holler back if you see anything that might help me with my issue...
    Oh, one last thing...  The manual for the instrument explicitly says that it uses "one start bit, 8 data bits, one stop bit, no parity, no flow control"...  What got my attention there is the explicit mention of "one start bit"...  Nothing in Windows or LabVIEW allows me to alter how many start bits there might be so I am assuming ALL serial comm uses one start bit and they just chose to mention it here???  Or might the start bit settings be an issue????  I am just searching... 
    Last, this code is in LabVIEW 7.1 and I really do use COM4 as I use a Keyspan serial port expander on the PC because we needed more serial ports...  That part has been tested and In fact, the other day, while in the middle of this problem we took the serial cable and hooked to what I above called the #1 instrument and talked to it just fine over COM4, same cable and everything so I think that part is good...
    thanks... bob... 
    Attachments:
    Talk with Cygnus.llb ‏35 KB

  • How to display ascii value

    sir i want to know d solution for displaying ascii value?/?
    also sir plz tell how to convert ascii to hex and hex to ascii????
    i am finding difficulty to make d program.... dats y i have attached any file bcz my program is not prepared yet

    Hi sir,
    convert your string to an U8 array and display that array in an array indicator set to hex display.
    Or switch your string to hex display…
    Also read this! It's a pain to read your message for non-native English speakers!
     

  • Wi-Fi WEP Hex Keys?

    I can connect with the WiFi using a WEP password, but my linksys is configured to use 4 hex keys, as are all my mobiles. Any hope of a patch or hidden option that will support adding WEP Keys?
    Selecting WEP Security prompts me for a password, actually a pass-phrase, but not for the keys.
    TY, DH

    Thanks for the suggestions, but the problem isn't really one of hex-to-ascii but of one ipod passcode for four AP WEP keys.
    I use the latest Linksys 802.n, which provides for generating 4 keys from a passphrase, or for entering the four 10-hex character keys directly. I tried a simple passphrase on both the AP and the ipod Touch, but got no connection.
    The AP wants four keys, the ipod Touch as an entry for a single string.
    WEP Screen: http://www.tekstenuitleg.net/img/linksys_WEP.gif
    Is it possible that a passphrase of all 40hex chars simple strung together and converted to ascii as a passphrase would authenticate? I doubt that.
    Seems my only other option is to lose the WEP entirely and leave my home net open, which I would rather not do (despite WEP having recently been cracked).

Maybe you are looking for