I don't think you can change a value used in constant block ,as the name of the block suggests ,it is a constant value through out the execution.
Don't sent the data from a constant block , instead make a simple addition which increments by 0.2 every time with in the model(not from the code) and send the output of sum block to your data store block . Or compare the output of sum block with comparator block (==6).
I hope this serves your cause.
9 Comments
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/46225-how-to-send-continuous-data-from-simulink-block#comment_94982
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/46225-how-to-send-continuous-data-from-simulink-block#comment_94982
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/46225-how-to-send-continuous-data-from-simulink-block#comment_95344
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/46225-how-to-send-continuous-data-from-simulink-block#comment_95344
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/46225-how-to-send-continuous-data-from-simulink-block#comment_95345
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/46225-how-to-send-continuous-data-from-simulink-block#comment_95345
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/46225-how-to-send-continuous-data-from-simulink-block#comment_95360
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/46225-how-to-send-continuous-data-from-simulink-block#comment_95360
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/46225-how-to-send-continuous-data-from-simulink-block#comment_95361
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/46225-how-to-send-continuous-data-from-simulink-block#comment_95361
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/46225-how-to-send-continuous-data-from-simulink-block#comment_95364
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/46225-how-to-send-continuous-data-from-simulink-block#comment_95364
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/46225-how-to-send-continuous-data-from-simulink-block#comment_95365
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/46225-how-to-send-continuous-data-from-simulink-block#comment_95365
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/46225-how-to-send-continuous-data-from-simulink-block#comment_95368
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/46225-how-to-send-continuous-data-from-simulink-block#comment_95368
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/46225-how-to-send-continuous-data-from-simulink-block#comment_95370
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/46225-how-to-send-continuous-data-from-simulink-block#comment_95370
Sign in to comment.