02-22-2006 09:48 PM
02-23-2006 12:49 AM
H rothmans,
"Intel Format Hex file"? do you mean a file of byte-values in the range hex 0h00 to 0hFF? (AKA a "binary file")
"Transmit"? What hardware/protocol?
Before trying to answer what you "have to" do, maybe you will share more detail about what you need to do.
Cheers.
@rothmans wrote:
Now I would like to Open an Intel Format Hex file for transmit out. So if I have a hex file data, how can I manipulate those data. Mean I have to read the data in byte and send out byte by byte until end.??
02-23-2006 01:14 AM
Hi rothamns,
I believe you are referring to the hex files for intel or similar microcontrollers.
Inorder to send the data, first of all, after reading the data in text format, you need to convert them into hexadecimal bytes. Otherwise, you will be sending the ASCII value of each number in the file.
For example, if you read the line ":02000004FFFFFC", you need to convert 02 in text to 0x02 in hex so that they represent 1 byte of data. You can have all one line converted to a single hexadecimal string and then send it out (by serial port or so depending on your application).
Hope this helps!
02-23-2006 02:16 AM
02-23-2006 05:31 AM - edited 02-23-2006 05:31 AM
Hi,
I made a program once to check data for PROM programmers. Data formats as Jedec, Motorola S-records and Intel Hex 16/32
I will see if i can change the Intel check VI as a translation VI for you. What version LV are you using ?
Message Edited by K C on 02-23-2006 12:37 PM
02-23-2006 06:55 PM
02-24-2006 01:50 AM
Hi Rothmans,
I did some re-wiring. The main VI is 'Intel 16_32-bit .vi' It will ask you for a intelHEX file as input and ask you for a BIN file as output.
It will convert Intel HEX files to binairy data in a file and puts the data in a string indicator. I am not sure what you want with the result but I think you can adapt this for your application
03-16-2006 07:35 PM
03-17-2006 12:19 AM
Hi KC
Will u plz again send "Intel_16_32-bit.zip"file compatible to 7.1 version..
Thanks in advance
Regards
Rohit
03-17-2006 01:23 AM
Hi Rohit,
Here it is.