Step IV (In MATLAB)

 

Step to do the co-simulation

1.  Double-click the RecurDyn Plant Block. The sub block of the RecurDyn Plant Block appears.

 

Figure 1  Steps to design control algorithm

 

2.  Double-clicks the Red block (Dynamic Model). The Block Parameters dialog box appears.

 

Figure 2  Function Block Parameters dialog box

 

3.  Change RecurDyn_model_name as ‘mouse’.

4.  Change GCoSim Name as ‘GCoSim1’.

5.  Click OK.

6.  Select Configuration Parameters in the Simulink menu,

 

Figure 3  Steps to run co-simulation

 

7.  Change the Stop time to 3.0 seconds.

8.  Click OK

9.  Click Start in the Simulation menu.