LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

converting a 2-D string array to a 1-D string array

Hello Every one,

 

                         Iam trying to convert a 2-D string array, to a 1-D string array, I could achieve it to some extent. The problem with my code is its keeping on appending to the 1-D array with its previous results, every time I run it. I want to display the values only once. Can any one please fix this problem.

 

Thank you.

0 Kudos
Message 1 of 6
(3,490 Views)

It is your uninitialized shift register.  With no initializaion, the shift register retains the data between runs of the VI.  Right click on you left hand shift register and choose Create Constant.   The empty 1-D string array will clear the shift register upon every execution of your VI.

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

 

 

It seems you are appending each element with your Un initialized shift register to get a 1D array, which will not be more efficient when the Array Size increases,

 

Attached is the code, which will replace the Array elements and  will not consume more memory

 

 

 

AshwiN,

0 Kudos
Message 3 of 6
(3,465 Views)

Thanxs, Ravens and Ashwin for your suggestions. I am able to create a 1-D array now as desired.

0 Kudos
Message 4 of 6
(3,455 Views)

***message deleted****

 

0 Kudos
Message 5 of 6
(3,451 Views)

 A little simpler way to do it.

 

 

 

 

 

 

 

 

0 Kudos
Message 6 of 6
(3,428 Views)