# Help running FAST v8 on Simulink-Matlab

**URL:** <https://forums.nlr.gov/t/help-running-fast-v8-on-simulink-matlab/1364>\
**Category:** Computer-Aided Engineering Software Tools\
**Created:** [June 10, 2016, 12:17pm UTC](https://forums.nlr.gov/t/help-running-fast-v8-on-simulink-matlab/1364 "2016-06-10T12:17:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![David.Kenko](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@David.Kenko](https://forums.nlr.gov/u/David.Kenko)\
**Post date:** [June 10, 2016, 12:17pm UTC](https://forums.nlr.gov/t/help-running-fast-v8-on-simulink-matlab/1364/1 "2016-06-10T12:17:38Z")

</div>

Hello,

I try ALMOST v8 to bring to run under Matlab-Simulink. I always receive these mistakes:

Error using Run\_OpenLoop (line 30)  
Error reported by S-function ‘FAST\_SFunc’ in ‘OpenLoop/FAST Nonlinear Wind Turbine/S-Function’:  
FAST\_InitializeAll:SrvD\_Init:Yaw angle and rate are not commanded from Simulink model.  
Pitch angles are not commanded from Simulink model.  
Generator torque and power are not commanded from Simulink model.  
HSS brake is not commanded from Simulink model.  
SrvD\_Init:BladedInterface\_Init:The dynamic library …..\CertTest\5MW\_Baseline/ServoData/DISCON\_win32.dll could not be  
loaded. Check that the file exists in the specified location and that it is compiled for 64-bit applications.

Does somebody have an idea how the problem can solve? how I can test FAST v8 on Simulin?

I have pursued the Instruktions from ALMOST v8 interface to Simulink and without success.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Jason.Jonkman](https://dub1.discourse-cdn.com/nrel/user_avatar/forums.nlr.gov/jason.jonkman/32/3086_2.png) [@Jason.Jonkman](https://forums.nlr.gov/u/Jason.Jonkman)\
**Post date:** [June 10, 2016, 12:50pm UTC](https://forums.nlr.gov/t/help-running-fast-v8-on-simulink-matlab/1364/2 "2016-06-10T12:50:06Z")

</div>

Dear David,

The error that is causing the simulation to stop is the last one mentioned – you are trying to load a 32-bit DLL within a 64-bit application. The application and the DLL must use the same addressing scheme. Instead of using DISCON\_win32.dll, you should be using the 64-bit compiled version, DISCON\_x64.dll, also provided in the FAST v8 archive. However, normally when running FAST within Simulink, users would implement control logic within Simulink rather than from a Bladed-style DISCON DLL.

Best regards,
