- Open your Simulink model.
- In the ‘MODELING’ tab, select ‘Model Settings’ option.
- In the "Code Generation" section, check the ‘Target selection’ and ‘Build Process’ settings.
- Configure additional settings as needed for your target hardware and communication interface.
- Expand the ‘Code Generation’ section and select ‘Interface’ sub section.
- In ‘Data exchange interface’ select the ‘External mode’ option.
- Click "Apply" and then "OK" to save the changes.
- Attempt to generate code again.
- https:/www.mathworks.com/help/ecoder/xilinxzynq7000ec/ug/set-up-and-use-hosttarget-communication-channel.html
- https://www.mathworks.com/help/slrealtime/gs/execute-real-time-application-in-external-mode-with-step-by-step.html
- https://www.mathworks.com/help/rtw/ref/externalmode.html