Hardware in the loop

This forum if for discussing controls. Questions about how to implement controls in FAST are more appropriate to the CAE Tools forum.

Moderator: Bonnie.Jonkman

Posts: 72
Joined: Mon Oct 15, 2018 11:23 am
Organization: FSU
Location: Florida

Hardware in the loop

Postby Sina.Ameli » Fri Jul 24, 2020 7:43 pm

Hi all,
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\Tools\MSVC\14.25.28610\bin\HostX86\x86\link.EXE"' : return code '0x450'
The make command returned an error of 2

Error(s) encountered while building "FAST_model_only"
Component:Simulink | Category:Block diagram error

Best regards,

Posts: 4933
Joined: Thu Nov 03, 2005 4:38 pm
Location: Boulder, CO

Re: Hardware in the loop

Postby Jason.Jonkman » Fri Jul 31, 2020 10:51 am

Dear Sina,

My understanding is that there are options in MATLAB/Simulink for running real-time simulations, but I’m not very familiar with these. If your existing FAST / OpenFAST model within MATLAB/Simulink already runs faster than real time (or can be simplified a bit to do so), I would guess it would possible to use it for real-time applications, but you’d have to check MATLAB/Simulink documentation for information on how to do that.

A similar question was discussed in the following forum topics, but I'm not sure where the work ended up:

The FAST v7 interface to LabView was used for real-time implementation, but this functionality has not yet been ported to FAST v8 or OpenFAST. It was up to the user to set up the FAST v7 model so that it would run faster than real time without the interface to LabView enabled. LabView would then wait before calling FAST v7 again so that the simulation was real time. NREL used the LabView interface to link FAST v7 with the actual controller implemented on the physical CART wind turbine tested at NREL (in a hardware in the loop mode), so that the controller could be tested before using it on the real CART. This capability is discussed a bit in the following forum topic:

Best regards,
Jason Jonkman, Ph.D.
Senior Engineer | National Wind Technology Center (NWTC)

National Renewable Energy Laboratory (NREL)
15013 Denver West Parkway | Golden, CO 80401
+1 (303) 384 – 7026 | Fax: +1 (303) 384 – 6901

Return to “Controls”

Who is online

Users browsing this forum: No registered users and 1 guest