Switching simulink function based on simulation time
2 次查看(过去 30 天)
显示 更早的评论
Hello,
I have a 3DOF robot arm that must go through a sequence of 6 different motions. I have a matrix of the relative movement each degree of freedom needs to make and a time vector specifying how long I want each motion to take. These values are being put into a 5th order polynomial to calculate the position profile for each DOF. Each of these motions have different position motion profiles driving them. In short, what is the best way to sequence through the equations based on the simulation time?
For example, from time 0 to T1 I want equation 1 to command the position, from T1 to T2 I want equation 2 to command the position, etc.
Each of the equations give position of the arm relative to where the last equation ended. Currently I have a convoluted system of using step blocks to turn on and turn off the equations as the simulation runs but I know there must be a simpler way.
Any suggestions would be greatly appreciated!
Thanks.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Robotics 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!