Repeating Sequence Interpolated 여러 개 사용 시 delay 발생
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Repeating Sequence Interpolated 블록을 사용하여 일정 주기의 신호를 반복 생성하려고 합니다.
블록 여러 개를 동시에 사용하여 확인해보니 신호별로 delay가 발생합니다.
해결할 수 있는 방법이 있을까요?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1482051/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1482056/image.png)
(4s에 모든 신호가 동시에 출력 됐으면 좋겠는는데 조금씩 delay가 발생합니다)
1 commentaire
Réponse acceptée
Kilsu Kim
le 15 Sep 2023
안녕하세요,
현재 구성하신 시간 벡터 값에 따르면, 시뮬레이션 시간 2초가 되었을 때 블록은 값 1을 출력합니다. 그리고 곧바로 같은 시간에 값 0을 출력해야하는데, 같은 시간에 두 개의 값을 출력할 수는 없습니다. 따라서 아래와 같이 시간 벡터의 마지막 요소에서 샘플 시간 만큼의 값을 빼서 사용하시면 원하시는 결과를 얻으실 수 있을 것이라 생각합니다. 아래 이미지에서 Ts는 사용하신 샘플 시간인 0.01입니다.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1483256/image.png)
아래는 시간 벡터 값에서 샘플 시간을 뺀 것과 그렇지 않은 케이스를 비교한 결과입니다.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1483261/image.png)
위 내용이 도움이 되길 바라겠습니다.
0 commentaires
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!