03-14-2018 06:09 AM
Hello,
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.
03-14-2018 06:40 AM
hi there!
are you using labview ide?
it is unclear what your question really is (at least for me), please be more specific.
regards
03-14-2018 06:46 AM
hi,
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.
Regards;
03-14-2018 07:03 AM
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
03-14-2018 11:26 AM
Is this what you mean by S-record?
https://upload.wikimedia.org/wikipedia/commons/f/f1/Motorola_SREC_Chart.png
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.
03-15-2018 02:46 AM
hi,
yes
03-15-2018 06:42 AM - edited 03-15-2018 06:43 AM
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?
S32500001000000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1FXX
S3=32-bit address
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)]