Point on surface constraints connection issue.

3 views (last 30 days)
I want to connect follower pin of rigid transform with the base pin of point on surface contact but it is not connecting to each other why? How can do to connect it with the base of that block. I think it is the incompatible connection but I have to connect it.

Answers (1)

akshatsood
akshatsood on 10 Nov 2023
Edited: akshatsood on 10 Nov 2023
I understand that you want to connect follower pin of "Rigid Transform" block with the base pin of "Point on Surface Constraint" block. However, a direct connection is not possible due to difference in the nature of the ports. Have a look at the snapshots attached below for both the blocks.
For "Rigid Transform" block, both B and F are frame ports that represent base and follower frames respectively.
For "Point on Surface Constraint" block, B is a geometry port while F is a frame port.
Due to differences in the data types propagated by the frame port and the geometry port, it is not feasible to connect them together. Further, you can also observe the incompatibility by using the code for connecting these two blocks. Here is the code snippet for your reference
p1 = get_param(rigidTransform, 'PortHandles');
p2 = get_param(pointOnSurfaceConstraint, 'PortHandles');
add_line(gcs, p1.LConn, p2.RConn);
On executing the above code, you will get the following error which justifies why the connection is not possible.
The points input must only create line connections that follow connection rules of the
appropriate Physical Modeling domains
I hope this helps.

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!