01-26-2008 11:43 AM
01-27-2008 04:25 PM - edited 01-27-2008 04:34 PM
Hi Charlie,
Sounds like an interesting project. It sounds like you'll be reading an analog-input buffer in a loop and doing the vibration analysis on each waveform read. You can save some number of these waveforms as you go, so when analysis says "it's TIME", you'll have the pre-start history you need. The process of Reading "removes" samples from the input buffer - that's important with continuous acquisitions, because there's a finite amount of PC memory - and the input buffer needs to be configured big enough to accommodate data acquired between Reads. The higher the DAQ frequency, the bigger the input-buffer, and the longer it takes to do real-time processing for a given time-period.
It looks like you're off to a good start, why not analyze the data from each read, and set a flag when you "see" vibrations(?) Only log after the flag is set. You could buffer each read-waveform (by wiring it to a shift register) - then the previous read will be available when "it's TIME" to log...
Cheers!
02-24-2008 01:06 PM