Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » mutiple cycle using
mutiple cycle using [message #1839254] Thu, 18 March 2021 11:59 Go to next message
joy woo is currently offline joy wooFriend
Messages: 195
Registered: May 2019
Senior Member
if i have four composite fb, each contains a e_cycle fb, the duration is 5ms,

would that cause performance issues or event stack would be full?
Re: mutiple cycle using [message #1839256 is a reply to message #1839254] Thu, 18 March 2021 12:19 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1209
Registered: January 2014
Senior Member
this strongly depends on your cpu. but normally it should not be a problem. The only thing that can be problematic is that you have one FB blcoking your execution thread for some time. Then you get an external event queue full. The external event queu is currently around 10 or so with 5ms fbs it means that an fb would block for longer then 50ms. If that is the case then you can always split up your application to several resources. Each resource has its own queues. And if that is not enough you can use the real-time event sources. Where each real-time event block has its own thread.
Re: mutiple cycle using [message #1839259 is a reply to message #1839256] Thu, 18 March 2021 12:48 Go to previous messageGo to next message
joy woo is currently offline joy wooFriend
Messages: 195
Registered: May 2019
Senior Member
Thanks for quick response,, so mutilple resources and rt- event, which is better
Re: mutiple cycle using [message #1839295 is a reply to message #1839259] Thu, 18 March 2021 21:32 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1209
Registered: January 2014
Senior Member
I would use rt_events only as last resort and with care. They can be dangerouse!
Re: mutiple cycle using [message #1839312 is a reply to message #1839295] Fri, 19 March 2021 08:30 Go to previous messageGo to next message
joy woo is currently offline joy wooFriend
Messages: 195
Registered: May 2019
Senior Member
the resouce way communication depends on sub/pub, that's too complex,
could you plz tell me why it is dangerous?
i think it just run a thread
Re: mutiple cycle using [message #1839397 is a reply to message #1839312] Fri, 19 March 2021 20:07 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1209
Registered: January 2014
Senior Member
it is dangerouse if you have events crossing between the treads, or better fbs triggered by events from different threads.
Re: mutiple cycle using [message #1839402 is a reply to message #1839397] Sat, 20 March 2021 05:09 Go to previous message
joy woo is currently offline joy wooFriend
Messages: 195
Registered: May 2019
Senior Member
actully, the rt thread has to trigger event of the main thread, otherwise it make no sense
Previous Topic:Questions about the sequence of events
Next Topic:global virable/event problem
Goto Forum:
  


Current Time: Wed May 05 22:37:40 GMT 2021

Powered by FUDForum. Page generated in 0.02288 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top