Physical Connection (Physical Modeling)

조회 수: 11 (최근 30일)
Greg
Greg 2011년 4월 28일
How can I integrate custom code into Simulink and add a physical connections to the custom code blocks (such as those used in Simdriveline)?
I would like to use engine data (throttle position,torque,speed,and horsepower) from a spreadsheet in simulink and connect it to Simdriveline components.

채택된 답변

Kaustubha Govind
Kaustubha Govind 2011년 4월 28일
I don't have experience with Physical Modeling, but I know that you can use the Simscape Language to build custom components.
Regarding importing data from spreadsheets, you can use the Signal Builder block to do this (use a Simulink-PS Converter to connect it to physical components).

추가 답변 (1개)

Arnaud Miege
Arnaud Miege 2011년 4월 28일
You can interface between Simulink and Simscape/SimDriveline (assuming you are using the new version of SimDriveline in R2011a)using the Simulink-PS Converter and the PS-Simulink Converter blocks. If however, you just want to use a look-up table approach, I would suggest using the PS Lookup Table (1D) or PS Lookup Table (2D) as they will allow you to stay within the Simscape environment and avoid introducing algebraic loops.
If you are using an older version of SimDriveline, then you will need to use blocks like Torque Actuator, Torque Sensor, Motion Actuator and Motion Sensor to interface between Simulink and SimDriveline.
HTH,
Arnaud
  댓글 수: 1
Greg
Greg 2011년 5월 9일
This answer was acceptable!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Foundation and Custom Domains에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by