Simulink Serial-In Parallell-Out Shift Register with reset capability

3 views (last 30 days)
I need to use a Serial-In Parallell-Out Shift Register in Simulink to retain a certain number of samples of a generated signal. I also need to be able to reset all the shift register when requested.
I have found the "Serial-In Paralell-Out Shift Register", the "Tapped Delay" and the "Discrete Shift Register" blocks, which almost perform the functionality I need, but they don't have the ability to reset the whole register when needed.
On the other hand, there is the "Resettable Delay" block, which allows a variable delay length and a external reset, but there is no possibility to access all the memorized values at one time. What I need could be done by using multiples "Resettable Delay" blocks but this is a pretty bad solution since I need a large size shift register.
I also tried to make a workaround with a Matlab function, but compiling fails because of the underdefined signal sizes (I keep trying with this option).
Is there any block or workaround to do it in simulink?
Thank you very much in advance,

Answers (0)

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!