Skip to main content



      Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » mutiple cycle using
mutiple cycle using [message #1839254] Thu, 18 March 2021 07:59 Go to next message
Eclipse UserFriend
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 08:19 Go to previous messageGo to next message
Eclipse UserFriend
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 08:48 Go to previous messageGo to next message
Eclipse UserFriend
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 17:32 Go to previous messageGo to next message
Eclipse UserFriend
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 04:30 Go to previous messageGo to next message
Eclipse UserFriend
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 16:07 Go to previous messageGo to next message
Eclipse UserFriend
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 01:09 Go to previous message
Eclipse UserFriend
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 Jul 30 14:25:15 EDT 2025

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

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

Back to the top