Hi Rodney,
The error message you're encountering indicates that there is an issue with the memory alignment for the real-time application being downloaded to the DS1005 board. This is a requirement for the processor used in the dSPACE hardware, which expects variables, especially of type double, to be aligned to memory addresses that are multiples of the size of the variable.
Here are some steps you can take to resolve this issue:
- Ensure that you have the latest updates for MATLAB, Simulink, RTI (Real-Time Interface), and ControlDesk, as well as any relevant patches for dSPACE software that might address this issue.
- The memory alignment issue might be related to the compiler settings used for generating the real-time application. Check the dSPACE documentation for the recommended compiler settings for your version of MATLAB/Simulink and ensure they match.
- Verify that the dSPACE configuration settings are correct. Ensure that the Simulink model configuration parameters are correctly set.
- If the issue persists, you might want to consider replacing "double" data types with "single" or fixed-point types to see if that resolves the alignment issue. However, it can affect the precision and behavior of your model.
- As a last resort, if the issue is urgent and cannot be resolved in a timely manner, consider reverting to the previous version of MATLAB and ControlDesk that was known to work with your system.
- Since the model builds without error, the issue is likely related to the configuration of the build process for real-time execution. Carefully check all settings related to the build process and consult the dSPACE documentation for any known issues with MATLAB r2019b and ControlDesk 7.1.
I hope this helps!