WMI Query for Phidget in Windows

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

WMI Query for Phidget in Windows

Post by pavel443 »

Hello,
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
Patrick
Lead Developer
Posts: 3403
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: WMI Query for Phidget in Windows

Post by Patrick »

Use the Manager API in phidget22 to enumerate attached Phidgets.

-Patrick
Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests