From: Gerry on 9 Mar 2010 12:33 Hello, I am developing a model that activiates certain subsystems when a time condition has been met. What I am observing is that once the 2nd block of "if/then" subsystem becomes "true" it continues to operate even if the 1st block of the if/then subsystem condition is no longer met. I've selected the "reset" option within the if/then subsystem, but that didn't change the result. I suspect I am missing a subtle point in how to create this kind of functionality within a if/then subsystem. Love some pointers or links I can review. Essentially, I want the if/then statement to work only when the specific time condition is met. Thanks for anyone's help, Gerry
From: Gerry on 11 Mar 2010 10:47 > Hello, > > I am developing a model that activiates certain subsystems when a time condition has been met. What I am observing is that once the 2nd block of "if/then" subsystem becomes "true" it continues to operate even if the 1st block of the if/then subsystem condition is no longer met. I've selected the "reset" option within the if/then subsystem, but that didn't change the result. I suspect I am missing a subtle point in how to create this kind of functionality within a if/then subsystem. Love some pointers or links I can review. Essentially, I want the if/then statement to work only when the specific time condition is met. > > Thanks for anyone's help, > Gerry I posted this question in Seth's blog and Guy answered it at: http://blogs.mathworks.com/seth/2009/08/20/a-better-if-else-construct/#comment-997 The key point is there are additional "held/reset" options even on the output of a subsystem
|
Pages: 1 Prev: how to plot cdf as scatter plot Next: Passing data between functions in a GUI |