|
"Eric " <etgonehomie22@gmail.com> wrote in message <jthgbn$sp5$1@newscl01ah.mathworks.com>...
> "Phil Goddard" <phil@goddardconsulting.ca> wrote in message <jtfqtr$k1c$1@newscl01ah.mathworks.com>...
> > How is the variable A propagated through the model?
> >
> > Assuming it's a signal then put the To Workspace block after the t=0 and t>0 values have been merged.
> >
> > Phil.
>
> Thanks Phil for the help!
I just tried this and it actually didn't work. I forgot to mention that the variable is a read/write data block. This is because the variable A gets modified and used throughout the simulation. When I used the write data A on both the if and else statements, and then merged it at the end, the read data A block wasn't reading properly. Sorry if this is confusing, but if possible, would anybody be willing to look at my simulink model? Thanks again in advance!
- Eric
|