LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Replace Array Subset Bug?

Unless I'm just totally missing something (which is very possible), I think I've found a bug. It appears when trying to replace all the elements of a 1-D array of error clusters with an empty error cluster (using a for loop and the "Replace Array Subset" function). Please see the attached picture.

Jaegen
0 Kudos
Message 1 of 6
(3,316 Views)
Here is the actual VI.
0 Kudos
Message 2 of 6
(3,312 Views)
You need a shift register on the inner FOR loop for the error cluster.

Right now, you keep operating on the same array input and only the replacement of the last iteration thus sticks.

[edit: attached image]

Message Edited by altenbach on 03-14-2005 05:24 PM

0 Kudos
Message 3 of 6
(3,311 Views)
Of course ... I stared at this for about 1/2 an hour too ... so much for my years of experience ...

Thanks,

Jaegen
0 Kudos
Message 4 of 6
(3,290 Views)
Maybe you can eliminate the "Clear Errors" case entirely?
Functionally, it is identical to your "Init" case. 🙂
0 Kudos
Message 5 of 6
(3,287 Views)
That I *had* already picked up on. I think we were worried about memory allocation, since this VI is running in LV RT (i.e. we wanted to allocate the memory once in the "Init" case and then just do everything else in place.
0 Kudos
Message 6 of 6
(3,279 Views)