How to change block sample time using a trigger
조회 수: 2 (최근 30일)
이전 댓글 표시
Could someone point me in the direction of which block I need to to use?
I have my Simulink model running at a fixed TimeStep of 0.001s. I have successfully created a TCP link using the TCP Client and TCP Send blocks. I do not want to pass the data to the TCP Send block every 0.001s, I only want to the pass the data to the TCP Send block when there is a trigger signal. The attached image shows what I would like to do:
I have tried the enabled/triggered subsystems but the output sample rate is the same as the input sample rate, i.e. 0.001s. For information, I am using Real-Time Simulation.
Is there any Simulink block that will change the output sample rate based on a trigger?
댓글 수: 0
채택된 답변
Dimitri MANKOV
2023년 8월 30일
Hi Thomas,
I would simply move the TCP Send block inside of the triggered / enabled subsystem, this should do the trick :)
Best,
Dimitri
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Target Computer Setup에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!