09-06-2017 01:35 PM
Hello All...
I am using DasyLab 13 Pro. In my worksheet, I have the output of a Transfer Function module (Add-ons) going into a Y-t chart to display transfer function magnitude / phase vs. frequency. The transfer function module gives a double-sided frequency spectrum which I'd like to truncate. Let's say the block size is 32768 and I am trying to keep the first 12800 points. I tried this at first with a "cut out" module but when I do this the block size of the output blocks is still 32768 so I get overlapping blocks. I could use the "replace with zeros" option in the "cut out" module but ideally I'd like to have output blocks that have a block size of 12800 and have the correct frequency abscissa. Is there an easy way to do this?
Thanks!
09-07-2017 07:39 AM
In DASYLab 13.0 and DASYLab 2016, the Cut Out works as you expect.
My input block is 8192. I configured it for 0 to 5000, with NO replace with zeros, and the output block size is 5001.
You may need to select the setting to keep the original time stamp.
09-07-2017 08:52 AM
09-07-2017 08:58 AM
Can you attach that worksheet?
09-07-2017 09:07 AM
CJ - See attached.
Thanks!
09-07-2017 09:29 AM
Ok... I see the behavior.
09-08-2017 10:42 AM
What I have *been* doing is exporting the whole thing and manually deleting the unwanted rows. The replace by zero option is OK but I'd rather get rid of the rows entirely! I have tried a couple of different approaches but they all end up messing up the time (frequency) data...
09-11-2017 07:58 AM
It turns out, that may be the best thing.
The sampling rate defines the range for the x-axis (e.g. 2000 Hz) and the block size acts as resolution ("points-per-millimeter") for the signal that always "fills“ the entire space of the x-axis. We are in frequency domain, not in time domain.
When you cut the block, it does not alter the sampling rate, so the x-axis of the Y/t chart is not modified.
When you reduce the number of samples, the range of the x-axis needs to be filled with samples, so the Y/t chart collects samples to show a record of data that fills the range.
When you reduce a block, the short block flag is set to indicate that it is not the original block size. The Relay module does this too. The short block size is not guaranteed to be equal for each block. For example, one block could be 1000 sample wide, the next 20, the following 4000, etc. As a result, the range of the x-axis of Y/t chart would be jumping between different ranges…
Visualisation in Y/t-chart:
You need to use the Zoom function to change the x-axis range to something smaller that the maximum range defined by the sampling rate.
Saving to file:
Use the „Data window“ to reduce the amount of samples written to the file.
Do not show the output of the Data window in a Y/t chart: the x-axis has the range defined by the sampling rate, the data-windowed samples still fill the entire range – but that is… not correct.
This may be a solid case for post-processing with a different program.
09-11-2017 10:32 AM
CJ - thanks for your help. I'm glad to know what is really going on here!