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 » Can't execute the function block i create
Can't execute the function block i create [message #1858931] Tue, 02 May 2023 10:21 Go to next message
Nicolò Sciara is currently offline Nicolò SciaraFriend
Messages: 7
Registered: January 2023
Junior Member
Good morning at all,

I've got a problem while i try to run a function block that i create.
I followed the step 4 of the guide relative to create a function block and the guide on how to compile FORTE from source. The function blocks present in the library when i download the IDE work fine but the block i create doesn't work.

Can you please help me solving this problem?

I leave the files generated when i export the FB (CMakeLists.txt, Controller.cpp and Controller.h) and the photo related to the ECC (Controller_ECC.png) of the function block in the attachment and the resource view ( Resource_view.png) in order to let you know how i connect the block to the resource (in the application view there's only this block).

below here there's the output in the deployment consolle

<!-- 127.0.0.1:61499 -->
<Request Action="QUERY" ID="1">
<FB Name="*" Type="*"/>
</Request>

<Response ID="1"/>


<!-- 127.0.0.1:61499 -->
<Request Action="CREATE" ID="2">
<FB Name="Controllore" Type="EMB_RES"/>
</Request>

<Response ID="2"/>


<!-- 127.0.0.1:61499: Controllore -->
<Request Action="CREATE" ID="3">
<FB Name="Controller" Type="Controller"/>
</Request>

<Response ID="3" Reason="UNSUPPORTED_TYPE"/>


<!-- 127.0.0.1:61499: Controllore -->
<Request Action="CREATE" ID="4">
<Connection Destination="Controller.INIT" Source="START.COLD"/>
</Request>

<Response ID="4" Reason="NO_SUCH_OBJECT"/>


<!-- 127.0.0.1:61499: Controllore -->
<Request Action="CREATE" ID="5">
<Connection Destination="Controller.INIT" Source="START.WARM"/>
</Request>

<Response ID="5" Reason="NO_SUCH_OBJECT"/>


<!-- 127.0.0.1:61499: Controllore -->
<Request Action="START" ID="5"/>

<Response ID="5"/>

Down here there are all the messages appeared in the simulated device manager

INFO: T#4221071617143: FORTE is up and running
INFO: T#4221071772174: Using provided bootfile location set in CMake: forte.fboot
INFO: T#4221071822009: Boot file forte.fboot could not be opened. Skipping... //now i deploy
INFO: T#4259893407187: Connection established by client
INFO: T#4259898596148: Connection closed by peer

Thanks to who will help me and have a good day
Re: Can't execute the function block i create [message #1858935 is a reply to message #1858931] Tue, 02 May 2023 12:31 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1585
Registered: January 2014
Senior Member

NO_SUCH_OBJECT means that the 4diac FORTE you are running does not have the FB with the given type name in its internal typelibrary. There are two common reasons for that:
- you are not running your self compiled 4diac FORTE
- you have not activated the module with your fb and therefore it is not compiled into your forte
Re: Can't execute the function block i create [message #1858937 is a reply to message #1858935] Tue, 02 May 2023 13:23 Go to previous messageGo to next message
Nicolò Sciara is currently offline Nicolò SciaraFriend
Messages: 7
Registered: January 2023
Junior Member
Thanks for the answer Mr. Zoitl, i found the problem: in step 7 in the building FORTE from source there's written that will appear FORTE_MODULE_EXTERNAL_EXAMPLE_TEST (in my case it could be FORTE_MODULE_EXTERNAL_ExportedFBs because i saved my exported fb in /home/nick/Scrivania/progetti_4diac/Progetto/ExportedFBs) but it never appears even i press configure multiple times

Could you please explain me how to solve this issue?

I leave you my cmake screen in the attachments after i press configure for the second time.

Thanks in advance

Nicolò
Re: Can't execute the function block i create [message #1858939 is a reply to message #1858937] Tue, 02 May 2023 14:11 Go to previous messageGo to next message
Nicolò Sciara is currently offline Nicolò SciaraFriend
Messages: 7
Registered: January 2023
Junior Member
ok, i solved all the problems, now the block works well. thank for the help.

for who is reading this discussion the folder you have to select for the external modules is the folder which contains the folder with the .h .cpp and the CMakeLists.txt (in my case is /Scrivania/progetti_4diac/Progetto).

thanks for the help Mr Zoitl and have a good day,

Nicolò
Re: Can't execute the function block i create [message #1858940 is a reply to message #1858939] Tue, 02 May 2023 14:35 Go to previous message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1585
Registered: January 2014
Senior Member

I was about to write that. Happy that it worked out. The idea is that you can have several modules in your external modules directory.
Previous Topic:Problem with Step 1 Use 4diac Locally (Blinking Tutorial).
Next Topic:BBB doesn't receive multicast address
Goto Forum:
  


Current Time: Sat Apr 27 17:52:23 GMT 2024

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

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

Back to the top