Skip to main content



      Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » 4DIAC - Issues with FMU Exporter (Problems while compilating source Code)
4DIAC - Issues with FMU Exporter [message #1854678] Fri, 02 September 2022 05:40 Go to next message
Eclipse UserFriend
Hi there,

I would like to use 4diac to implement a Controller and export the Model as FMU and followed the documentation to use the FMI for 4diac (https://www.eclipse.org/4diac/en_help.php?helppage=html/communication/simulation.html) and selected FORTE_ENABLE_FMU and also set the include path of the FMI header's.

I was using Visual Studio 16 (2019) to compile the Project, despite the diffrent Stukture of the Projekt from the documentation, I tryd various combinations of compilation, always with some errors:

1. the fmuinstance.obj file can't be opended, because it doese not exist

2. ErrorC2039 "m_apoInternalFBs" is no member of "CCompositeFB". FORTE_LITE D:\Workspace\FORTE_dev\org.eclipse.forte\forte_2.0.1\src\core\fmi\fmuInstance.cpp

According tho the Documentation, there sould also be an .dll - file which is missing. So no chance to set the FMU Preferences .

Any ideas how to fix this?
Re: 4DIAC - Issues with FMU Exporter [message #1854705 is a reply to message #1854678] Fri, 02 September 2022 17:03 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

at least for your second problem I know the problem. We reworked some of our code and it seems this has not been checked with the FMU module. Can you please replace in the fmuInstance.cpp every occurence of
m_apoInternalFBs
with
mInternalFBs
. This should get you a complied.

Cheers,
Alois
Re: 4DIAC - Issues with FMU Exporter [message #1854759 is a reply to message #1854705] Thu, 08 September 2022 03:22 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

thanks for your help. Your advice worked and now I am able to use the FMU export funktion of 4diac.

Regards,
Dennis
Re: 4DIAC - Issues with FMU Exporter [message #1854775 is a reply to message #1854759] Fri, 09 September 2022 06:58 Go to previous messageGo to next message
Eclipse UserFriend
Hi,
this a great news. Will push it int the repo.

Alois
Re: 4DIAC - Issues with FMU Exporter [message #1854812 is a reply to message #1854775] Mon, 12 September 2022 14:15 Go to previous message
Eclipse UserFriend
Fix is merged. Thx for reporting!
Previous Topic:OPC UA
Next Topic:OPC UA
Goto Forum:
  


Current Time: Tue Jun 24 07:06:43 EDT 2025

Powered by FUDForum. Page generated in 0.04888 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top