MATLAB Answers

2

Hi. when i am trying to Controlling Robot Motion in Simulink, getting following error. please suggest about it. thank you.

Error in S-function 'MobileRobotSimulink1/Robot Simulator/Soft Real Time': S-Function 'sfun_time' does not exist
Component:Simulink | Category:Block error
error.png

  댓글 수: 1

I have the same error. It would be nice if someone from Matlab/Simulink can reply with a solution.BTW this is from the video " Student Competition :Mobile Robotics Training ,Part 1 :Controlling Robot Motion by Connell D'Souza
The error seems ti come from the Robot Simulator block in the Mobile Robotics Training library
Thanks
Dinesh

로그인 to comment.

제품


릴리스

R2018a

답변 수: 1

 채택된 답변

This error usually occurs when you don't run the file "installMRTToolbox" included in the training files. This should be on the main directory for the submission here:
You will need a compiler to compile the s-funciton for the block and then everything should work. This is prompted when the install file is executed.
Alternatively, if you are using MATLAB R2018a or newer you can delete the block form the library and use Simulation pacing instead. To do this:
  1. Right-click the Robot Simulator and select Library Link>Go to library block
  2. Unlock the library by clicking the lock on the bottom left corner
  3. Right-click the Robot Simulator block in the library and select Mask>Look under mask
  4. Delete the "Soft Real Time" block
  5. Save the library
You can enable Simulation Pacing from the run button. This will slow down the simulation to real-time speed.
Find here more details on simulation pacing:

  댓글 수: 0

로그인 to comment.



Translated by