WMI Query for Phidget in Windows

Comments & issues
Fresh meat
Posts: 4
Joined: Wed Jul 24, 2019 10:23 am

WMI Query for Phidget in Windows

Postby pavel443 » Fri Jul 26, 2019 2:33 pm

I'm using PhidgetInterfaceKit 0/0/4 (4 channel relay module), and I'm building GUI in C#. But my question is more for WMI query in Windows OS.

Although I implemented successfully the relay module in the code, I would like to add WMI Query to the program that will check if there is a Phidget module connected before the programm start to run.

Usually if I want to know all serial ports that connected to my PC I make the following querry in c#
string wmiQuery = "SELECT * FROM Win32_SerialPort";
ManagementObjectSearcher searcher = new ManagementObjectSearcher ( wmiQuery );
That gives me all serial COM numbers.

My question is, in wich Win32 Class I can find my Phidgets?

User avatar
Lead Developer
Posts: 3141
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada

Re: WMI Query for Phidget in Windows

Postby Patrick » Mon Jul 29, 2019 10:45 am

Use the Manager API in phidget22 to enumerate attached Phidgets.


Return to “General”

Who is online

Users browsing this forum: No registered users and 1 guest