how to set data store variable as block parameter variable?
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello,
In simulink, I have created a variable Fr using the data scope memory block(also using data store read & write). How can I set this variable name Fr into sine wave block for frequency as Fr as parameter? I tried to create the parameter variable from the model editor but it ask for value. I deleted param field and write Fr there and I had to specify variable in the value which is empty [ ]. I tried writing =Fr in the value field but is not working.
Thank you
댓글 수: 0
답변 (1개)
Fangjun Jiang
2021년 11월 1일
편집: Fangjun Jiang
2021년 11월 10일
Use a Math function block. y=sin(2*pi*Fr*t), specify Clock multiplied by Fr as input and perform sin() function on it.
참고 항목
카테고리
Help Center 및 File Exchange에서 Sources에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!