Main siteMain site  ForumForum  ForumSearch  Private messageEmail contact  RegisterRegister  Log inLog in 
Topic: Retrieving sample rate of running XDFReader
Reply to topic
Author Message
Marius



Joined: Jun 10, 2013
Posts: 51

PostPosted: Jun 10, 2013 6:49 PM    Post subject: Retrieving sample rate of running XDFReader

Hi Jarek,

I want to retrieve the sample rate of a currently running XDFReader,
which should be determined by the rate of the file being replayed.
However the getter will always retrieve fom Signal Properties the rate related to the
PREVIOUSLY replayed file.
Retrieving the rate from a valve after the XDFreader's output will not
work, as always -1000 will be retrieved.
I need this information for upsampling of different rate recordings to a single global maximum rate.

I've generally noticed that the rate showing in signal properties is not
always up to date, but this time it's causing a problem.

Marius
jarek



Joined: Oct 22, 2007
Posts: 1073

PostPosted: Jun 10, 2013 6:58 PM    Post subject:

The current rate should be available out of XDFFileReader.

As I understand, you change the file name, and still get the rate of the previous file. You need to make sure you reinit (or start) the XDFileReader element after the new file name was set.
Reply to topic