LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with keeping unwanted waveforms out of array

   So i have a for loop indexing in 1 waveform at a time out of a waveform loop.  I do some stuff to it, then at the end i decide if after doing all my stuff if its worthy of keeping(starts within a certain voltage range).

The problem is right now i read the first element in the voltage array for the waveform, i then look if its greater than 10mV.  I send that to a case statement, if its false i send the waveform through.  But if its false i still have to send something through. 

Ive tried two approaches but neither has gotten me very far.

1) Use default when unwired, the problem is this fills my array with a ton of null waveforms.  I only end up taking 18 out of 144 waveforms, yet my array is 144 large which slows down things later in the process.
2) Wire in a built waveform with a dt of 50 which is something i would never see.  This way i can atleast do some sorting or something knowing that every one with 50dt is one i wanna get rid of..
0 Kudos
Message 1 of 2
(2,368 Views)
You just need to use a shift register. Look at this question from a week ago and the example code and see if that fixes your problem.
0 Kudos
Message 2 of 2
(2,357 Views)