Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outputs of SubApps can not be sent via PUBLISH FBs #744

Open
murinsel opened this issue Nov 17, 2024 · 1 comment
Open

Outputs of SubApps can not be sent via PUBLISH FBs #744

murinsel opened this issue Nov 17, 2024 · 1 comment

Comments

@murinsel
Copy link

Take the distributed Blinky application as starting point. I distribute the application to two resources on the same device via PUBLISH_1 and SUBSCRIBE_1 with an ID of "loc[counter]".
This works without problems. If I now combine the E_SWITCH and E_SR function blocks to as SubApp, then the system can not be deployed any more and I get the error messages shown below.
This problem only occurs if I add the PUBLISH_1 FB only to the resource (not the Application) as it is done in the example. If I add the PUBLISH_1 FB to the application and deploy it to the first resource then everything works.
I have added the sys file that makes the problems and the boot file in the ZIB archive.

<!--  Connected to device: FORTE_PC -->

Deploying: EMB_RES
<!-- 127.0.0.1:61499: EMB_RES -->
<Request ID="11" Action="CREATE">
    <Connection Source="SubAppBugApp.SubApp.E_SR.EO" Destination="SubAppBugApp.PUBLISH_1.REQ"/>
</Request>

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


<!-- 127.0.0.1:61499: EMB_RES -->
<Request ID="13" Action="CREATE">
    <Connection Source="SubAppBugApp.SubApp.E_SR.Q" Destination="SubAppBugApp.PUBLISH_1.SD_1"/>
</Request>

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

SubAppBug.zip
App
Count_RES
EMB_RES
SubApp

@azoitl
Copy link
Contributor

azoitl commented Nov 17, 2024

Thx for reporting this. I see what the reason for the bug is but I yet do not have an idea how to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants