LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Replace Array Subset

Hi. I have a problem updating the multicolumn list box. I use Replace array subset to replace every row from where it started off. Here is my extract from my work and this is how it looks like although it is to be simulated. After the cell "Acquiring TP _12V+ @ 500V", then the program will start to write new data to remaining cells but I could not. Strange, this vi is very similar to the other tests which I have built and they worked. But this one vi does not work!. It has to do with Replace array subset function as i suspected during the debugging. Somehow I could not solve it. I am using version Labview 7.0
 Would appreciate if anyone would drop by and give some advice. Thanks.
 Here's my attached in version 7.0. " Using Replace Array Subset.vi
 
 Clement
0 Kudos
Message 1 of 8
(3,386 Views)

Hi Clement,

I think your misunderstanding comes from the fact that it is not possible to add elements to an array using replace array subset. Your array (multicolumn listbox) is only 45 lines long so when you try to replace the 45th element it is just impossible because it does not exist. Try using build array or insert into array.

Hope this helps,

Julien

0 Kudos
Message 2 of 8
(3,377 Views)

But I have other programs that use the very same function in the same fashion. And they worked.  It is possible to put the values past 45th line in my other tests,

Clement

0 Kudos
Message 3 of 8
(3,373 Views)

Hi,

Do not forget that if you use build array, memory managment is much less effective than initialize and replace!

 

Dai

LV 7.1 - WIN XP - RT - FP
0 Kudos
Message 4 of 8
(3,369 Views)
Hi,
 
Try this vi. It is your prog at its simplest.
Your other programs must be different...
Dai

LV 7.1 - WIN XP - RT - FP
0 Kudos
Message 5 of 8
(3,367 Views)

Hi  Dai

Can you pls re-produce it  in as version 7.0?

Thanks

0 Kudos
Message 6 of 8
(3,353 Views)

Hi,

here it is. But this is big deal. Just a piece of code to show it does not work.

Dai

LV 7.1 - WIN XP - RT - FP
0 Kudos
Message 7 of 8
(3,342 Views)
Hi Dai Thanks for your help.
I realised I had initated the Multicolumn list box not once but twice along the sequence.
Now all it's solved!
 
Thanks again
 
clement
 
0 Kudos
Message 8 of 8
(3,313 Views)