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

Unable to simulate distributed functions #2

Open
m-morelli opened this issue Jul 10, 2015 · 0 comments
Open

Unable to simulate distributed functions #2

m-morelli opened this issue Jul 10, 2015 · 0 comments
Assignees

Comments

@m-morelli
Copy link
Owner

Background

Distributed functions modeling is a fundamental concept in modeling and simulation of distributed systems. In a Simulink model, functionality is represented by Simulink subsystems. Task blocks running onto different execution nodes (Kernels) must be able to drive the activation and termination of subsystems, regardless of how they are interconnected.

Problem Description

The current version of tres_bundle cannot simulate models where, in a path, source and sink subsystems are executed by a task on a node and the other blocks in the path are executed by a task in another node.

Consider a simple model with two Kernel blocks, each one executing one task. Tasks execute 3 functions connected in a series. Task1_1 (1st task onto the 1st kernel, red) executes the source (first) and sink (last) functions (red); Task1_2 (1st task onto the 2nd kernel, blue) executes the function in the middle between the two (blue).

distributedfuncts_model

At the beginning of the simulation, Simulink raises the following error:

distributedfuncts_error

Discussion

The above error occurs because of function-call dependency. The red subsystems Latch11 and Segment21 are driven by the same fcn-call source, leaving the middle blocks (blue) alone outside, making it impossible to execute them between the called red subsystems.

@m-morelli m-morelli self-assigned this Jul 10, 2015
m-morelli pushed a commit that referenced this issue Aug 26, 2015
…lgebraic loops between Kernel and Tasks. Results checked for simple examples. More examples to be made compliant to the new implementation and checked.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant