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

Diagram: reaction trigger of multiple timers in modes is displayed wrong #2325

Open
NiklasRentzCAU opened this issue Jun 19, 2024 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@NiklasRentzCAU
Copy link

Take this LF program:

target C
  
main reactor {
    timer t(0, 200 msec)
    timer t2(0, 1000 msec)

    initial mode S1 {
        reaction(t) -> reset(S2) {=
            lf_set_mode(S2);
            // Do something.
            printf("timer t fired\n");
        =}
    }

    mode S2 {
        reaction(t2) -> reset(S1) {=
            lf_set_mode(S1);
            // Do something else.
            printf("timer t2 fired\n");
        =}
    }
}
  

LF-mode-timers

The diagram displays both modes to take their input from the timer t, although S2 reacts on the timer t2. The timer t2 should to be connected to the reactor and reaction 2 inside S2 should be (visually) triggered by t2.

The execution does not seem to be affected, only the graphical representation here is incorrect, indicating that there is an issue in the KLighD synthesis of LF.

@cmnrd cmnrd added the bug Something isn't working label Jun 24, 2024
@lhstrh lhstrh modified the milestones: 0.9.0, 0.10.0 Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants