LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array of elements

Hi, i want to create a n-dimensional array full of data (string type). Something like attached file but a bit more advanced. I need to use while loop. Every time the column,row and input data change.

It would look like this: 

first time a start while loop the input data should go to col 1, row1

second time input data to col 4, row 7

third to col 6, row 22, 

and so on... i thking you understand the point. 

 

in attached file i want to write string in every row.

 

Thanks for the answer,

Božidar

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

 

Forgot to add converted file to lower version. 

Here it is.

0 Kudos
Message 2 of 6
(2,550 Views)

Hi Bozidar,

 

two points:

- you have to keep your array in a shift register too (like your counter), otherwise you will forget previous data

- you cannot replace non-existing elements! You have to initialize that array (or the shift register) with a sufficient-sized array of empty strings...

Best regards,
GerdW


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

Here is the corrected file.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 4 of 6
(2,534 Views)

Hi,

 

Is there any kind of logical relationship regarding which row and column the data should be created in?

 

Best regards

Matej

/* A smart device is only as smart (stupid) as its programmer. */
0 Kudos
Message 5 of 6
(2,531 Views)

Thank you very much 🙂

 

Božidar

0 Kudos
Message 6 of 6
(2,530 Views)