07-12-2010 12:03 AM - edited 07-12-2010 12:07 AM
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.
07-12-2010 12:25 AM
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.
07-12-2010 12:45 AM - edited 07-12-2010 12:47 AM
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,
07-12-2010 01:01 AM
07-12-2010 01:09 AM - edited 07-12-2010 01:10 AM
***message deleted****
07-12-2010 06:49 AM - edited 07-12-2010 06:51 AM
A little simpler way to do it.