12-10-2009 05:44 PM
12-10-2009 09:07 PM
12-10-2009 10:05 PM
javiucsd wrote:
I have a 1-D array of 16-bit integers. I guess I can turn these numbers into 2x8 bit numbers. After that I would like to convert this arary of numbers into an Intel Hex format string. Is there a VI for this?
Are you referring to this, or something else?
12-10-2009 10:49 PM
you can simply typecast your integer array as a string and it will be in the "Intel" or Little Endian format
you can pass the array through the swap bytes vi to format the string in "Motorolla" or Big Endian format
12-11-2009 11:17 AM
I understand how to turn a 16 bit number into 2x8 bit numbers and I understand the type casting into a string.......
smercurio_fc - You are correct. The Intel Hex File Format with the Start code, byte count, address, Type, Data, and Checksum is exactly what I am looking for. I was just seeing if such a VI already existed. If not, then I guess I just gotta write it.
Thanks everyone for your input.
Javi
12-11-2009 12:14 PM
javiucsd wrote:smercurio_fc - You are correct. The Intel Hex File Format with the Start code, byte count, address, Type, Data, and Checksum is exactly what I am looking for. I was just seeing if such a VI already existed. If not, then I guess I just gotta write it.
In this post someone had written a VI to read from a file written in Intel Hex File Format and convert it to binary. I haven't looked at the code so I don't know if you can use it as a starting point to do the reverse.