取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 12 条)
8,322 次查看

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



When they give imbeciles handicap-parking, I won't have so far to walk!
0 项奖励
2 条消息(共 12 条)
8,310 次查看

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 项奖励
3 条消息(共 12 条)
8,307 次查看
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 项奖励
4 条消息(共 12 条)
8,302 次查看

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

0 项奖励
5 条消息(共 12 条)
8,295 次查看
Hi, KC
 
Now I'm using LV Version 8.0.
 
Thanks for you help.
0 项奖励
6 条消息(共 12 条)
8,276 次查看

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 项奖励
7 条消息(共 12 条)
8,263 次查看
I had success to open the hex file and transmit out the data.
 
thank you for your help and support.
0 项奖励
8 条消息(共 12 条)
8,183 次查看

Hi KC

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

Thanks in advance

Regards

Rohit

 

0 项奖励
9 条消息(共 12 条)
8,180 次查看

Hi Rohit,

Here it is.

10 条消息(共 12 条)
8,169 次查看