LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Case Structure Array Problem

Good morning all,
 
I've been having a surprisingly great deal of trouble when it comes to inserting data into an array when a case structure is involved.  The usual method of initializing an array, inserting into array or replacing array subset, and using shift registers does not seem to work when a case structure is involved.
 
Here is what I'm looking to do...
I have an array for particle # and an array for particle area.  When the particle area is greater than 100 I'd like to take both the particle area and coinciding particle # and insert them into a separate, smaller array.
 
The VI I constructed to simplify my much larger, main VI is a quick rendition and you will find attached along with a sample image.
 
Thank you for any help in advance
Download All
0 Kudos
Message 1 of 4
(2,960 Views)
Hi steve, I couldnt open your vi because Im using 7.0, I tried to make up a quick vi based on your description. There are two methods shown, the second one is the more efficient one. Let me know if that is what you were looking for.
 


Message Edited by jrpe on 11-13-2007 10:56 AM
Jeff


Using Labview 7 Express
Download All
Message 2 of 4
(2,942 Views)

Steve

Here is another approach wher I deleted the small particles and kept the larger particles.

Visualize the Solution

CLA

LabVIEW, LabVIEW FPGA
0 Kudos
Message 3 of 4
(2,933 Views)

Ah, that's my mistake.

Wasn't building the array properly within the case structure.  Thank you Jeff, the first method works perfectly.

Also, thank you Dave for your method.
0 Kudos
Message 4 of 4
(2,925 Views)