Error while loading Simulink model in Beckhoff Target PC: Unable to load DLL dependency: KERNEL32.dll.IsThreadAFiber
Show older comments
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?)

Accepted Answer
More Answers (0)
Categories
Find more on Target Computer Setup in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!