Hello, can someone please help me understand this error?
이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
이전 댓글 표시

I'm particularly confused about the part which says '... and the phase delay parameters of this block need to be integer multiples of the fixed step size.
댓글 수: 1

this is the Simulink model
채택된 답변
Fangjun Jiang
2023년 9월 25일
편집: Fangjun Jiang
2023년 9월 25일
If the pulse width is 87.85%, then the gap of the pulses will be 12.15%. Then you have to be able to distinguish at least 0.05% of the period to be able to make the 87.85% pulse and the 12.15% gap.
0.05% of the period (5e-7) is 2.5e-10, the number in the error message.
In other words, the simulation program has to be able to increase the simulation time every 2.5e-10 to be able to make the pulse. Your simulation step size (0.2) is way more bigger than that. Changing the simulation step size to be 2.5e-10 will fix the problem.
Feeding the Pulse Generator to the control port of the Multiport Switch block doesn't make sense. The value of the control port should be 1, or 2, or 3, to pass the 1st, or the 2nd, or the 3rd input, just like the icon of the block indicates.
Constant value [0.3:0.4] or [0.4:1.2] or [1.2:2] don't make sense either.
[0.3:0.4]
ans = 0.3000
[0.4:1.2]
ans = 0.4000
[1.2:2]
ans = 1.2000
댓글 수: 10
How can I determine the gap between the pulses?
I'm trying to create an input selector with three inputs. I thought I'd use constant blocks with specific input source ranges, such as [0.3:0.4] for TEG, [0.4:1.2] for PV, or [1.2:2] for PZT. Can you suggest ways to correct this?
Fangjun Jiang
2023년 9월 26일
편집: Fangjun Jiang
2023년 9월 26일
I am not clear what you are trying to do. Is there only "one" input which ranges from 0.3 to 2? You can use a Lookup Table block to generate an output which value is 1 or 2 or 3, then use this output to control a Switch.
Danikha Shyken
2023년 9월 26일
편집: Danikha Shyken
2023년 9월 26일
No, we have three input sources. TEG source is from 0.3 to 0.4V, PV source is from 0.4 to 1.2V, and PZT source is from 1.2-2V; with a 1.8V battery. The available voltage sources among the three will be used to power up a buck-boost converter.
If the available source is TEG, the system will operate in boost mode; if the available source is PV, then the system will operate in boost mode, and the system will operate in buck mode if PZT is available. Battery is selected when all three sources aren't available.
Which is the control variable? How do you determine which source to use?

this is the entire simulink model
You have 4 inputs (4 manual switches) and one output ("mode"). The 4 inputs need to be prioritized because there could be more than one switches turned On at the same time. You can use 4 Switch blocks in series to implement the logic. The order of the Switch block will reflect the priority.
The logic can also be implemented using a simple "if-elseif" statement, which you can do in a MATLAB Function block.

This is what's inside the input selector.
Danikha Shyken
2023년 9월 27일
편집: Danikha Shyken
2023년 9월 27일

And yes, we already have the"if-elseif" statement in a MATLAB Function block.
Your logic is all mixed up. This is my final comment on this topic.
- Use a MATLAB Function block with "if-elseif" statement to process 4 manual switch inputs to create an interim output. The value of the interim output could be 1, 2, 3 or 4.
- Use this interim output to control that Multi-port Switch to pass through 4 possible voltage source. You got a single voltage output signal. The range of this signal is from 0.3 to 2.
- Use another MATLAB Function block to read the value of this single voltage signal to generate the output signal "mode". You seem to have this function already.
- There is other simpler way to do this. But at least, this approach should be able to generate the desirable output signal "mode".
I understand. Thank you so much for your time and insights; your assistance has been valuable.
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Simulink Functions에 대해 자세히 알아보기
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
