{"id":10926,"date":"2021-10-29T11:12:01","date_gmt":"2021-10-29T15:12:01","guid":{"rendered":"https:\/\/blogs.mathworks.com\/simulink\/?p=10926"},"modified":"2021-10-29T11:12:01","modified_gmt":"2021-10-29T15:12:01","slug":"halloween-special-the-pumpkin-chunkin-simulator","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/simulink\/2021\/10\/29\/halloween-special-the-pumpkin-chunkin-simulator\/","title":{"rendered":"Halloween special: The Pumpkin Chunkin Simulator!"},"content":{"rendered":"<div class = rtcContent><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>How do you feel about a pumpkin chunkin simulator today? <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"https:\/\/blogs.mathworks.com\/simulink\/files\/PumpkinChunkin_1.gif\" width = \"432\" height = \"488\" alt = \"PumpkinChunkin.gif\" style = \"vertical-align: baseline; width: 432px; height: 488px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Earlier this week, I noticed the latest post on the MATLAB Community blog: <\/span><a href = \"https:\/\/blogs.mathworks.com\/community\/2021\/10\/26\/flying-pumpkins-dancing-pumpkins\/\"><span>Flying Pumpkins, Dancing Pumpkins<\/span><\/a><span>. While Ned and Eric's post is about drawing pumpkins using MATLAB graphics, I thought it would be fun to put together a simulation of one of those <\/span><a href = \"https:\/\/www.punkinchunkin.com\/the-competition\/members-machines\/\"><span>Pumpkin Chunkin machines<\/span><\/a><span>.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>In order to get some inspiration, I did a bit of research on MATLAB Central File Exchange and quickly found a submission from 2016 titled <\/span><a href = \"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/55513-design-oriented-trebuchet-model-with-simmechanics\"><span>Design Oriented Trebuchet Model with SimMechanics<\/span><\/a><span>, which turns out to be from a former colleague, <\/span><a href = \"https:\/\/www.mathworks.com\/matlabcentral\/profile\/authors\/2913545\"><span>James Allison<\/span><\/a><span>.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>For today's post, I decided to take James' submission and update it to leverage new features introduced in the latest releases. This will include:<\/span><\/div><ul  style = 'margin: 10px 0px 20px; padding-left: 0px; font-family: Helvetica, Arial, sans-serif; font-size: 14px; '><li  style = 'margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap; '><a href = \"https:\/\/www.mathworks.com\/help\/releases\/R2021b\/physmod\/sm\/release-notes.html#mw_25d6c16f-a24a-4caa-97c4-717f818bcb27\"><span>Joint Disengagement<\/span><\/a><span> in Simscape Multibody<\/span><\/li><li  style = 'margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap; '><a href = \"https:\/\/www.mathworks.com\/help\/releases\/R2021b\/physmod\/sm\/ref\/spatialcontactforce.html\"><span>Spatial Contact Force<\/span><\/a><span> in Simscape Multibody<\/span><\/li><li  style = 'margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap; '><a href = \"https:\/\/www.mathworks.com\/help\/releases\/R2021b\/simulink\/slref\/multiplesimulations.html\"><span>Multiple Simulation Panel<\/span><\/a><\/li><li  style = 'margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap; '><a href = \"https:\/\/www.mathworks.com\/help\/releases\/R2021b\/simulink\/release-notes.html#mw_f79fc632-a37f-425e-9940-2144c600032e\"><span>Customizable Knob and Slider<\/span><\/a><\/li><\/ul><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>You can download and try the final result <\/span><a href = \"https:\/\/blogs.mathworks.com\/images\/simulink\/2021Q4\/PumpkinChunkin.zip\"><span>here<\/span><\/a><span>.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Let's look at the details!<\/span><\/div><h2  style = 'margin: 20px 10px 5px 4px; padding: 0px; line-height: 20px; min-height: 0px; white-space: pre-wrap; color: rgb(60, 60, 60); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: 700; text-align: left; '><span>Ground Contact<\/span><\/h2><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>At the beginning of the simulation, the projectile lays on the ground until the trebuchet swings it in the air. <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"https:\/\/blogs.mathworks.com\/simulink\/files\/PumpkinChunkin_2.gif\" width = \"656\" height = \"356\" alt = \"trebuchetGroundContact.gif\" style = \"vertical-align: baseline; width: 656px; height: 356px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>To simulate this, the original model was sensing the height of the projectile and implemented a custom force law using Simulink blocks that would keep the projectile above ground using an <\/span><a href = \"https:\/\/www.mathworks.com\/help\/releases\/R2021b\/physmod\/sm\/ref\/externalforceandtorque.html\"><span>External Force and Torque<\/span><\/a><span> block.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>In R2021b, we now have the <\/span><a href = \"https:\/\/www.mathworks.com\/help\/releases\/R2021b\/physmod\/sm\/ref\/spatialcontactforce.html\"><span>Spatial Contact Force<\/span><\/a><span> block that makes implementing this sort of contact significantly easier. All you have to do is export the geometry of the solid blocks between which you want the contact dynamics to be computed.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"https:\/\/blogs.mathworks.com\/simulink\/files\/PumpkinChunkin_3.png\" width = \"448\" height = \"161\" alt = \"\" style = \"vertical-align: baseline; width: 448px; height: 161px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Once the Geometry ports are exposed, you can connect them together using the Spatial Contact Force block. In this case, I used an <\/span><a href = \"https:\/\/www.mathworks.com\/help\/releases\/R2021b\/physmod\/sm\/ref\/infiniteplane.html\"><span>Infinite Plane<\/span><\/a><span> block to model the ground and a Spherical Solid for the projectile:<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"https:\/\/blogs.mathworks.com\/simulink\/files\/PumpkinChunkin_4.png\" width = \"320\" height = \"154\" alt = \"\" style = \"vertical-align: baseline; width: 320px; height: 154px;\"><\/img><\/div><h2  style = 'margin: 20px 10px 5px 4px; padding: 0px; line-height: 20px; min-height: 0px; white-space: pre-wrap; color: rgb(60, 60, 60); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: 700; text-align: left; '><span>Launching the Projectile<\/span><\/h2><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>The original model was simulating the trebuchet only up to the time when the projectile was released. At that moment, the simulation was stopped, the motion of the projectile was saved, and a second simulation, implemented in MATLAB using the <\/span><a href = \"https:\/\/www.mathworks.com\/help\/releases\/R2021b\/matlab\/ref\/ode45.html\"><span>ode45<\/span><\/a><span> function, computed the parabolic trajectory of the free-flying projectile.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>The capability to disengage joints was added to Simscape Multibody in MATLAB R2019b. To leverage this capability, I introduced a <\/span><a href = \"https:\/\/www.mathworks.com\/help\/releases\/R2021b\/physmod\/sm\/ref\/weldjoint.html\"><span>Weld Joint<\/span><\/a><span> between the projectile and the rest of the trebuchet, and set its engagement mode to be specified by an input signal. That way, I can sense the sling angle and disengage the Weld Joint - releasing the projectile - using the same logic that was stopping the simulation in the original model:<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"https:\/\/blogs.mathworks.com\/simulink\/files\/PumpkinChunkin_5.png\" width = \"471\" height = \"305\" alt = \"\" style = \"vertical-align: baseline; width: 471px; height: 305px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span><\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Here is what the projectile launch looks like animated in the Mechanics Explorer:<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"https:\/\/blogs.mathworks.com\/simulink\/files\/PumpkinChunkin_6.gif\" width = \"608\" height = \"520\" alt = \"trebuchetRelease.gif\" style = \"vertical-align: baseline; width: 608px; height: 520px;\"><\/img><\/div><h2  style = 'margin: 20px 10px 5px 4px; padding: 0px; line-height: 20px; min-height: 0px; white-space: pre-wrap; color: rgb(60, 60, 60); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: 700; text-align: left; '><span>The Pumpkin Projectile<\/span><\/h2><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>In the first animation at the top of this post, you can see that the projectile has the look and shape of a pumpkin (well, a spooky pumpkin). To make that happen, I used the File Solid and specified an <\/span><a href = \"https:\/\/en.wikipedia.org\/wiki\/STL_(file_format)#:~:text=STL%20is%20a%20file%20format,software%20created%20by%203D%20Systems.&amp;text=STL%20files%20describe%20only%20the,both%20ASCII%20and%20binary%20representations.\"><span>STL file<\/span><\/a><span> I found online. (Tip: 3D printing websites are very useful to find these kinds of files)<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"https:\/\/blogs.mathworks.com\/simulink\/files\/PumpkinChunkin_7.png\" width = \"766\" height = \"439\" alt = \"\" style = \"vertical-align: baseline; width: 766px; height: 439px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>I specified zero inertia for this block and connected it rigidly to my actual projectile Solid block with appropriate mass and inertia. Here is what the final model looks like:<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"https:\/\/blogs.mathworks.com\/simulink\/files\/PumpkinChunkin_8.png\" width = \"1217\" height = \"540\" alt = \"\" style = \"vertical-align: baseline; width: 1217px; height: 540px;\"><\/img><\/div><h2  style = 'margin: 20px 10px 5px 4px; padding: 0px; line-height: 20px; min-height: 0px; white-space: pre-wrap; color: rgb(60, 60, 60); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: 700; text-align: left; '><span>Simulating the model for Multiple Finger Angles<\/span><\/h2><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>In R2021b, a new <\/span><a href = \"https:\/\/www.mathworks.com\/help\/releases\/R2021b\/simulink\/slref\/multiplesimulations.html\"><span>Multiple Simulations<\/span><\/a><span> Panel has been added to Simulink. This panel allows you to interactively create experiments like what you would typically do with MATLAB code using <\/span><a href = \"https:\/\/www.mathworks.com\/help\/simulink\/slref\/parsim.html\"><span>parsim<\/span><\/a><span>.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>For this example, I was curious to simulate the model for multiple <\/span><a href = \"https:\/\/physics.stackexchange.com\/questions\/261306\/when-does-a-trebuchet-shoot-its-projectile\"><span>finger angles<\/span><\/a><span> and see which angle would throw the projectile the farthest.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>The Multiple Simulations panel can be launched from the Prepare gallery of the Simulation tab. My favorite way to launch it is to hit the shortcut \"Ctrl+.\" and start typing.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"https:\/\/blogs.mathworks.com\/simulink\/files\/PumpkinChunkin_9.png\" width = \"442\" height = \"220\" alt = \"\" style = \"vertical-align: baseline; width: 442px; height: 220px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>In the Multiple Simulations panel, I created a new study, added the variable corresponding to the final finger angle and specified a vector of 20 linearly spaced values:<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"https:\/\/blogs.mathworks.com\/simulink\/files\/PumpkinChunkin_10.png\" width = \"382\" height = \"370\" alt = \"MultipleSimulations.png\" style = \"vertical-align: baseline; width: 382px; height: 370px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Once this is done, you will notice that the Run button now has a <\/span><span style=' font-weight: bold;'>Run All<\/span><span> option allowing you to launch all the simulations in one click.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"https:\/\/blogs.mathworks.com\/simulink\/files\/PumpkinChunkin_11.png\" width = \"427\" height = \"270\" alt = \"\" style = \"vertical-align: baseline; width: 427px; height: 270px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Once the runs are started, you can monitor the process in the Simulation Manager. For this example, I chose to display the finger angle on the X axis and the final position of the projectile on the Y axis.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"https:\/\/blogs.mathworks.com\/simulink\/files\/PumpkinChunkin_12.gif\" width = \"768\" height = \"524\" alt = \"PumpkinSimManager.gif\" style = \"vertical-align: baseline; width: 768px; height: 524px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Once the runs are completed, an array of SimulationOutput objects will be returned in the MATLAB base workspace for further post-processing. Here is simple code plotting the 20 trajectories. (Yes, in the first simulation the projectile went backward!)<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"https:\/\/blogs.mathworks.com\/simulink\/files\/PumpkinChunkin_13.gif\" width = \"484\" height = \"532\" alt = \"ShowTrajs.gif\" style = \"vertical-align: baseline; width: 484px; height: 532px;\"><\/img><\/div><h2  style = 'margin: 20px 10px 5px 4px; padding: 0px; line-height: 20px; min-height: 0px; white-space: pre-wrap; color: rgb(60, 60, 60); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: 700; text-align: left; '><span>Customizable Dashboard Control<\/span><\/h2><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Finally, I decided to give a try at the new customizable dashboard blocks available in R2021b. In the following animation, you can see the <\/span><a href = \"https:\/\/www.mathworks.com\/help\/releases\/R2021b\/simulink\/slref\/horizontalslider.html\"><span>Customizable Horizontal Slider<\/span><\/a><span> used to control the pivot point location, and the <\/span><a href = \"https:\/\/www.mathworks.com\/help\/releases\/R2021b\/simulink\/slref\/customknob.html\"><span>Customizable Knob<\/span><\/a><span> used to control the finger angle.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"https:\/\/blogs.mathworks.com\/simulink\/files\/PumpkinChunkin_14.gif\" width = \"916\" height = \"480\" alt = \"PumpkinDashboard.gif\" style = \"vertical-align: baseline; width: 916px; height: 480px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>I am not describing how I created those in this post because it is already getting long, but the process is similar to the one I described in <\/span><a href = \"https:\/\/blogs.mathworks.com\/simulink\/2020\/11\/02\/creating-custom-gauges\"><span>this blog post<\/span><\/a><span> where I created custom gauges a few releases ago. Let me know in the comments below if you would like to read more on that topic in a follow-up post.<\/span><\/div><h2  style = 'margin: 20px 10px 5px 4px; padding: 0px; line-height: 20px; min-height: 0px; white-space: pre-wrap; color: rgb(60, 60, 60); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: 700; text-align: left; '><span>Now it's your turn!<\/span><\/h2><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Have you tried any of those new features? Are you planning to chuck pumpkins this Halloween? Let us know in the comments below!<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span><\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><\/div>\r\n<\/div><script type=\"text\/javascript\">var css = ''; var head = document.head || document.getElementsByTagName('head')[0], style = document.createElement('style'); head.appendChild(style); style.type = 'text\/css'; if (style.styleSheet){ style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); }<\/script><a href=\"https:\/\/blogs.mathworks.com\/simulink\/files\/PumpkinChunkin.mlx\"><button class=\"btn btn-sm btn_color_blue pull-right add_margin_10\">Download Live Script<\/button><\/a>","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img src=\"https:\/\/blogs.mathworks.com\/simulink\/files\/PumpkinChunkin_14.gif\" class=\"img-responsive attachment-post-thumbnail size-post-thumbnail wp-post-image\" alt=\"\" decoding=\"async\" loading=\"lazy\" \/><\/div><p>How do you feel about a pumpkin chunkin simulator today? Earlier this week, I noticed the latest post on the MATLAB Community blog: Flying Pumpkins, Dancing Pumpkins. While Ned and Eric's post is... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/simulink\/2021\/10\/29\/halloween-special-the-pumpkin-chunkin-simulator\/\">read more >><\/a><\/p>","protected":false},"author":41,"featured_media":10947,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[71,16],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/posts\/10926"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/users\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/comments?post=10926"}],"version-history":[{"count":2,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/posts\/10926\/revisions"}],"predecessor-version":[{"id":10977,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/posts\/10926\/revisions\/10977"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/media\/10947"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/media?parent=10926"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/categories?post=10926"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/simulink\/wp-json\/wp\/v2\/tags?post=10926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}