Question about reading hex data

Hello! I am a Labview Novice and having a problem about reading hex data.
Basically I am having bytes from the serial port like this: "80100E0E0AB4F646F24A00911267087E032080057FFF "
It is not encoded in ASCII. What I want to do is to convert the hex to an ASCII hex string.
so that the string would become hex numbers in ASCII.
I think the following might be a solution, but I have no idea what the subvi is in the solution.
http://forums.ni.com/t5/LabVIEW/Hex-String-to-Ascii-Hex-String/m-p/886078/highlight/true#M400462
Thanks in advance and I appreciate your kind help!
Solved!
Go to Solution.

coolmatthew wrote:
What I want to do is actually this.
You are using way too much code for all this. All you need is a concatenate strings, replacing your entire loop and such. Same result.
(see also)
LabVIEW Champion . Do more with less code and in less time .
Attachments:
HEXTwiddler.png ‏4 KB

Similar Messages

  • Question about Rescheduling Start Date of a Task

    Question about Rescheduling Start Date of a Task
    I'm trying to determine whether the 'Reschedule' action is appropriate to my situation...
    I have a service that consists of 4 tasks.  The first 3 tasks will be completed immediately and then the request's 4th task will sit in a queue for about a month so that all of these requests can be grouped together and fulfilled during a few overnight work sessions.
    While the 4th task is waiting to be fulfilled, the technician will be contacting the requestor to schedule the work to be done sometime during a 3 day window.  The technician needs to specify which of the 3 days each request will be worked on.  I'm not sure if I should store the date in a service form field or have the technician reschedule the task so that the start date of the task is set to one of the 3 days.  If I use the reschedule feature, are there any downsides?
    The advantage of using the reschedule feature is that the scheduled start date can be displayed in ServiceManager's task list and can therefore be sorted on and queried.  This wouldn't be possible if I stored the date in a dictionary field on the service form.  In that case, I'd have to use custom reports to group the tasks by start date.
    Please let me know your thoughts...
    Thanks,
    Scott

    This strikes me as a very good use of this feature, since your need to to have the date for this task rescheduled/reflected in ServiceManager. This is the specific effect of using this feature.
    For the benefit of others reading this post, remember: this rescheduled date will not change the due date for the service.

  • Need to read Hex data format for Handheld device. (SAP AII RFID )

    Hello,
    we developed a custom screens for packing, unpacking, tag commission.. etc for handheld device for my client. the Serial number field  type is /ain/barcode. Its working fine. but for the new system need to read the Hex format. I created a new field in the screen. but the handheld device is not reading the Serial number in Hex format.
    Could anyone suggest me how to read Hex data in Handheld devices. We are using Motorola MC9090 Series.
    Regards,
    Kamal

    Hi
    Are you using the reader to read an RFID tag or for reading barcodes.
    Ideally, if you read an EPC Gen2 RFID tag, for example, the 96 bit encoded EPC is read and that can be converted to its equivalent  HEX format for posting the observation to SAP AII.
    In case of barcodes, the string is read as is printed on the barcode.

  • I wont to fix my old id account my email is  and when you whant to reset the password i dont recieve any email from apple id and when you answer question about your birth date it says not file is found.

    When i try and reset my id account it says it has been blocked for security reason. When you answer question about your birth date no souch record found and when i resset it by email io dont recieve any email from apple id reseat password. can anyone hep me ?
    <Email Edited by Host>

    Security questions:
    https://discussions.apple.com/docs/DOC-4551
    http://support.apple.com/kb/HT5312

  • A question about UDA and Data-Forms

    Hi all,
    I have a couple of questions about UDA. I am using Hyperion Planning 11.1.1.3m, and when I desing a Data-Form I would need to use the UDA I asigned for the Entity dimension: is that posiible?
    The other question is, when creating a Substiution Variable in Essbase I use the function @UDA (+dimension+, "MemberA"), but when using this variable in the Data-Form, it does nothing at all(in fact, it is been detected as an error). Why is that happening?
    Thanks a lot

    Use an attribute dimension to achieve what you are trying to do with UDA's in a data form. An attribute dimension will allow you to filter on members in the base dimension by a specific attribute the same way a UDA will. You can create the attribute dimension in the dimension editor in Planning by selecting the base dimension (Entity) and then select the custom attributes' button. Check the dba guide for a step-by-step approach.
    With regards to the subvar, are you trying to add the function as a value of the subvar when you create it in EAS? If so, this is not allowed. What are you trying to do with the subvar on the form? Subvars are supported in data forms as part of the member selection for a dimension. For instance, you can set up a subvar called CurYear and set the value equal to FY11 for the Fiscal Year dimension. In the data form you can set the member selection for the Fiscal Year dimension to CurYear. When the user opens the form, the member FY11 is returned.

  • Question about exporting FBL3N data in Pivot table format

    Dear all
    I have a question about the "exporting file" function of ECC 6.0.
    We started to use ECC 6.0 system, and it appears that we are no longer able to export "FBL3N data" to a local PC in pivot table format.
    Is there a way to do it?
    We used to be able to do so when the system is 4.6.
    I appreciate your support!
    Kind regards

    Dear:
                 You can do that. Execute report FBL3N with desired GL account in it. After when report has been executed right click on it. There will be an option Spread Sheet. Select all available format. In drill down select 08 (Excel in existing XXL format) and press OK. There you will get pivot table option for downloading., Hope this will help you resolve your query.
    Regards

  • Reading Hex data- how to typecast from string

    Hi,
    I am reading a file having hex data ( say 100 lines).When i read it i think it is being read as a string.
    How can i typecast or convert it to int .
    I am using dis.readLine() to read from file and assigning it to a variable(int).
    Thanks.
    Edited by: Motorcycle on Jun 10, 2009 3:16 PM

    Sorry for that..:)
    ok a few lines of the file are as folloes
    0x004D1202
    0x0002E1E5
    0x004C1202
    0x0002E1EB
    0x004E1202
    I tried reading it as data [indr][indc].tag = ( int ) dis.readLine() ;
    It said " cannot convert from String to int.
    data is a structure having int variables.
    Thanks.

  • Question about Reader DRM activation

    Hi All
    I got a paper "FAQ ACS Discontinuation of Sales, November 30, 2004"
    I have a question about ACS.
    As I konw, ACS is discontinued effective November 30, 2004.
    and I read a section in paper below:
    Q. Will Adobe Reader and Acrobat users get support from Adobe for eBook issues?
    A. Support is not available for the free Adobe Reader, however, assistance for user activation is
    available until December 31, 2006.
    Does it mean Reader activation service will be stop until December 31, 2006?
    That's a big problem for our ebook service!!

    Adobe communicated in January to ACS customers that the DRM Activator service would remain operational until December 31, 2007, one year longer than previously announced.
    If you didn't receive this announcement, send your contact info (email and surface mail) to "[email protected]".
    You'll receive an autotmated reply that your email bounced but it will then be manually confirmed.

  • Follow up question about interpreting smart data test on 160GB classic

    I posted this question regarding the problem I am having with my 160GB ipod classic:
    http://discussions.apple.com/thread.jspa?threadID=2153948&tstart=0
    It appears noone is able to help me, so I have found some more information:
    In short, itunes will not write to my 160GB ipod once it reaches about 35GB / 160. Windows will write to it, but only at 500KB/sec rather than the usual 19+Mb/sec. It just crawls once it hits that point. After following some advice online I came up with the following results using the HD tests in diagnostic mode.
    smart data test:
    retracts: 138
    rallocs: 563
    pending sector: 55
    poweron hours: 1016
    starts/stops: 267
    temp: current 26C
    temp: min 19C
    temp: max 53C
    and for the HDD spec test:
    sno: (not sure if i should post a serial number?)
    FW Revision: NB100-05
    LBAs: 0x12a19eb0
    These are the only tests that show up under the I/O HardDrive section. Should there be more? It seems like there might be from what I read, but I am not sure.
    Anyway, any help interpreting these results would be greatly appreciated.

    adame wrote:
    rallocs: 563
    pending sector: 55
    etc.
    Your drive is probably toast. Compare your SmartData stats with mine:
    Retracts: 844
    *Reallocs: 12*
    *Pending Sectors: 0*
    PowerOn Hours: 2037
    Starts/Stops: 830
    Temp: Current 29c
    Temp: Min 10c
    Temp: Max 50C
    I've only 12 remapped sectors and none pending. From the Wikipedia S.M.A.R.T. article:
    *Reallocated Sectors Count*
    Count of reallocated sectors. When the hard drive finds a read/write/verification error, it marks this sector as "reallocated" and transfers data to a special reserved area (spare area). This process is also known as remapping, and "reallocated" sectors are called remaps. This is why, on modern hard disks, "bad blocks" cannot be found while testing the surface – all bad blocks are hidden in reallocated sectors. However, as the number of reallocated sectors increases, the read/write speed tends to decrease. The raw value normally represents a count of the number of bad sectors that have been found and remapped. Thus, the higher the attribute value, the more sectors the drive has had to reallocate.
    *Pending sector count*
    Number of "unstable" sectors (waiting to be remapped, because of read errors). If an unstable sector is subsequently written or read successfully, this value is decreased and the sector is not remapped. Read errors on a sector will not remap the sector (since it might be readable later); instead, the drive firmware remembers that the sector needs to be remapped, and remaps it the next time it's written.
    I'm sure you'll find the counts go up if you try to do a surface scanning disk check. Sorry it's not better news but at least you know where the problem lies. Assuming your iPod is out of warranty it's probably time to get your iPod refurbished with a new drive or to buy a new iPod.
    tt2

  • Question about Index in data selection

    Hi experts,
    I am reading the documents about index today and find there are some questions confused me. Plz help, thx!
    1 What is the technical structure of index?
    For example, I have a table ztable with 5 fields, F1(key), F2(key). F3. F4.F5. If I create a index on F3,F4, the system will create a copy of this table. Is the structure of this copy as follow?
    F3, F4, pointer(for the lineno of the recorder)
    So this copy will have fewer lines than the ZTABLE and is sorted. If the DB optimizer choose this index in selection, it will be fast for the 2 reasons?
    2 By what is the sequence of the fields in the index determined? I read a BLOG about permance, the author make a example with DB05, and say if the distinct values of certain field is between 1-1000 lines, it is good to set a secondary index for the field.
    I wonder, if the F3 has only 5 distinct value for all the data in the ZTABLE, and the F4 has 100 distinct value. Which one should be the first field in the index and why?
    Thx!!~

    Hi,
    1 What is the technical structure of index?
    For example, I have a table ztable with 5 fields, F1(key), F2(key). F3. F4.F5. If I create a index on F3,F4, the system will create a copy of this table. Is the structure of this copy as follow?
    F3, F4, pointer(for the lineno of the recorder)
    So this copy will have fewer lines than the ZTABLE and is sorted. If the DB optimizer choose this index in selection, it will be fast for the 2 reasons?
    2 By what is the sequence of the fields in the index determined? I read a BLOG about permance, the author make a example with DB05, and say if the distinct values of certain field is between 1-1000 lines, it is good to set a secondary index for the field.
    I wonder, if the F3 has only 5 distinct value for all the data in the ZTABLE, and the F4 has 100 distinct value. Which one should be the first field in the index and why?
    You seem to be correct for some but not all.
    Struture of index will
    for unique key index F3, F4, row id of database
    it could have only one row id when your where condition match with the index then it goes to only index table first and read the row id and read record directly from the row id.
    But for non unique key table store all the F3, F4, row id of record which math value of F1 and F4. It can have multiple value.
    When your where condition math with condition partially ie left part of the key or whole part key then read all match record from the index table and then read the database physical table and check for addation where condition if any.
    Index is determine on basis of the where condtion which is most left part of index will match.
    if your where condition F4 and in your index has f3 f4 then index will not consider, It create gap between index condition and read whole table database. But if you consider f3 then only it consider the index to read because it match the left most part with index fields.
    For more details How to create secondary index ? Search for blog in sdn I reply many time.

  • VISA error when trying to read hex data over serial port

    Hi - Sorry about this. I am posting this question as a new thread as I am still having serious problems and may be able to shed more light now.
    Basically I am trying to read data formatted as a string of comma separated hexadecimal words over the serial link.
    The data is formatted thus:  <first word>,  <second word>, <third word> etc.... <last word, <CR>  where <CR> is a carriage return.
    Where each word represents a number, e.g.  AB01 is 43777 in decimal.
    Now the VI is stalling at VISA close (I attach VI again to this message), the string data is read across by the VI but it will not then close the link unless I remove to USB cable from the comms port.  When I run the device in hyperterminal I do not have this problem.  The data sting comes back fine (when I send out the command message), the carriage return is recognized as the end of the data message and the comma channel is cleared and ready to accept the next command message.
    LabVIEW is then not happy.  I don't know why but it could be that the amount of data the demo device I have is sending back is more than the NI-VISA can cope with.  Am I correct in thinking 13kbytes is the maximum.  If this were the case This would account for my problem.  It seems that the number of bytes read by the VI is consistently 12999.
    Hope someone can help or this information will at least be useful to somebody so they don't have this problem.
    Many Thanks
    Ashley.

    Yes there is. If your data contains data from 0x00 to 0xFF then you have to disable the 'termination char' in the VISA configure function. The boolean input at the top. Set it to false. Otherwise your transmission will stop at 0x0A by default. You can also tell what the termination character should be, if you want.
    btw. Still no VI attached. 
    Sorry replied to the wrong message. No I did not where are both replying at the same time
    Message Edited by K C on 12-08-2005 12:44 PM
    Message Edited by K C on 12-08-2005 12:46 PM

  • Question about zeroing out data...

    I'm currently zeroing out my Time Capsule's hard drive and starting fresh with backing up. I started doing a 7 pass method the other day, but figured it was overkill and bad on the hard drive, so I stopped it a quarter of the way through pass 2. Does this mean that at least the one full pass was done successfully? Also, to make sure that everything is truly zeroed out, I started a one-time zero out erase. So, does this mean, then, that my TC truly has been zeroed out twice for starting over on my backups?
    And, while we're on the subject, I did some research on zeroing out data. Most people are in agreement that doing one pass is good enough. Apple recommends twice for a fully secure wipe. While researching this, I found that some claim that zeroing out a hard drive during a 7 pass and 35 pass method significantly decreases the lifespan of a hard drive. Is this myth busted or confirmed? Also, is zeroing out data only once already harmful to an HD's lifespan?

    William Boyd, Jr. wrote:
    apple_kmj wrote:
    I'm currently zeroing out my Time Capsule's hard drive and starting fresh with backing up.
    I'll leave to others the answering of your questions, but I have one of my own: What are you hoping to accomplish by zeroing out your Time Capsule's drive? I would only consider that useful if I were planning to sell or otherwise dispose of a Time Capsule.
    I heard that it's the best way to go if you have a lot of data synced and you don't want to individually pick out data to delete. Also, backups were taking a while, and I noticed that my Time Machine had nothing on it even though my Time Capsule showed as having almost 80 GB of data backed up. So, just to eliminate any potential problems, I zeroed out data and started over again.

  • Is this a good idea?  Question about backing up data

    Hi,
    I have a MacBook Pro that is about two years old. It's working well.
    I have a year old WD MyBook premium edition, 500GB, that I've been using as an external hard drive to back up my data. Recently, it was working fine (as recent as three days ago). Now, all of a sudden, it won't mount onto my computer. I've tried it in both the USB and Firewire ports, as well as on a different MacBook, and it won't mount anywhere. I also turned it on and off, turned off the computer, connected everything in a different order, etc. Then, I tried it on a PC with XP and it had no problem finding the drive and I was able to open it.
    So I called WD tech support and he told me to do this:
    -Connect the external hard drive to the PC
    -Drag/drop all of the data on the drive onto the PC
    -Reformat the external hard drive in Windows
    -Drag and drop/put the data back on it
    -Try to connect it back to the MacBook pro, where it should mount
    He said something about partitioning the drive, which I sort-of understand what he meant, but not completely. This process seems like it will be long and may not work, so I wanted to get someone else's opinion before I started it. Does this seem like the right idea to get the hard drive to mount?
    Any help would be appreciated. Thanks!

    I see four possible alternatives, in varying degrees of severity:
    # There's some minor problem with the volume, preventing an automatic mount. Start up Disk Utility, plug the drive in (preferably via FireWire). Does the device appear on the left column of D.U.'s window? With the volume name greyed out underneath? If this is the case, try doing a Disk Repair on it: if any errors pop up, you will have to redo the repair until you get no more error messages or D.U. says it can't repair and you need to use stronger stuff.
    # The volume is severely damaged and/or the partition is shot. In this case, the device pops up in D.U., but no volume name appears underneath or you get a generic name. In this case, stronger stuff is mandatory, such as Disk Warrior.
    # The electronics of the drive are damaged, so that nothing appears on D.U.'s window when you plug the drive in on yours and other Macs and with both FireWire or USB. This can be caused by damage to the power supply (drive isn't turning on), the USB/FW bridgeboard that connects those interfaces with the HDD's ATA/SATA controller, or the HDD controller card itself. This would mean that the drive is, indeed, dead but if the HDD still works, you may be able to salvage it by opening the case up, taking the HDD out and putting it in another case, at least till you copy your info over to another drive. Then, if there's any sort of warranty left, you can put it back together and send it in.
    # Your Mac's interface ports (USB/FW) are somehow compromised and not working. Does the drive mount on another Mac? Have you tried resetting the Mac's PRAM/NVRAM and the System Management Controller (SMC)? Are you able to connect your Mac to another via Target Disk Mode?
    Since tools such as Disk Warrior are expensive, some Apple shops may offer checking/repairing your drive with them, for a fee.

  • Question about java.util.date

    hello all. could anyone please help me or give me some input about a small problem i have run in to. okay, im writing a program that will read in 3 different text files and have them sorted into array lists. well i am working on the 3 main class definitions and i have run into a problem. the first 2 classes i just created strings and then ran a equals and a compareTo on them to determine which entry would be first alphabetically when it is entered into the database. well on the last class.. i wanted to do the same thing (create 2 strings and compare them that way).. but i have a java.util.date variable that i am dealing with. is it okay to read in the date into a string like i have been doing? or do i need to do something else.. i am posting the code below so please have a look and get back to me. thanks in advance!
    lastName (is a String)
    firstName (is a String)
    title (is a String)
    dateOfPurchase (is a Date)
    public boolean equals(Order anOrder)
             boolean result;
             String x1 = this.dateOfPurchase + this.lastName + this.firstName + this.title;
             String x2 = anOrder.dateOfPurchase + anOrder.lastName + anOrder.firstName + anOrder.title;
             int i = 0;
             result = true;
             while (i < x1.length())
                if (x1.charAt(i) == x2.charAt(i))
                   i++;
                else
                   result = false;
             return result;
          }

    And if you don't understand casting, look for it in one of the following:
    Sun's basic Java tutorial
    Sun's New To Java Center. Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    http://javaalmanac.com. A couple dozen code examples that supplement The Java Developers Almanac.
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's Thinking in Java (Available online.)
    Joshua Bloch's Effective Java
    Bert Bates and Kathy Sierra's Head First Java.

  • Question about voice and data plan for Europe

    I am in New York and my boss is going to France for a week and a half. He told me he will not have access to the internet there. He asked me to find out if it would be possible to get a voice and data plan for the month that he will be there, and if so, could someone show me where I could look at the different plans available?
    If it's not possible to do that for just a month, then could someone tell me where I could find the rates are for voice and data in France?
    Thanks

    Hi kevindrosario,
    I appreciate your interest in our International Services.  France, is a GSM country and will only support a Global capable device. Unfortunately, its not clear if your boss has a Global capable device.  If so, here are the details for the voice and data rates for France.
    If your boss doesn't not have a Global capable device, no worries!  We offer an Occasional Global Traveler program, in which we will loan you a Global device for up to 21 days.  I hope this information is helpful.  Please let me know if you have any any additional questions or concerns.
    Thank you,

Maybe you are looking for

  • HT4059 Is johnny cash's autobiography available in english on ibooks

    Is johnny cash's autobiography available on ibooks in english? I can only find it in german.

  • [SOLVED] incorrect navigation after migration 6i - 10g

    Hi, we have a big problem after forms migration from 6i to 10g. :-( Our forms appliction contains a lot of forms with master detail data blocks in tabular layout. In most cases we have text fields inside the data blocks. After migration we are not ab

  • IBooks 1.3.2 (422) photos overwritten with text...

    Noticed that photographs (all of which worked flawlessly in earlier version of iBooks) now are sometimes overwritten with a line of adjoining text-but only when certain font sizes are chosen. It happens consistently (I tried Palatino and Verdana, and

  • Question about forwarding/ masking

    When I click on the link to my website from another site(also hosted on my .mac acct), the url that shows up continues to be the url of the original site, not the url of my website. I'm assuming this has to do with the other site being a forwarded/ma

  • No Data Showing in Reports

    Installed and configured MBAM 2.5 on standalone machine, no errors after install and configuration. The data bases were installed on another server and admin says no errors were encountered after install. I can see the two services, CoreService.svc a