NREL / ROSCO

A Reference Open Source Controller for Wind Turbines
https://rosco.readthedocs.io/en/latest/
Apache License 2.0
116 stars 93 forks source link

Error in ROSCO.mdl with Simulink #387

Closed YongxiangLei closed 4 weeks ago

YongxiangLei commented 4 weeks ago

Hi Dan,

I am also have an issue when I run ROSCO.mdl from Simulink package. I attached it as follows. I was wondering whether it can be solved?

runFAST 26 addpath('Utilities') 29 [Param,Cx] = ReadWrite_FAST(fast); GetFASTPar:: Parameter F_NotchType not found. Error using runFAST (line 59) Multiple errors occurred. Causes: Error using runFAST (line 59) Syntax error in expression 'u(strmatch('Azimuth',OutList))' in 'ROSCO/Cyclic Pitch controller/extract Azimuth'. Error using runFAST (line 59) Syntax error in expression 'u(strmatch('BldPitch1',OutList))' in 'ROSCO/Extract Signals/Extract BldPitch1'. Error using runFAST (line 59) Error in 'ROSCO/FAST Nonlinear Wind Turbine/S-Function': S-Function 'FAST_SFunc' does not exist. Error using runFAST (line 59) Syntax error in expression 'u(strmatch('BldPitch1',OutList))' in 'ROSCO/Monitor/Extract BldPitch1'.

Another question is that I see in the forum is that this simulink repository is currently not updated. Could you please give an answer? As for the IPC module, the interface is useable or not? Look forward to hear from you. Thanks

dzalkind commented 4 weeks ago

Hi, please search previous Github questions/issues about Matlab/Simulink. That error looks like others that have been raised. All the modules should be usable, but we can't guarantee it and you should verify its functionality.

YongxiangLei commented 4 weeks ago

image Thanks a lot, I met a new error list as follows.

YongxiangLei commented 4 weeks ago

image image I checked the bug history and made some change sone the S-function, yet it doesn't work at all. Look forward to your comments. Thanks indeed.

dzalkind commented 4 weeks ago

I recommend looking at the OpenFAST repository: https://github.com/OpenFAST/openfast/tree/main/glue-codes/simulink

Since this part of the repository is not currently supported, I can't provide any further guidance.