LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Update 2D array from 1D array with queue and dequeue functions.

Hi,

I have some problems with the VI. I'm trying to display and update  8(row)x15(col) from sets of continuous random number which is in 1D array (1(row)x15(col). Using queue and dequeue functions the 1D array is transferred sequentially to the next loop. In the next loop the 1D array is appended and become 2D data array (8x15). In the loop the 8x15 array must update the incoming 1D array, append the data and finallly display the new 8 rows and 15 col of random numbers.  The attached VI only diaplay the first row data (0-7), however the next row data (8-15, 9-23,...) are not been displayed even the random function is keep generate numbers.Please advice.

 

Thank you

fazlul

0 Kudos
Message 1 of 9
(3,633 Views)

May you send the .VI so I can give a try, pls?

Thanks,

Marco

0 Kudos
Message 2 of 9
(3,612 Views)

Hi Ledang,

 

either increase the number of visible elements of array2 or switch the inputs of the BuildArray node to append new data in front of the old one...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 9
(3,601 Views)

Hi

 

using queue is useless here. You can do something like that

 

I hope it will help

Giuliano Franchetto
Student at the l'Ecole Nationale Supérieure des Mines de Saint-Etienne, cycle ISMIN (FRANCE)
0 Kudos
Message 4 of 9
(3,600 Views)

Hi GerdW,

Thanks for the reply. The 8x15 2d data array in necessary as it will be used for post-processing with specific algorithm. Sorry, but I don't get any ideas on what you suggested "switch the inputs of the build array...". Can you give an example?

 

Thanks.

0 Kudos
Message 5 of 9
(3,588 Views)

Hi Ledang,

 

on "switching the inputs of BuildArray":

Right now you append new data after the old data (1st and 2nd input of BuildArray). You may switch the order to prepend new data in front of the old one: press Ctrl key and move mouse over inputs of BuildArray to show the switching tool...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 9
(3,585 Views)

Hi Giuliano,

Thank you for the reply. Unfortunately I could not open the attached file as I'm using LV 8.6. Can you pls take a snapshot of the VI?

 

Regards

Fazlul

 

0 Kudos
Message 7 of 9
(3,584 Views)

here it is

Giuliano Franchetto
Student at the l'Ecole Nationale Supérieure des Mines de Saint-Etienne, cycle ISMIN (FRANCE)
0 Kudos
Message 8 of 9
(3,577 Views)

Hi Giuliano,

 

Received and thank you 

 

Regards 

Fazlul

0 Kudos
Message 9 of 9
(3,570 Views)