This error may be encountered while generating code for the TwinCAT 3 environment using SIMULINK. To fix the error follow the procedure given here:-
http://infosys.beckhoff.com/index.php?content=../content/1031/tc3_c/html/tc3-xae-cpp-installddk.htm&id=
The above procedure may not work if there is already a Windows Driver Kit installed. If the driver kit is already installed, uninstall it, restart your PC and follow the above procedure.
http://infosys.beckhoff.com/index.php?content=../content/1031/tc3_c/html/tc3-xae-cpp-installddk.htm&id=
The above procedure may not work if there is already a Windows Driver Kit installed. If the driver kit is already installed, uninstall it, restart your PC and follow the above procedure.
[image included for reference only, copyright belongs to www.beckhoff.com]