02-27-2007 12:33 PM
02-28-2007 01:37 PM
Come on guys! Give it a try:
I acquire a waveform, take it through the express filter (set on IIR, Butterworth) and save the filtered signal. If I stop data acquisition but not the program, wait a couple of seconds (time of interruption does not matter) and then restart data acquisition, I get a warning from the filter that tells me the data is not contiguous. I am not decimating the data or doing anything with it before the filter and right now it appears that the IIR filter refers to the old waveform to handle the new waveform coming in (which I do not like by the way).
If I stop not just the data acquisition but also the whole program and restart, then the warning signal does not show up. (Does the express filter has some sort of hidden reset?).
Anybody?!
02-28-2007 02:21 PM
02-28-2007 03:25 PM
Thank you for your answer.
From your answer I deducted that whenever I restart the data acquisition while the main program is still running I'd better make sure I reset the filter such that it will now "know" that it is new data coming in. I did not have a chance to check inside the express vi yet but from what you are saying it must be some sort of reset button in there that I could 'pull out' in the connector block of the subvi..
The band widths I am using are anywhere between 100 Hz to 40000 Hz so the transient duration will be short to very short and the system, the way it is setup now, will allow enough time to the IIR filter to handle correctly new data.
Finally there is always the option to acquire just the raw data. later I could read it back and filter it if necessary. However, there are situations when I want to filter out noise and possible alising frequencies; moreover, I acquire vibrations and forces in the same time on the same board - if I need the 40kHz sampling rate for vibrations, automatically I will have it too for the "low end" signals as well (0 to 10V from power and force sensors). I believe doing some filtering and maybe some decimation after filtering will help me keep the amount of data low on the 'low end' signals side. Am I correct in my assumptions?
Thanks again.