LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

filtering streaming data

Hello all,
  This might be an easy one for the experts, but without the use of variables, I'm hitting a stumpling block!! My problem lies in filtering the stream data I've captured. I capture both angle (pedestal) and magnitude (Spectrum Anaylzer) into tab delimited string. I'm reading this data faster than the angle changes, to prevent misses and I believe to be faster than serial polling, so there are duplicate angle readings (and its magnitude reading). I'd like to grab all the duplicates, average there magnitudes and replace the dups with the angle and the avg. magnitude. Back in the day, I'd dimension angle(iterations!), magn(iterations!), then read each angle(X) and if it equaled the previous, I'd avg magn(x) & magn(x-1) add one to a counter, reassign magn(x-1) to the avg and reassign the next array elements to angle(X-count) magn(x-count).
 Does I have to LabView 7.1 Express have this kind of flexiblity?
 
Thanks,
The Thumb Twirling Semi-Nu B
0 Kudos
Message 1 of 2
(2,462 Views)
Since your data are coming from a serial link, you should be able to process them in real time.
The attached vi uses the point-by-point mean vi that does most of the work.
Able to handle data coming at over 100 KHz.
Chilly Charly    (aka CC)
0 Kudos
Message 2 of 2
(2,454 Views)