Page 1 of 1

WMI Query for Phidget in Windows

Posted: Fri Jul 26, 2019 2:33 pm
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?

Re: WMI Query for Phidget in Windows

Posted: Mon Jul 29, 2019 10:45 am
by Patrick
Use the Manager API in phidget22 to enumerate attached Phidgets.

-Patrick