08-14-2006 12:06 PM
08-14-2006 12:46 PM
08-14-2006 12:54 PM
08-14-2006 12:55 PM
08-15-2006 08:37 AM
Your example is only working with one channel. Your first loop creates additional "channels" by adding each new reading to the double array. I would consider changing the build array to cascade in the first loop. This will put the data end to end - so it will be one long channel covering the duration of the test.
Knowing the length of the test, you could put the RMS averaging FFT inside the acquire loop and provide the number of averages to be the same as the number of acquisitions. You will need to have a separate FFT function for each channel that you measure. At the end you can add three resulting FFTs together and divide by three, or go with the sum, or limit test them individually.
I would limit test the resulting FFTs individually. If you are looking at vibration in the X Y and Z directions, you will see a predominate vibration typically in one direction. If you average the three results, then do limit testing, you may pass a unit that is vibrating in one direction over specification.
Just some ideas.
08-15-2006 09:01 AM
08-15-2006 09:19 AM
First, lets change your inputs to read from three channels of the simulated DAQ device.
Then in the continious read loop (just as you have the DAQ loop set-up now), lets do an RMS averaging FFT on each channel separately.
Once the acquisition and FFT loop is complete, we can then limit test the resulting FFT.
In this manner we are not buffering up the entire daq process, we are reducing it as it comes in with the RMS averaging FFT.
Does this make sense?
08-15-2006 09:56 AM
08-15-2006 10:24 AM
08-15-2006 10:36 AM
I think your latest implementation is close. I would suggest you replace the three FFTs that you have in the loop, with the express VI for FFT that does RMS averaging (the compute spectral measurements). Internally it will take each block of data and average it for the specified number of averages. The result you get is a single FFT with RMS averaging over your entire measurement duration. You will then have three FFTs with which you can do your limit testing. This also removes the requirement to use the shift register, since the RMS averaging function is doing this internally.
Does this make sense.