Simulink 2019b Fnc block not working
조회 수: 1 (최근 30일)
이전 댓글 표시
I'm using a Fnc block in Simulink in a motor modeling simulation and it is not working. I'm using the Fnc block to model torque ripple by setting the block to sin(6*u(1)), where the input u(1) is the motor rotor angle theta and the Fnc output should be a sine at 6x the rotor frequency.
If I use sin(u(1)) I do get an expected result, but if I use sin(6*u(1) the result is wrong. I have a relay block after the Fnc and it works in all cases.
sin(6*u(1)) sin(u(1))
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/386803/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/386808/image.png)
It's almost like the Fnc block does not sample every simulation step. It is a continuous time simulation.
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 General Applications에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!