Hi Abijith,
As per my understanding, you are simulating a fixed time step model of a 4-wheeler autonomous vehicle in Desktop Realtime and getting the following error:
Cannot generate a reusable function for Subsystem block 'BEV_LAT_OWN_v10/<< Synthesized_Atomic_Subsystem_For_Alg_Loop_2_Task_0 >>'. This subsystem is fed by the Ground block 'BEV_LAT_OWN_v10/Lateral Controller - Stanley/Vehicle Body 3DOF Dual Track1/Fh Ground' that has a nonscalar output signal. Either replace the Ground block with a Constant block having all zero values or modify the 'Function packaging' setting of the Subsystem block to Inline or Function.
I noticed that you already tried replacing the Ground block with a Constant block with all zeros and it failed.
You can also modify the "Function packaging" setting of the Subsystem block to Inline or Function. To do so, please refer the following MATLAB Documentation, "Function Reuse in Generated Code": https://in.mathworks.com/help/rtw/ug/reusing-functions-in-generated-code.html
Hope this helps.
Regards
Ninad