Comments on: Continuous sample time inside For Each Subsystem https://blogs.mathworks.com/simulink/2011/10/06/continuous-sample-time-inside-for-each-subsystem/?s_tid=feedtopost Guy Rouleau is an Application Engineer for MathWorks. He writes here about Simulink and other MathWorks tools used in Model-Based Design. Sat, 10 Dec 2011 12:33:24 +0000 hourly 1 https://wordpress.org/?v=6.2.2 By: vinayaga murugan https://blogs.mathworks.com/simulink/2011/10/06/continuous-sample-time-inside-for-each-subsystem/#comment-1643 Sat, 10 Dec 2011 12:33:24 +0000 https://blogs.mathworks.com/seth/2011/10/06/continuous-sample-time-inside-for-each-subsystem/#comment-1643 is there simulink block to get signal from fuzzy logic output to a parallel signal to output help me sir

regards
vinayaga murugan

]]>
By: Guy Rouleau https://blogs.mathworks.com/simulink/2011/10/06/continuous-sample-time-inside-for-each-subsystem/#comment-1587 Thu, 13 Oct 2011 13:40:46 +0000 https://blogs.mathworks.com/seth/2011/10/06/continuous-sample-time-inside-for-each-subsystem/#comment-1587 @Paul:

– Yes the For Each subsystem now supports hybrid systems containing multiple sample times, discrete and continuous.
– You are right when mentioning that you cannot pass different arguments or parameters for different iterations, this is something we are looking to improve in the future.
– Thanks you for mentioning the wrong link, it should be fixed now.

]]>
By: Paul J. https://blogs.mathworks.com/simulink/2011/10/06/continuous-sample-time-inside-for-each-subsystem/#comment-1586 Thu, 13 Oct 2011 01:50:27 +0000 https://blogs.mathworks.com/seth/2011/10/06/continuous-sample-time-inside-for-each-subsystem/#comment-1586 Excellent addition! I was surprised that this feature wasn’t supported when the ForEachSubsystem was originally introduced, but glad to see it now. Does this block now support hybrid subsystems with continuous blocks and discrete blocks with different sample times? I see also that the block can support a Model Reference. Are there any constraints on the Model Reference other than that it can’t be running in Normal mode? I assume that just like other blocks, there is no way use different model arguments to the different iterations of the Model Reference?

Also, the link at the top of the post to the relevant page in the doc is pointing to the R2011A documentation.

]]>
By: Guy Rouleau https://blogs.mathworks.com/simulink/2011/10/06/continuous-sample-time-inside-for-each-subsystem/#comment-1585 Tue, 11 Oct 2011 21:41:58 +0000 https://blogs.mathworks.com/seth/2011/10/06/continuous-sample-time-inside-for-each-subsystem/#comment-1585 @Michael:

You are bringing up an important point. Many Simulink blocks (like Gain, Sum and Integrator) support vectorization and do not need to be placed inside the For Each subsystem.

The For Each subsystem becomes useful when your algorithm requires blocks that do not support vectorization. Unfortunately, this is currently not possible to pass different sets of parameters to each iterations of the For Each. We are aware of this need and are looking into improving this in a future release.

]]>
By: Guy Rouleau https://blogs.mathworks.com/simulink/2011/10/06/continuous-sample-time-inside-for-each-subsystem/#comment-1584 Tue, 11 Oct 2011 21:36:15 +0000 https://blogs.mathworks.com/seth/2011/10/06/continuous-sample-time-inside-for-each-subsystem/#comment-1584 @Sean:

As you can guess, determining what will be the next feature supported by Simulink HDL coder is a question of prioritization.

I recommend contacting technical support with a description of your use case if this enhancement could have a significant effect on your application.

]]>
By: Michael https://blogs.mathworks.com/simulink/2011/10/06/continuous-sample-time-inside-for-each-subsystem/#comment-1583 Tue, 11 Oct 2011 14:02:25 +0000 https://blogs.mathworks.com/seth/2011/10/06/continuous-sample-time-inside-for-each-subsystem/#comment-1583 Thank you for point this out. The way I previously solved the problem was by constructing the filter using “primitive blocks”: gain, integration and summation (as a state block diagram). This method has one advantage in that the resulting transfer function can be different for each element of the vector by using a diagonal matrix for the gain block.

]]>
By: Sean https://blogs.mathworks.com/simulink/2011/10/06/continuous-sample-time-inside-for-each-subsystem/#comment-1577 Fri, 07 Oct 2011 00:33:41 +0000 https://blogs.mathworks.com/seth/2011/10/06/continuous-sample-time-inside-for-each-subsystem/#comment-1577 I would like to make a plug for supporting the FOR-EACH subsystem in the HDL Coder. It seems like it should be relatively straight forward to map the FOR loop to an HDL FOR-GENERATE statement. That would add a significant amount of power to the product.

Just a thought.

]]>