Differentiating multiple appearances of a device
Posted: Mon Sep 16, 2019 8:23 am
I have a 1048 temperature sensor. This Phidget has four thermocouple inputs and one onboard temp sensor. When I look for devices on the network in the onAttachHandler I get 9 responses:As you can see, the individual inputs attach twice, once as generic voltage devices and once with an identified class name.
I wish to present a user with a list of available Phidgets to select from and would like to use the actual class name rather than the generic name. Is there some straight forward way to do this, or must I resort to using logic I'm my program to discard generic names when a "real" class name is available for the same input?
Code: Select all
Serial Phidget Ch Name Ch subCh
283587 - PHIDID_1048 -- Thermocouple Input - 28 - 33
283587 - PHIDID_1048 -- Thermocouple Input - 28 - 33
283587 - PHIDID_1048 -- Thermocouple Input - 28 - 33
283587 - PHIDID_1048 -- Temperature Sensor (IC) - 28 - 1
283587 - PHIDID_1048 -- Voltage Input - 29 - 1
283587 - PHIDID_1048 -- Voltage Input - 29 - 1
283587 - PHIDID_1048 -- Voltage Input - 29 - 1
283587 - PHIDID_1048 -- Voltage Input - 29 - 1
I wish to present a user with a list of available Phidgets to select from and would like to use the actual class name rather than the generic name. Is there some straight forward way to do this, or must I resort to using logic I'm my program to discard generic names when a "real" class name is available for the same input?