Jump to content

wcmurf

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by wcmurf

  1. 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: 8

    Connecting 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: CELSIUS

    Hit 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
     

     

  2. 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
     

     

×
×
  • Create New...