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))
Question
jaya
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))
one thermocuple connected to channel 0 physically
Edited by jayaadditional image.
Link to comment
Share on other sites
6 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