02-19-2008 03:09 AM
02-19-2008 05:45 AM
02-20-2008 01:05 AM - edited 02-20-2008 01:07 AM
Firstly, I think the block size input of your OAT Order Power Spectrum VI is not connecting correctly. It specifies how many points you want to use to calculate the spectrum. But it is now connected to the size output of the whole even-angle signal. I think you can use the unbundled output of the 'Spectrumeinstellungen' or a constant. Please refer to the attached screenshot.
Secondly, after you re-link the block size input, you may find a 21400 warning. It says 'The input signal is empty'. This warning message is output by the Order Power Spectrum VI because the the OAT Convert to Even Angle Signal VI's output is empty. Since there are multiple digital filters used for re-sampling inside the OAT Convert to Even Angle Signal VI, there will be a filter delay. The delay is measured in the tachometer counts but not the time waveform signal length. The 'accurate' method asks for more tachometer counters (more rotations) than the 'fast' method. So if you change the analysis method to 'fast', you will find the output result. If you want to use the accurate method, you need to acquire a signal which includes more rotations.
regards,
Billy
02-20-2008 03:42 AM
Hi SH.Billy,
thanks for reply. I an connecting the size output of the whole even-angle signal to the "block size" parameter of OAT Order Power Spectrum VI, because I want it to use the hole signal for calculating the FFT, not just a portion of it. However, in order to test, I have made the change that you say and I've got the 21400 warning.
I am attaching an example whith measured signals wit more rotations of the shaft (40). When you run the vi you will be promt to select two files, please choose first the one called "Vibration_25KSs" and secondly the one called "Pulses_25,0kSs".
If you don't make the change you suggest you will receive the same error code (-21408).
If you do make the change, you will still receive the warning 21400.
In both cases you will have no order spectrum.
There are three posibilities to have the spectrum: a) as you say, use the fast method. b) set the "zero delay?" parameter to TRUE. c) a) and b) togheter.
These three posibilities also hold if you don't make the change you suggest.
It would be nice to have more information on what the vi's from the toolkit do, As I can't build an order spectrum just by setting the parameters so that the vi "works". I have found no documentation related to it other than the user manual, where there is no information of this kind.
02-21-2008 12:16 AM
Hi crimolvic,
Let me introduce the accurate/fast approach in more detail.
As the context help of the OAT Convert to Even Angle Signal VI mentions, 'The accurate method can generate more accurate results than the fast method, especially if you are performing run-up or run-down tests with high speed transition rates. However, the accurate method requires an accurate tachometer pulse measurement to generate accurate results. Typically, using a counter to acquire digital tachometer signals yields an accurate tachometer pulse position. '.
The accurate method uses a much longer filter than the fast method so that it can obtain extra accuracy to calculate the speed profile especially for the speed which changes rapidly. However, the cost is that there will be a much longer filter delay because of the extra filter operations. For most cases, the fast method is good enough. That is why the fast method is the recommended default value of the method input. For instance, in your case, the speed is slow and quite stable; the fast approach should be a good choice.
For some online applications, they require an immediate output without any filter delay, this requirement results in the 'zero delay?' option. Actually, several early cycles of the output data will be incorrect because the internal digital filters are not fully initialized.
In a word, the VI has long filters that initialize before calculation, which result in the incorrectness of the initial part of the output data. The length of the incorrect part of the output data depends on the analysis mode you select. Using 'accurate' mode is much longer than 'fast'. If zero delay?=FALSE, the incorrect initial part of the output data will be chopped and abandoned. This mechanism guarantees the accuracy of the output data. However, if you set zero delay?=TURE, the initial part will not be dropped, but you must pay attention that maybe the first few cycles of the output result is not correct.
For your VI, I think you can use 'fast' mode with zero delay? = FALSE. I've tried your VIs without any changes besides setting analysis mode to fast. It looks fine.
regards,
Billy
02-21-2008 08:39 AM
Thank you again for helping me clarify the procedure.
One question related to the filters, as you said, the accurate method uses a longer filter through the use of a filtering previous the CIC Filter. Which type of filter is used in this previous stage? is a FIR Filter? what is its purpose?
Let me put you on the following case: you want to use the accurate or fast method to build (one time, not in a while loop) an order spectrum with a given maximum order and a given spectral resolution. How can you calculate how long (how many shaft revolutions) the measurement should be? To avoid incorrectness we will set zero delay?=FALSE.
Lets analyse first the maximum order: if I set the parameter "max order (auto)" to a given number, lets say 100, then the "oa Get Actual Order.vi" will calculate an interpolation factor. In this case the interpolation factor will be 256 and therefore the maximum order on the spectrum will be of 256/2=128 (and not 100 as desired!). This is independant of the method, fast or accurate. The question is why?
Lets analyse now the resolution item, which is obviously related with the signal length (the nmber of revolutions of the shaft). First I have noticed that the "oa_Calculate Angular Speed" always delete the last 3 (three) pulses, which makes the signal shorter and therefore has an implicance on the resolution. Do you know why it does that?
Secondly, ss you mentioned, there is a filter delay. Due to this, one has to delete the first portion of the signal and only take the values from this delay. For the fast method, the delay is dependanto on the interpolation factor; for the accurate method is dependant also on the interpolation factor but also on the coefficients of the filter before the CIC filter. The result is a longer filter delay for the accurate method.
Well what I want is to have a spectrum with a given resolution. Therefore, I should calculate the time of the (n-3) pulse, n being the number of pulses, and also the filter delay (which by the way is expressed on number of the interpolated pulses) to determine the number of revolutions that are needed for the spectrum. In order to know how long must be the measurement, I should sum this value with the number of revolutions that the filter delay implies and also sum the three pulses that are deleted at the beginning.
This sound complicated but maybe could be done. The problem however, is that the "Y" array which comes out from "oa_CIC Interpolation Filter" does not include all the pulses to the (n-3) pulse. It contains less than that, but I am not able to calculate how many it includes because the operations inside are performed through a dll or something like that. Do you know what determines the length of the signal to be resampled. (is clear to me that the first element is given by the filter delay, but the last element??)
The result: I cannot determine how should I make the acquisition in order to obtain a given spectrum; I can only acquire and then let the vi's to build a order spectrum with characteristics that I can't modify.
Best regards,
CJMV
02-22-2008 08:19 AM - edited 02-22-2008 08:21 AM
02-22-2008 09:31 AM
02-22-2008 02:32 PM
02-26-2008 05:40 AM