https://technicalsource9.medium.com/do-simulink-deploy-to-hardware-and-external-modes-work-2d267a2c12ed