03-13-2020 06:13 AM
Hello everyone,
I have usecase with a relatively small signal to noise ratio but a "slowly" changing signal. So i can easily use a moving average to filter out the noise.
This setup requires a "high" (100Hz) sampling rate to work reliably. However I don't need that resolution. Saving the Value with a frequency of 1Hz is plenty.
I Know i can resample the signal after it has been saved. However our measurements can run for Days and Saving 100 times the Data is both unnecessary and problematic.
Is there any to save data using a different frequency than the sampling rate?
Thank you for your Input!
Solved! Go to Solution.
03-13-2020 10:22 AM
Why not re sampling to 100Hz, do your moving avg, resample result to 1Hz and save
03-13-2020 10:27 AM
Because i can not find any way to resample the Signal inside DAC before it is saved into a channel (And wastes RAM and or Disk capacity).
03-13-2020 10:32 AM - edited 03-13-2020 10:33 AM
I meant resample in DIAdem (collect at 1 hz in dac) to 100hz then preform post processing in DIAdem, resample back down to 1Hz then save the file
03-16-2020 02:14 AM
Okay, i might be missing something here. But I think this will not work. If i only record one measurement per second, resampling afterwards will not add any Information. However I need all 100 samples to average out the noise.
03-23-2020 09:56 AM
In the end the sollution was very easy. Simply run the whole dac on the desired sampling frequency set in the Top left Block("Takt 1" Whatever that is in english. Changing the Language requires a re-intall...). Add a Clock with a periodic signal in the frequency you want to save at in the top right block ("Zeit1")
The Yellow clock will trigger a signal at the sampling frequency. But the Save Block will only save e.g. once a second.
Hope it helps anyone who has the same Issue