How to convert aTapped Delay block for TargetLink?

2 views (last 30 days)
Hey guys,
I'd like to convert a "tapped delay block" from Simulink to TargetLink. However, this kind of block isn't supported by TargetLink. So my first approach was to create a s-function that implements the functionality of such a delay. That works fine, as long as I don't prepare the system for a TargetLink application. Then the output signal is completely different. That's why, in my opinion, the second approach would be to use existing simulink blocks in order to emulate a tapped delay. I'm afraid I'm not able to get that done. Somehow, a loop is needed to delay the input signal. Considering the fact that only unit delays and no integer delays are supported I'm really stuck right now.
Hope you've got an idea on that issue...

Answers (2)

TAB
TAB on 17 Dec 2012
Edited: TAB on 17 Dec 2012
You can implement same behavior as Taped Delay block using number of *Unit delay blocks in series.
See the snap here

Kevin
Kevin on 17 Dec 2012
Edited: Kevin on 17 Dec 2012
thanks for that hint. The only problem is that I need 700 single unit delays - to paste them manually is the issue I'm trying to avoid...
  1 Comment
Kaustubha Govind
Kaustubha Govind on 26 Dec 2012
Kevin: In that case, going with your original approach of writing an S-function seems like the correct solution. Can you elaborate on how it doesn't work? Have you written a TLC file for your S-function?

Sign in to comment.

Categories

Find more on Simulink in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!