LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Open Intel Format Hex File

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.??
0 Kudos
Message 1 of 12
(8,326 Views)

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. Smiley Wink

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.??



When they give imbeciles handicap-parking, I won't have so far to walk!
0 Kudos
Message 2 of 12
(8,314 Views)

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!

0 Kudos
Message 3 of 12
(8,311 Views)
Yes, as what Deepu said that type of hex file ":02000004FFFFFC". The hardware I would like to use is the parallel port/ Printer port for transmit out in serial format. Mean will transmit byte by byte. Now my status is can open the hex file in string already, but I have no idea how to manipulate this data... I meant how to read the data in byte by byte. Is it have to convert to array format first only can do it?
0 Kudos
Message 4 of 12
(8,306 Views)

Hi,

I made a program once to check data for PROM programmers. Data formats as Jedec, Motorola S-records and Smiley SurprisedIntel 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

0 Kudos
Message 5 of 12
(8,299 Views)
Hi, KC
 
Now I'm using LV Version 8.0.
 
Thanks for you help.
0 Kudos
Message 6 of 12
(8,280 Views)

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

 

0 Kudos
Message 7 of 12
(8,267 Views)
I had success to open the hex file and transmit out the data.
 
thank you for your help and support.
0 Kudos
Message 8 of 12
(8,187 Views)

Hi KC

Will u plz again send "Intel_16_32-bit.zip"file compatible to 7.1 version..

Thanks in advance

Regards

Rohit

 

0 Kudos
Message 9 of 12
(8,184 Views)

Hi Rohit,

Here it is.

Message 10 of 12
(8,173 Views)