Simscape interface with Simulink

조회 수: 1 (최근 30일)
Don Brohaugh
Don Brohaugh 2021년 2월 24일
댓글: Don Brohaugh 2021년 2월 25일
I am trying to use a Simscape spring between the R port of a hydraulic cylinder (representing ins movement of the rod) and a movable Simulink frame, whose position is in inches, with a force sensor to measure the spring force, with refernce to the bottom end of the spring, top end connected to the cylindeer rod. See attached slx file .
The top sketch shows the spring bottom reference to Simscape mechanical ground or zero position. Works fine.
When I try to connect the C port of the force sensor block to some representation of the frame position in Simulink, I am lost.
Can you help me connect the Simulink frame position as a reference to the force sensor port C?
Thank you.
Don Brohaugh

채택된 답변

Juan Sagarduy
Juan Sagarduy 2021년 2월 25일
Hi Don
You can only connect physical inputs or outputs in Simscape to Simulink signals (through S-PS or PS-S Converters). C is a physical port so it can’t be linked to a Simulink signal.
Good luck / Juan
  댓글 수: 1
Don Brohaugh
Don Brohaugh 2021년 2월 25일
Thanks Juan for your reply.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simscape Multibody에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by