Page 1 of 1

Single event handler for multiple sensors

Posted: Sun Dec 04, 2022 6:15 pm
by scsm
We have an WPF app running on a single Win11 PC.

If we have say, 10 HUB5000s on the same ethernet subnet, each with a few digital inputs, what happens when two digital inputs fire at exactly the same time from 2 different hubs if using the same event handler?

Although this is unlikely, it is a scenario we need to consider.

Re: Single event handler for multiple sensors

Posted: Mon Dec 05, 2022 5:31 pm
by Patrick
You will get 2 events. Which event comes in first will depend on the latencies in the system, and will be unpredictable.

-Patrick

Re: Single event handler for multiple sensors

Posted: Tue Dec 06, 2022 12:52 am
by scsm
Thanks Patrick. For this application, the order from multiple hubs isn't important.