I have the USB-TEMP product. I installed the C++ and Python libraries. I'm using Ubuntu 20.04, libuldaq-1.2.1, and uldaq-1.2.3.
When I run a_in.py I get a BAD_DEV_TYPE. Is running a_in.py as instructed the wrong thing to do for USB-TEMP? What do I have to do to get a temperature reading?
Found 1 DAQ device(s):
[0] USB-TEMP (020F5AFD)
Please select a DAQ device, enter a number between 0 and 0: 0
Traceback (most recent call last):
File "./a_in.py", line 146, in <module>
main()
File "./a_in.py", line 118, in main
data = ai_device.a_in(channel, input_mode,
File "/u/mwm/.local/lib/python3.8/site-packages/uldaq/ai_device.py", line 87, in a_in
raise ULException(err)
uldaq.ul_exception.ULException: ULError.BAD_DEV_TYPE: This function cannot be used with this device
Question
wcmurf
I have the USB-TEMP product. I installed the C++ and Python libraries. I'm using Ubuntu 20.04, libuldaq-1.2.1, and uldaq-1.2.3.
When I run a_in.py I get a BAD_DEV_TYPE. Is running a_in.py as instructed the wrong thing to do for USB-TEMP? What do I have to do to get a temperature reading?
Found 1 DAQ device(s):
[0] USB-TEMP (020F5AFD)
Please select a DAQ device, enter a number between 0 and 0: 0
Connecting to USB-TEMP - please wait...
USB-TEMP ready
Function demonstrated: ai_device.a_in()
Channels: 0 - 3
Input mode: DIFFERENTIAL
Range: BIPPT078VOLTS
Hit ENTER to continue
Please enter CTRL + C to terminate the process
Active DAQ device: USB-TEMP (020F5AFD)
Traceback (most recent call last):
File "./a_in.py", line 146, in <module>
main()
File "./a_in.py", line 118, in main
data = ai_device.a_in(channel, input_mode,
File "/u/mwm/.local/lib/python3.8/site-packages/uldaq/ai_device.py", line 87, in a_in
raise ULException(err)
uldaq.ul_exception.ULException: ULError.BAD_DEV_TYPE: This function cannot be used with this device
added software versions
3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now