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

add event trigger function block #936

Merged
merged 2 commits into from
Jan 14, 2025

Conversation

MandKastner
Copy link

This FB will trigger all unconnected events of the specified type within a resource on REQ

related to https://github.com/eclipse-4diac/4diac-forte/pull/298

this FB will trigger all unconnected events of the specified type within a resource on REQ
Copy link

github-actions bot commented Jan 9, 2025

Test Results

   111 files  ±0     111 suites  ±0   49s ⏱️ -1s
29 162 tests ±0  29 162 ✅ ±0  0 💤 ±0  0 ❌ ±0 
29 163 runs  ±0  29 163 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit b4ea326. ± Comparison against base commit 7e46e08.

♻️ This comment has been updated with latest results.

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<FBType Name="E_TRIG" Comment="Trigger FB for a specified Event Type" >
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i dont like the name and the comment. For me its not really clear what this block should do.
If the name is defined by the IEC 61499 standard, then i would leave it like, otherwise we should give it a more descriptive way that makes it clear that all blocks with the event type will be triggered.
@azoitl what do you think about that ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would also go for an improved comment. There is no name in the standard for this block. But I thought keeping it short and simple and in line with existing blocks (E_RTRIG, E_FTRIG) would be a good idea.

</Event>
</EventOutputs>
<InputVars>
<VarDeclaration Name="EVENTTYPE" Type="STRING" Comment="Event type to be triggered" />

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'EInit' could be a sensible InitialValue for EVENTTYPE?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

definitly

@oberlehner oberlehner merged commit 0bb8546 into eclipse-4diac:develop Jan 14, 2025
4 checks passed
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

Successfully merging this pull request may close these issues.

4 participants