I have two arrays and matrix
the first array is X, second is Y
and the matrix is Z[X][Y]
I wont to save the data from them in s-record as:
unit 16_t X_size;
unit 16_t Y_size;
unit 16_t X members ;
unit 16_t Y members ;
unit 16_t Z[X][Y] members ;
unit 16_t crc 16;
could you, please help me with it
Solved! Go to Solution.
are you using labview ide?
it is unclear what your question really is (at least for me), please be more specific.
that I have two arrays and a matrix,
and I want to write the data in an s-record file as the structure that described previously.
so i used labview for a while,
there is no such thing as a "s-record", this is a graphical programming language.
are we talking about the same thing?
this looks more like C-something
Is this what you mean by S-record?
If that is the S-Record then you will need to determine what type of record it is and where the block of data is to reside. You will need to do this for each array.
Well, will you be using S1(16-bit), S2(24-bit), or S3(32-bit) addressing? How many bytes of data per line do you want in your records? What is the starting address for where the data is to be stored?
25=[(2 * 16) + 5] = 37 bytes follow in hex
00001000=32-bit address for starting location in hex
00..1F=32-bytes of data in hex
XX=[U8] checksum = FF-U8[summation(address + data)]