And, a follow-on question. For voltage and voltageRatio devices connected to standard (non-VINT) ports, is it possible to getSensorUnit() before the device has a sensor change trigger event. Example. I open a current sensing phidget on a circuit that is currently off. I would like to know the sensorUnit will be "ampere," and, indeed, if I wait for a sensor change event I will get that information. But, I would like to get it earlier. If there were a way to force a sensor change event, that would be perfect. But, I can't find it. Calling getSensorUnit() before the first sensor change results in...
Code: Select all
VoltageInput.py", line 191, in getSensorUnit
raise PhidgetException(result)
PhidgetException: PhidgetException 0x33 (Unknown or Invalid Value)
The value is unknown.
I know this information is available in the libs as previously discussed. But, if there were a way to get it from the device, that would be much cleaner.