Two SerialLinks in one plot, Simulink

87 views
Skip to first unread message

Alex Smith

unread,
Sep 11, 2012, 1:19:32 PM9/11/12
to robotics...@googlegroups.com
Hi, 

Is there a way of getting two robot arms into the same plot? I am able to do this with code (using hold on), but is it possible in Simulink?

Peter Corke

unread,
Sep 12, 2012, 8:54:36 PM9/12/12
to robotics...@googlegroups.com
If the robot's have different names it should work.  The Simulink block calls the plot method eventually.  Let me know what actually happens.

peter

On 12/09/2012, at 3:19 AM, Alex Smith wrote:

Hi, 

Is there a way of getting two robot arms into the same plot? I am able to do this with code (using hold on), but is it possible in Simulink?

--
You received this message because you are subscribed to the Google Groups "Robotics & Machine Vision Toolboxes" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/robotics-tool-box/-/kKkINnfc2b4J.
To post to this group, send an email to robotics...@googlegroups.com.
To unsubscribe from this group, send email to robotics-tool-...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/robotics-tool-box?hl=en-GB.

Alex Smith

unread,
Sep 13, 2012, 5:06:13 AM9/13/12
to robotics...@googlegroups.com
Hi Peter, 

They have different names, but as you can see in the attached screen-grab only the last plot added actually appears.

Alex 
twolink.jpg

Peter Corke

unread,
Sep 13, 2012, 7:14:47 AM9/13/12
to robotics...@googlegroups.com
Alex,

I checked in a couple of new files to robot/simulink, slplotbot and roblocks.mdl.  Check them out from


and see if they work for you.  I've had to save roblocks as a 2012a format file (I've upgraded) and hopefully that doesnt cause backward compatibility.

The plot block now has a hold checkbox.

peter

Alex Smith

unread,
Sep 13, 2012, 9:54:04 AM9/13/12
to robotics...@googlegroups.com
Works great, thanks Peter! 
Reply all
Reply to author
Forward
0 new messages