Simulink: Use a block property token to trigger an event
조회 수: 2 (최근 30일)
이전 댓글 표시
I'm trying to use a three-phase breaker block property token (%<switchA>) outside of the block for a breaker status indicator (passing it to other blocks in Simulink).
I don't really know how to pass the value of that token beyond its respective block.
Thanks!
댓글 수: 0
채택된 답변
Joel Van Sickel
2020년 8월 5일
Hello Adam,
there are two ways a breaker may be controlled. One is that an external signal, simulink for specialized poewr systems, or physical signal for simscape controls the breaker status. In this case, you can provide this signal to the other blocks that need to know the breaker status. (may need to duplicate logic to check if signal is above/below the threshold voltage).
If you are using the specialized power systems block which can specify break times internally, then it is a bit more challenging. I would recomend 2 approaches.
Easy: use the measurement ports to look at current through the breaker, and when it is below a certain small threshold, say that the breaker is closed. this will be wrong in cases where there simply is no current regardless.
hard: use the fact that you can create a custom specialized power system block to pull the gate signal out to get actual status of the breaker. I took a pass at it and included it below but haven't tested it (v2020a).
Regards,
Joel
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Nonlinear Operators에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!