Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

latency delay ping timer

DSP related issues, mathematics, processing and techniques

latency delay ping timer

Postby kinicho » Fri May 29, 2015 4:31 pm

Hi,

this is my first post.. please be kind..

I am trying to build a latency delay ping timer akin to the one found in cubase and nuendo to measure the latency caused by the audio card.

I hacked a little timer but my guess is that ruby Time is not accurate enough
-
ideally i would like to send a dirac spike and get a delay value in samples

any help and hints would be greatly appreciated.

greets kinicho
Attachments
_delay_ping_timer_001.fsm
(53.97 KiB) Downloaded 1218 times
kinicho
 
Posts: 5
Joined: Thu Jul 22, 2010 12:41 pm

Re: latency delay ping timer

Postby MyCo » Fri May 29, 2015 5:12 pm

Since you need sample accurate measurements there is only really one option: Measure the time in stream. I've attached a sample schematic that does exactly that. It counts the samples between two stream events.

You can hook up the 2 inputs to the code module to your detector (eg. the envelope followers). But since the envelope follower output is a continous up/down counting value you have to implement a hysteris converter, something like if value greater x output 1, else output 0.
Attachments
counter (MyCo).fsm
(1.76 KiB) Downloaded 1253 times
User avatar
MyCo
 
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany

Re: latency delay ping timer

Postby kinicho » Fri May 29, 2015 7:34 pm

Wow! Amazing - thank you very much. :D
this makes a lot of sense.. I should be able to finish this now -
:)
kinicho
 
Posts: 5
Joined: Thu Jul 22, 2010 12:41 pm

Re: latency delay ping timer

Postby kinicho » Mon Jun 01, 2015 1:50 pm

I had a go, but did not get very far.
the ping back works I can trigger the start and stop but i get varying results:
I then tried a trigger delay to see if it would give me the same result - but it doesn't

could you explain?
Attachments
counter_MyCo_02.fsm
(2.13 KiB) Downloaded 1229 times
kinicho
 
Posts: 5
Joined: Thu Jul 22, 2010 12:41 pm

Re: latency delay ping timer

Postby kinicho » Mon Jun 01, 2015 1:53 pm

here's what i got so far:
using exo's sample player
Attachments
_delay_ping_timer_008.fsm
(106.73 KiB) Downloaded 1219 times
kinicho
 
Posts: 5
Joined: Thu Jul 22, 2010 12:41 pm

Re: latency delay ping timer

Postby MyCo » Mon Jun 01, 2015 5:11 pm

You can't have any green stuff in the measurement path, because green is not realtime. You can only measure as low as one buffersize when you use green. I've attached an example of how to use the measurement in stream only. It uses just the envelope followers and a converter code, that changes it output when the envelope follower crosses a threshold level.
Attachments
feedback measurement (MyCo).fsm
(136.28 KiB) Downloaded 1289 times
User avatar
MyCo
 
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany

Re: latency delay ping timer

Postby kinicho » Mon Jun 01, 2015 6:51 pm

Ah I see - thanks very much MyCo!
I need to get into the DSP code module by the looks..
now i also understand your last post.
kinicho
 
Posts: 5
Joined: Thu Jul 22, 2010 12:41 pm


Return to DSP

Who is online

Users browsing this forum: No registered users and 25 guests

cron