Error while loading Simulink model in Beckhoff Target PC: Unable to load DLL dependency: KERNEL32.d​ll.IsThrea​dAFiber

11 visualizaciones (últimos 30 días)
Hello
I am using matlab 2020a and Simulink Real-time. For C compiler I have visual studio 2017. I get the following error while loading a model into the Beckoff Target PC: "External Mode Open Protocol Connect command failed"
I checked slrtexplr but the device was connected before and after the attempt to load the model. I tried with a blank model also. The same error is shown. I used tg.viewTargetScreen on matlab command window and it shows this error "Unable to load DLL dependency: KERNEL32.dll.IsThreadAFiber ". (screenshot attached below).
There was a similar question in matlab community, although the error message was slight different. (Unable to load DLL dependency: KERNEL32.dll.GetFileSizeEx) The solution says to downgrade the windows 10 sdk in visual studio to 10.0.17134.0. I did so but it didnt fix my problem.
Is there anything else I can do?
(I think I should mention that I also have visual studio 2022 for some other purpose. could it cause the issue?)

Respuesta aceptada

Md Asif
Md Asif el 26 de Jun. de 2025
[Fixed]
Even After uninstalling and downgrading Windows SDK from visual studio 2017 installer, the previous one stayed in the system. One has to go to Add or Remove Softwares in the control panel and uninstall the latest version (Windows SDK 10.0.17763) and keep the oldest version (Windows SDK 10.0.17134).
Then restart PC.

Más respuestas (0)

Etiquetas

Productos


Versión

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by