Can you call Simulink models recursively?
43 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Jan
el 26 de Nov. de 2024 a las 15:27
Comentada: Jan
el 27 de Nov. de 2024 a las 13:50
Hi all,
I have a feeling that what I try to do can be done more elegantly. Please let me know if you think of a solution.
A digital-to-time converter (DTC) works as a string of unit-delay cells and a multiplexer that picks one of the intermediate points in the string to select a specific delay. An example is shown here, where the input square wave is delayed by multiples of 1 second (0, 1, 2, or 3 seconds). The index 2 selects the first delay output, thus 1 second delay, as it shows in the scope picture.
This is fine if one needs only a limited number of delay settings, but what if 100 are required? This brute force method of drawing the model can then take all day, and it is quite error-prone. Is there a way to make this easier (like nesting models, recursevly instantiating models, defining the delays as an array and connecting the inputs and outputs by name, etc.)?
0 comentarios
Respuesta aceptada
Michael
el 26 de Nov. de 2024 a las 16:56
Hi Jan,
I am not sure if I understand you correctly. But maybe this could be a solution for your task?
Más respuestas (1)
Ver también
Categorías
Más información sobre General Applications en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!