Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 09:40 Go to next message
Dennis Schmid is currently offline Dennis SchmidFriend
Messages: 2
Registered: September 2022
Junior Member
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 21:03 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1589
Registered: January 2014
Senior Member

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 07:22 Go to previous messageGo to next message
Dennis Schmid is currently offline Dennis SchmidFriend
Messages: 2
Registered: September 2022
Junior Member
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 10:58 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1589
Registered: January 2014
Senior Member

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 18:15 Go to previous message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1589
Registered: January 2014
Senior Member

Fix is merged. Thx for reporting!
Previous Topic:OPC UA
Next Topic:OPC UA
Goto Forum:
  


Current Time: Thu May 09 07:43:49 GMT 2024

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

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

Back to the top