For a school project I need to create a Simulink model to simulate the behaviour of my prototype.
I made the following model (which is not finished yet), however, I'm new to Matlab and Simulink, and there are a few things I don't understand:
- Why the if/elseif/else signals are represented as dotted lines and not as solid lines? What does it mean?
- It seems all the three if/elseif/else statements are executed. I get this type of warning in the Command Window:
Warning: The block 'BLOCK NAME' is writing to the data store 'BLOCK NAME' but the block(s) 'BLOCK NAME' have already written to a portion or the entire region of this memory at time 0.0
- The scope always shows 0 while it should shows 250.
Model: http://pastebin.com/sMrKn2C2
Thank you.