09-02-2010 10:26 PM
I am having some problem on reading and processing ascii files. the problem is that when ever i try to filter this data this gives an error message that "the specification doesn't meet Nyquist criterion "
can anybody help me out that how to properly read the data and filter it and then save it as ASCII again
thanx in advance
Solved! Go to Solution.
09-02-2010 10:35 PM
Your text file looks like the data was saved with a 1 Hz acquisition rate. (The X values, are at 0, 1, 2, 3, ..... and the Delta X is listed as 1.0)
But your filter is set for a cutoff of 20 Hz. You would need to have an acquisition rate of at least 40Hz to meet Nyquist criterion.
Either you did not acquire at the acquisition rate you thought you did, or when the data was saved to the text file, the timing information was not saved with it and it defaulted to a rate of 1 Hz.
09-02-2010 10:45 PM
the signal was sampled with 1k. actually it is a data recorded at 8kHz then i have downsampled it to 1khz. and i know the highest possible frequency content of the analog signal is 35 hz
it may happen that time stamp is some how deleted
but have any idea how to proceed now?
i mean to construct time stamp properly and do the filtering
09-02-2010 10:49 PM
You can take the waveform datatype that comes out of the Read File function. Use Get Waveform components to get the Y array of data, then use Build Waveform to build in the correct value for dT.
You may have to do this in a For Loop with auto-indexing enabled since it is a 1-D array of waveforms coming out of the Read File function.
09-02-2010 10:51 PM
thanx thanx i am trying
coming back in munites