LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

change value in specific address in hex file

Hi all : I have hex file that I want to change specific values in some specific address , how can I do that in labview  Attach see file please for hex file   Please see another attach file which explain what I want in steps  Thanks a lot Wisam
Download All
0 Kudos
Message 1 of 3
(3,500 Views)

Why did you write the details in a Word document, which is a proprietary format, and not everyone has Word, but everyone can read the body of a message?

 

  1. Open the file.
  2. Move the file pointer to the location you want.
  3. Write out the new byte.
  4. Repeat (2) and (3) for the next  location you want to change.
  5. Close the file.
All of the above operations are in the File I/O palette.
0 Kudos
Message 2 of 3
(3,482 Views)

What you have is just a plain text file containing hexadecimal formatted text.

 

Do you know the offset of the data you need to change? Is the "address" a variable? Why don't you simply read your file as plain text, use search string to find ":1064F", then increment the location by the desired offset to get the locations you need to overwrite as described by smercurio.

 

How often does this need to happen? Is the file just 32k? For simplicity, you might just want to do the changes in memory and overwrite the entire file.

0 Kudos
Message 3 of 3
(3,467 Views)