windows - Significant 600 ms lag between TwinCAT 3 and Simulink using TCSymbol interface (TE1410). How can I reduce this latency
- c - Solaris 10 make Error code 1 Fatal Error when trying to build python 2.7.16 - Stack Overflow 推荐度:
- javascript - How to dismiss a phonegap notification programmatically - Stack Overflow 推荐度:
- javascript - Get the JSON objects that are not present in another array - Stack Overflow 推荐度:
- javascript - VS 2015 Angular 2 import modules cannot be resolved - Stack Overflow 推荐度:
- javascript - Type 'undefined' is not assignable to type 'menuItemProps[]' - Stack Overflow 推荐度:
- 相关推荐
I am running TwinCAT 3.1.4024.47 and Simulink (MATLAB 2022b) on the same PC with Windows 10 PC (16 GB DDR4, SSD M.2, Intel i7 Gen7). I’m using the TCSymbol interface (TE1410) in Simulink. The TwinCAT task cycle time is set to 30 ms, and the Simulink solver step size is set to 0.03 s (to match TwinCAT’s cycle).
Despite these settings, I consistently see a 600 ms delay—which is about 20 cycles—between TwinCAT and Simulink. My goal is to reduce this to 2 cycles (i.e., < 60 ms).
Here’s what I’ve tried so far:
- Set process priorities to real-time in Windows Task Manager (Details tab) for MATLAB, Simulink, and the TwinCAT process.
- Assigned TwinCAT to an isolated core using CPU affinity.
- Tested on a higher-performance PC (32 GB DDR4, i7 Gen11).
None of these steps significantly reduced the lag.
Questions:
- Are there any known issues or limitations with the TCSymbol interface (TE1410) that cause this kind of latency?
- Which Windows OS or scheduling configurations are most critical for reducing the delay between TwinCAT and Simulink?
- Are there alternative approaches or recommended best practices to synchronize Simulink with a TwinCAT task more reliably?
Any insights, tips, or shared experiences would be greatly appreciated. Thank you!
最新文章
- Win10、安卓手机实现打通:拖拽即可互传文件
- [连载]巨头“心血之作”终失败(一):苹果Apple TV
- react native - Handling loginlogout without user undefined errors - Stack Overflow
- WHM API - start_autossl_check_for_one_user - Stack Overflow
- node.js - I am getting error when i click on submit button | Discord.JS - Stack Overflow
- uiviewcontroller - MacCatalyst Scene Frame needs adjustment - Stack Overflow
- Windows Powershell: check if a symlink is "broken" - Stack Overflow
- xamarin - How to add static library(.a) in to .Net Maui iOS application - Stack Overflow
- differential equations - Calculating a rocket trajectory in Matlab - Stack Overflow
- c - Segmentation fault when access mapped memory - Stack Overflow
- visual studio code - Cant use pip install on pytorch Python 3.13.01, MacOS Sonoma 14.6.1 - Stack Overflow
- imagemagick - How to add annotations in Right-To-Left (RTL) languages (like Arabic and Persian) to images using R's magi
- c# - Instantiated gameObject in Unity will not update the transform.position - Stack Overflow
- typescript - angular signal is not recomputing - Stack Overflow
- azure - Unable to get a token to create B2C user using Graph API - Stack Overflow
- amazon web services - Nuxt build fails on AWS Amplify: Failed to find the deploy-manifest.json file in the build output - Stack
- python - Airflow on_success_callback - Stack Overflow