LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Facing Problem in insertion of new element to array

Hi,
    I am facing some problem while inserting the new element to array. First i am inserting new element to index- 6 and then i am inserting new element to index-1. When i insert new element to index-1, then whatever i have inserted to index-6 is erasing. Is there i am doing any mistake, can we do like this. Please help me in this regards.
 
Regards
Shivakumar Singh
0 Kudos
Message 1 of 4
(2,301 Views)
Hi
 
That sounds strange. Could you submit some code?
 
Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 2 of 4
(2,298 Views)

If you do this inside a loop, it almost sounds like you forgot to add shift registers to hold the updated array. In this case you would then always operate on the original array, causing your described symptoms.

Please attach a simplified version of your code.

0 Kudos
Message 3 of 4
(2,293 Views)

Hi,

    Inserting into array is working fine now. I was doing some silly mistake. Thanks for your kind reply.

 

Regards

Shivakumar Singh

 

0 Kudos
Message 4 of 4
(2,289 Views)