PWM voltage for specific application
이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
이전 댓글 표시
0 개 추천
Can we connect "simulink to ps converter" block terminal to any pwm voltage block and which one?
채택된 답변
Ameer Hamza
2020년 4월 9일
1 개 추천
Yes, you should be able to interface PWM blocks from Simulink and simscape using PS-Simulink and Simulink-PS converters. I know these connections can get a bit confusing sometimes. A while ago, I wrote a brief explanation on this issue on an answer to another question: https://www.mathworks.com/matlabcentral/answers/509668-how-to-check-the-outputs-of-the-incremental-shaft-encoder-in-simulink#comment_809244
I am pasting the same explanation here.
These are few rules which will help you pick the correct blocks.
- Simscape signals are different then the normal simulink signals. We need to use converters (PS-Simulink and Simulink-PS blocks) to connect them.
- In simscape, there are several libraries. Blocks in each library have special conservative ports and physical signal port. For example, look at this block from simscape electrical
. It has two voltage conservative port (marked with small dots), and one physical signal port marked with triangle. The voltage conservative port can only be connected to other blocks in same library (in this case simscape electrical, they cannot be connected with simscape mechanical or even simscape power electronics). - Even for special conservative ports, only output and input can be connected. Input - Input or output - output will not connect.
- Since conservative ports are confined within their own library. Only physical signal ports can be connected with the converters mentioned in point 1.
- You can also use physical signal ports (marked with triangle) to connect blocks from different simscape libraries. For example, rotational motion sensor for simscape mechanical, and controlled voltage source from simscape electrical can be connected through this. Both these blocks have physical ports. These are use to transfer signals from one library to the other.
- You can look at the documentation of the block. Mostly it mentions the type of each port and how it can be connected.
댓글 수: 11
Pradeepta Sahu
2020년 4월 10일
I understand this. But I do face a problem while connecting few blocks of other simscape libraries with PS port of Simulink-PS block.
For an example, If I would like to connect Simulink-PS block with PWM Generator (DC-DC) block, it is not connecting. Can you check it and let me clarify about this to what can be done?
Also, one more doubt how I would connect with PWM generator to Switch. This is to send the PWM signal to the switch. For reference, I have attached the slx file.
Hope you got the clear picture about the problem statements.
Ameer Hamza
2020년 4월 10일
Pradeepta, the PWM Generator block in the attached file already accept the Simulink signal ports at the input, why do you want to connect it to Simulink-PS? You can connect the Simulink-PS block at its output if you want to connect it with other simscape blocks. Most of the blocks in the Simscape power electronics library already provide a direct interface with Simulink, and therefore, do not any extra blocks.

Pradeepta Sahu
2020년 4월 10일
편집: Pradeepta Sahu
2020년 4월 10일
Got it. But one more problem with PWM generator block to switch block. Can you check it?
Ameer Hamza
2020년 4월 10일
Are you referring to this switch block?

Pradeepta Sahu
2020년 4월 10일
Yes. The same switch block.
Ameer Hamza
2020년 4월 10일
It is connected like shown in the image. Is there still some issue?
Pradeepta Sahu
2020년 4월 10일
I tried with the above image. The arrows what you have mentioned couldn't connect. What is the issue? Is it with same version 2017a version or how could I get this?
Ameer Hamza
2020년 4월 10일
Can you point out which arrow? The black and white arrow connected after the port name P is Simulink to the PS converter block. In old MATLAB releases, it is shown as a square block. In later releases, it was converted to this arrow symbol. However, both works in a similar manner.
Pradeepta Sahu
2020년 4월 11일
Yes I got this. I was facing the problem because of old release. Thank you for your suppport.
Ameer Hamza
2020년 4월 11일
Glad to be of help.
Pradeepta Sahu
2020년 4월 11일
Thanks again.
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Electrical Sensors에 대해 자세히 알아보기
참고 항목
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)
