LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Remove negative values while building a 2D array

The attached VI generates a waveform based on cursor positions and generates a results array.   However, I ONLY want the results array to contain POSITIVE value elements, I would like to discard the negative AND 0  element values.  My case structure only replaces the negative values with zero.  How do I disguard the negative values and not add them to the results array in the first place?
0 Kudos
Message 1 of 7
(3,584 Views)
Thats the basic idea..
0 Kudos
Message 2 of 7
(3,577 Views)
In second thought, it would be best to initialize the array, as you know the number of samples,
and then use the replace element function.
Better memory usage with this way.
 
Take a look here.
 
http://forums.ni.com/ni/board/message?board.id=170&thread.id=292035&view=by_date_ascending&page=2
 
0 Kudos
Message 3 of 7
(3,574 Views)
I am just not understanding this one.  I tried to follow your example but......  Thanks for your help.
0 Kudos
Message 4 of 7
(3,570 Views)
How do I fix the case selector error?
0 Kudos
Message 5 of 7
(3,563 Views)
The idea is something like this.
I don't have the time to finish it, and it's a little messy.
It does not work ok.. you only check one element if it is >0... see if you can finish it
 
0 Kudos
Message 6 of 7
(3,550 Views)
Yes I can, Many Thanks for you time and help!
0 Kudos
Message 7 of 7
(3,548 Views)