LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

writing matrix data in s-record

Solved!
Go to solution

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

0 Kudos
Message 1 of 7
(2,705 Views)

hi there!

are you using labview ide?

it is unclear what your question really is (at least for me), please be more specific.

 

regards


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
Message 2 of 7
(2,694 Views)

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;

 

 

0 Kudos
Message 3 of 7
(2,691 Views)

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


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
Message 4 of 7
(2,678 Views)

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.

 

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
0 Kudos
Message 5 of 7
(2,652 Views)

hi,

 

yes

0 Kudos
Message 6 of 7
(2,639 Views)
Solution
Accepted by topic author salmaiss

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)]

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
0 Kudos
Message 7 of 7
(2,632 Views)