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

input signals aren't automatically reset #118

Open
YorikHansen opened this issue Aug 19, 2024 · 0 comments
Open

input signals aren't automatically reset #118

YorikHansen opened this issue Aug 19, 2024 · 0 comments

Comments

@YorikHansen
Copy link

YorikHansen commented Aug 19, 2024

When input signals are programmatically emitted, the signal remains present until a user manually resets it (to false).

Example

scchart Test {
	input signal S

	initial state A
	do S go to B

	state B
	if S go to C
	go to D

	final state C
	
	final state D
}

Expected Behavior

EITHER: An error occurs because input variables should not be programmatically set.

OR: The signal is active in the first tick (since it is emitted by the transition from A to B). After that, the transition from B to C should only occur if the user emits the signal again. Without any user input, the transition from B to D should be taken.

@YorikHansen YorikHansen changed the title input signals don't get resetted input signals aren't automatically reset Aug 19, 2024
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

1 participant