wcmurf
-
Posts
3 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Gallery
Posts posted by wcmurf
-
-
On 7/27/2023 at 4:34 PM, Fausto said:
Hello @wcmurf.
In the UL for Linux Python API (ULDAQ) examples folder, use the 't_in.py' example with your USB-TEMP device.
UL for Linux Python API Help: https://www.mccdaq.com/PDFs/Manuals/UL-Linux/python/index.html
USB-TEMP User's Guide: https://www.mccdaq.com/pdfs/manuals/USB-TEMP.pdf
Regards,
Fausto
Hi Fausto, thanks, yes I am trying the t_in but find all the channels are disabled. When I try to set the type using set_chan_type I get uldaq.ul_exception.ULException: ULError.CONFIG_NOT_SUPPORTED: Configuration not supported
How do I get rid of disabled and configure this device?
The manual says to use the Windows software InstaCal but what about in Ubuntu?
Found 1 DAQ device(s):
[0] USB-TEMP (020F5AFD)
SUPPORTS : TC RTD THERMISTOR SEMICONDUCTOR
Total analog input channels: 8Connecting to USB-TEMP - please wait...
USB-TEMP ready
Function demonstrated: ai_device.t_in()
Channels: 0 - 7
Product ID: 8d
Channel 0 type: DISABLED
Channel 1 type: DISABLED
Channel 2 type: DISABLED
Channel 3 type: DISABLED
Channel 4 type: DISABLED
Channel 5 type: DISABLED
Channel 6 type: DISABLED
Channel 7 type: DISABLED
Temperature scaling: CELSIUSHit ENTER to continue
Please enter CTRL + C to terminate the process
Active DAQ device: USB-TEMP (020F5AFD)
Channel(0) Data: -9999.000000
Channel(1) Data: -9999.000000
Channel(2) Data: -9999.000000
Channel(3) Data: -9999.000000
Channel(4) Data: -9999.000000
Channel(5) Data: -9999.000000
Channel(6) Data: -9999.000000
Channel(7) Data: -9999.000000
-
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: BIPPT078VOLTSHit 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
USB-TEMP get BAD_DEV_TYPE when running a_in.sh
in Measurement Computing (MCC)
Posted
I got it working by using InstaCal on Windows and changing channel 0 from Disabled to Thermocouple.
I don't see an equivalent path to get it working with Linux. The set_chan_type function results in an error.
Please let me know if you support Linux and there is a way to do the initial configuration.