Jump to content

jaya

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by jaya

  1. Hello all,

    When I run the below code, I get an error Board not responding. What is the fix i can use?

    The board is MCC134 and brand new. Any help on this is appreciated

    Also I couldn't read anything in the DAQ HAT manager app using Raspberry PI.

     

    import sys
    from daqhats import hat_list, HatIDs, mcc134

    # get hat list of MCC daqhat boards
    board_list = hat_list(filter_by_id = HatIDs.ANY)
    if not board_list:
        print("No boards found")
        sys.exit()

    # Read and display every channel
    for entry in board_list:
        if entry.id == HatIDs.MCC_134:
            print("Board {}: MCC 134".format(entry.address))
            board = mcc134(entry.address)
            for channel in range(board.info().NUM_AI_CHANNELS):
                value = board.a_in_read(channel)
                print("Ch {0}: {1:.3f}".format(channel, value))
    image.png.68598f48acbe4e8909cb8fcfd182e0fd.png

     

    one thermocuple connected to channel 0 physically

×
×
  • Create New...