I have the OPENFAST S-function working properly on Simulink and was trying to probe the possibility of using generated code to create a HIL environment for a wind turbine controller.
I am trying to generate code from a model that includes the S-function in order to execute it through PLCnext runtime on PXC controllers.
Every time I try to build I get the error below:
Though the same model runs fine through Simulink producing the desired result.
Am I missing something in terms of code generation and S-function?
Thanks in advance.
I’m not familiar with how to interface the OpenFAST S-Function for Simulink through PLCnext runtime on PXC controllers. Hopefully someone else can help.
Perhaps the following forum topics are useful for you:
I can easily run the open loop (FAST v8) in Matlab/Simulink but when I run it in the real-time environment in Matlab it gives me these two errors including “LINK : fatal error LNK1104: cannot open file ‘FAST_SFunc.obj’”, and “NMAKE : fatal error U1077”. Has anyone encountered such errors? The details of the errors are as follows:
LINK : fatal error LNK1104: cannot open file ‘FAST_SFunc.obj’
NMAKE : fatal error U1077: ‘“C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\T…
I have a question re FAST v8 Simulink. I’m trying to re-compile the s-function so to generate c-code into a target processor for Hardware-in-the-loop simulation, using a dSPACE platform (ds1103) which is based on a PowerPC processor.
The compilation of the 64 bit FAST_SFunc.c into a MEX function into MATLAB’s workspace was successful (had to do it with Microsoft SDK 7.1 according to the dSPACE manufacturer guidelines).
The problem arises when I’m pressing ‘Build Model’ insid…