DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Save using a different frequency than the sample frequency

Solved!
Go to solution

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!

0 Kudos
Message 1 of 6
(3,008 Views)

Why not re sampling to 100Hz, do your moving avg, resample result to 1Hz and save

0 Kudos
Message 2 of 6
(2,968 Views)

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).

0 Kudos
Message 3 of 6
(2,966 Views)

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

0 Kudos
Message 4 of 6
(2,963 Views)

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.

0 Kudos
Message 5 of 6
(2,911 Views)
Solution
Accepted by topic author User3086107985

 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")

 

del.PNG

 

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

Message 6 of 6
(2,881 Views)