- Technical Services and Consulting
- Embedded Systems | Firmware Developement | Simulations
- Electrical and Electronics Engineering
Data and time dimensions are incompatible error message
26 次查看(过去 30 天)
显示 更早的评论
I am running a model on a speedgoat system with the Run on Target button within the simulink envorinment. I am doing this as I want to use simulink scopes for monitoring of real time data that is being used and executed on the speedgoat as the speedgoat executes continuously for long periods of time. It works well but every once and a while I will get an error message that contionues to pop up and seems to close/reopen continously with a periodicity of every ~ half a second. The only way to stop the error dialog box from not poping up is to stop execution of the speedgoat. It seems to initiate when matlab is trying to execute another command and it always happens if I launch the matlab help while activley running on target. The error is the following:
Executing the 'check data' command produced the follow error:
Data and time dimensiomns are incompatible
I have not found any mention of this error in matlab help or mathlab central so I'm not sure what steps I can take to prevent it from coming in. thanks in advance!
0 个评论
回答(1 个)
Hassaan
2024-3-5
Review Data Logging and Visualization Setup: Ensure that your model's data logging and visualization configurations are compatible with real-time execution. This includes checking the sizes and dimensions of the data being logged and ensuring they match with what your scopes and logging utilities expect. Real-time systems may have specific requirements or limitations for data logging and visualization.
Synchronize Time and Data Sampling: Verify that the time base used for your model is correctly configured to match the data sampling rates. Mismatches between the sampling rates of different signals or between the model's time base and the data rates can lead to compatibility issues, as the system may be unable to correctly align data points with time steps.
Avoid Overloading the Communication Link: When executing models in real-time and visualizing data on Simulink scopes, there's continuous data exchange between MATLAB/Simulink and the Speedgoat target. Executing additional commands in MATLAB (like launching the help system) could temporarily strain this communication, potentially leading to errors. Try to minimize additional MATLAB tasks during critical real-time execution periods.
Consult Speedgoat Support: Since Speedgoat systems are highly specialized, reaching out to Speedgoat's technical support can provide specific advice and potentially a solution. They might be familiar with this issue and could offer a patch, configuration advice, or an update to resolve the problem.
Review Custom Code: If your model includes custom code or S-Functions, review them to ensure they properly handle data and time dimensions. Custom code that doesn't correctly manage data sizes or time steps could cause issues during real-time execution.
Increase Real-time Task Priority: In some cases, adjusting the priority of real-time tasks or the communication thread between MATLAB and Speedgoat might help. This is a more advanced and system-specific solution, so it should be done with caution and possibly with support from Speedgoat.
Check for Software Updates: Ensure that your MATLAB, Simulink, and Speedgoat firmware are up to date. Bugs or compatibility issues are resolved in newer versions of the software or firmware.
-----------------------------------------------------------------------------------------------------------------------------------------------------
If you find the solution helpful and it resolves your issue, it would be greatly appreciated if you could accept the answer. Also, leaving an upvote and a comment are also wonderful ways to provide feedback.
It's important to note that the advice and code are based on limited information and meant for educational purposes. Users should verify and adapt the code to their specific needs, ensuring compatibility and adherence to ethical standards.
Professional Interests
Feel free to contact me.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Target Computer Setup 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!