12-07-2018 08:49 AM
I'm working on a project for school and i have to read in a hex file, take out the data part and place it under the right adress (that is mentioned in the hex file) in an array. I'm completely new at labview and I don't really know how to start with this.
12-07-2018 09:12 AM
Then click this link, scroll down just a bit and look for the training courses link. This will help you get started with the software.
12-10-2018 08:53 AM
@RobbeFeys wrote:
I'm working on a project for school and i have to read in a hex file, take out the data part and place it under the right adress (that is mentioned in the hex file) in an array. I'm completely new at labview and I don't really know how to start with this.
First step is to clarify the requirements.
What exactly do you mean by a "hex file". A raw data file? A text file that shows the data in an ASCII hex format? How is the data in the file organized?
Once these are defined, we can work on reading the file.
12-11-2018 10:07 AM
it's a txt file with line by line intel hex language.
I already have made something but it only works for one line of the file.
12-11-2018 10:22 AM - edited 12-11-2018 10:23 AM
@RobbeFeys wrote:
I already have made something but it only works for one line of the file.
That is because you keep overwriting your file data. Open the file outside of the loop and don't close it until the loop is complete. You can then write as much as you want in the middle. You should also spend a little time cleaning up your diagram to make it easier to read.
But then we get into the question of figuring out the address that the data belongs to. Do you have a full breakdown of how each line of data is formatted?
12-11-2018 10:29 AM - edited 12-11-2018 10:30 AM
Thanks for the help!
The only thing i have is that text file as an example.