How to limit the Pulse generator Pulses ?
조회 수: 10 (최근 30일)
이전 댓글 표시
I need to run the stepper motor, the problem is that the Logic (MATLAB code (Simulink)) will be interfaced by the "dSpace (Control Desk NGV version 4)", which does not support the Stepper motor block, available in the Simulink Library.
In this case I can only use the "Pulse generator block".
What I need to do: Pulse generator will continuously generate the pulses and two (Constant Blocks) will take the input and generate the pulses unless the pulse reaches the second input block value, and then it should remain at zero.
Eg: I/P(1) = 0, I/P(2) = 20, so a Pulse generator will generate the pulses from Zero till 20 and then it should be stopped.
The basic problem is that all of the comparison block with whom I am familiar will make the decision by looking at the "Amplitude (values on Y axis)" and I need to compare or want to make a decision by Looking the values on the (x-axis).
댓글 수: 2
TAB
2012년 7월 2일
Some confusion !!
generate the pulses unless the pulse reaches the second input block value
Are you comparing time, so that pulse will be generated from 0 - 20 Seconds where 0 and 20 values are provided from 2 constant block ?
채택된 답변
추가 답변 (2개)
Manikandan
2015년 9월 15일
It's required pulse decoder system as like QEP sensor. For more information on how to implement, contact me on electricmani@yahoo.co.in
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Modeling에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!