LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

manipulate data

Hi everyone,

 

I am trying to organize my data but I can't do that. I receive  2 files in a different time and I want to put it in the same line, for example, my first file has a packet with 3 columns and 2 lines and the second has 4 columns and 2 lines and I want to put my second data after the first but in the same line (As I said, I receiveit in a diferent time). In other words, besides I receive my packet in a different time I'd like to put the second data after the first but aligned.

 

Let's suppose my packets:

 

1)

 

1    55    32

4    65    15

 

2) 

 

3    12    14     5

12  54      4     9

 

I want to do that:

 

 

1    55    32    3    12   14   5

4    65    15   12   54     4   9

 

Remember, I receive in a different time!!

 

Is it possible to do that?

Is there anybody that can help me?

0 Kudos
Message 1 of 6
(2,621 Views)

Hi Kito,

 

maybe the attachment can help you...

 

When you know the array sizes before you can also init a big "buffer" array and use "replace array subset" instead...

Message Edited by GerdW on 07-07-2009 10:43 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 6
(2,617 Views)

HI GerdW,

 

I know exacly the array size before. It is 508 bytes and the second one is 255.

Could you help me how to use "big"buffers"and replace arrays subset.

 

Regards

 

Kito

0 Kudos
Message 3 of 6
(2,606 Views)

HI GerdW,

 

I forgot to tell you that I will receive continuously the data. So I need to include those data in the sequence of the file. For exemple:

 

First time

1)

1    55    32   

4    65    15  

 

2)

3    12   14   5

12   54     4   9

 

2nd time

1)

 5    85    92

 9    32    18

 

2)

 13   33   18   1

17   44     3   8

 

and so on....

 

and then the struct will be like that:

 

1    55    32    3    12   14   5

4    65    15   12   54     4   9

5    85    92   13   33   18   1

9    32    18   17   44     3   8

..........and so on.

 

Could you help me on that?

 

Regards

 

Kito

0 Kudos
Message 4 of 6
(2,594 Views)

Hi Kito,

 

the attachment shows how to use a "buffer" array and to (re)place incoming data in the buffer...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 5 of 6
(2,567 Views)

Thanks very much for your help GerdW.

It really helped me.

 

Regards

 

Kito

Message 6 of 6
(2,546 Views)