Subsystem using SimScape components
4 次查看（过去 30 天）
I am running a For Each Subsystem It uses Simscape components.
I get the error msg saying the EXEC_BBLOCK has a discrete sample time. Only constant (inf) or inherited (-1) sample times are allowed in iterator subsystem. The solver automatically changes to VariableStepDiscrete because SimScape models are used.
Does this mean that Simscape components cannot be used in subsystems?
Arnaud Miege 2011-8-10
If you look at the documentation for the For Each Subsystem, it says that "The For Each Subsystem block does not support [...] Blocks with continuous sample times or with explicit discrete sample times inside the subsystem". This means that you can't use Simscape blocks within a For Each subsystem since Simscape blocks have either a continuous sample time or a discrete sample time, if the local solver is used. What is it you are trying to do?