LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Running the VI more than once, won't populate the array correctly!

I have found something pretty weird while I was trying to do the following:

I have an Array to wich I want to append a new set of data from two sources. To do

this I found two different ways:

1. I can take the array and append every element (from the sources of new data) to

the array.
2. Or, I can create a new array, and append it to the previous one.

Every of those solutions is ilustrated in the enclosed VIs. But the second one

doesn't work correctly. If we run it just once, it will display the correct data,

but if we run it more than once, it will show the cells of the appended data

empty!!!

How come this happens? It seems I'm missing something very basic and i
mportant.

Thank you for your time and help.

Regards,

JAVIER
Mauricio Vidal
VIDAL & ASTUDILLO Ltda.
http://www.vidalastudillo.com
0 Kudos
Message 1 of 6
(3,180 Views)
Hi,
actually you don't need to add elements continiously to each other or to the array.
The basic solution is to form the appropriate array and insert it into your array.
I have made the example.

Good luck.

Olrg Chutko.
0 Kudos
Message 2 of 6
(3,180 Views)
Thank you!
Actually my example was intented to show the use of the Cicle... One of the replies comments about a bug on the Insert Array for the version 6i
Thank you again!
Mauricio Vidal
VIDAL & ASTUDILLO Ltda.
http://www.vidalastudillo.com
0 Kudos
Message 6 of 6
(3,180 Views)
I ran both your examples in LabVIEW 6.1 several times and both seemed to run fine.

Jeremy Braden
0 Kudos
Message 3 of 6
(3,180 Views)
There is a know bug with "Insert Into Array" when you try to add data to an empty array. It seems to work the first time, but not after that. This was corrected in 6.1.
0 Kudos
Message 4 of 6
(3,180 Views)
Thank you... That should be the problem!!!
Mauricio Vidal
VIDAL & ASTUDILLO Ltda.
http://www.vidalastudillo.com
0 Kudos
Message 5 of 6
(3,180 Views)