07-29-2013 07:10 AM
Hi,
In this particluar application I want to modify value of a particular index (Ex: 4th Psoition in a 1-D array ) and store the modified value (Inremented) in the same index location.
I have written a program , Can anybody tell what am I doing wrong ?
Labview Verison : 8.6
Kindly update screen shot instead of .vi
Solved! Go to Solution.
07-29-2013 07:32 AM
I cant open the vi, but to replace a number in an array, there is Replace Array Element. Just wire the current array, which index to change and the new number.
/Y
07-29-2013 07:37 AM - edited 07-29-2013 07:38 AM
Two things.
First:
You need to initialize the array (via the feedback loop).
Right click the array wire and create constant. Move the index to element 99. Initialize the element to 0. Wire this up to the bottom section of the feedback node.
Second:
You are using an Insert Into Array VI but this does not describe what you are trying to do. While it does place an element in the indicated position is also increases the size of the array.
Change this to a Replace Array Subset VI.
07-29-2013 07:48 AM
@dakudiv wrote:
Hi,
In this particluar application I want to modify value of a particular index (Ex: 4th Psoition in a 1-D array ) and store the modified value (Inremented) in the same index location.
Replace the Insert Into Array with Replace Array Subset.