Enumerate all devices

Supporting Visual Studio on Windows
Post Reply
john7
Fresh meat
Posts: 3
Joined: Tue Apr 20, 2021 2:58 am
Contact:

Enumerate all devices

Post by john7 »

How can I see all cards connected to USB hub?
User avatar
mparadis
Site Admin
Posts: 660
Joined: Fri Oct 28, 2011 12:17 pm
Contact:

Re: Enumerate all devices

Post by mparadis »

You need to use the Phidget Manager for that. You can find a code sample for the manager in C# here.

This example will print a line to the console for each channel it sees. So if you're using a 1012, you'll get 16 lines for the outputs and 16 lines for the inputs. If you have multiple Phidgets, you can various properties to figure out which Phidget they belong to. In this example "ManagerAttachEventArgs e" contains this information (e.g. e.Channel.DeviceSerialNumber).
john7
Fresh meat
Posts: 3
Joined: Tue Apr 20, 2021 2:58 am
Contact:

Re: Enumerate all devices

Post by john7 »

Thank you.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest