Single event handler for multiple sensors

Supporting Visual Studio on Windows
Post Reply
scsm
Phidgetly
Posts: 22
Joined: Sun Nov 20, 2022 10:28 pm
Contact:

Single event handler for multiple sensors

Post 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.
User avatar
Patrick
Lead Developer
Posts: 3399
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Single event handler for multiple sensors

Post 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
scsm
Phidgetly
Posts: 22
Joined: Sun Nov 20, 2022 10:28 pm
Contact:

Re: Single event handler for multiple sensors

Post by scsm »

Thanks Patrick. For this application, the order from multiple hubs isn't important.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests