I am connecting my MCC134 to a Raspberry and started by running your example code from github. All I did was exchange the mcc118 to mcc134 and added a printout line for the board_list.
the hat_list finds my MCC134 but the initialization of the mcc134 object at address 0 raises an HatError: Addr 0: Invalid board type.
What am I missing?
Quote
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()
print(board_list)
# 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):
Question
Leo Wolscht
Hi
I am connecting my MCC134 to a Raspberry and started by running your example code from github. All I did was exchange the mcc118 to mcc134 and added a printout line for the board_list.
the hat_list finds my MCC134 but the initialization of the mcc134 object at address 0 raises an HatError: Addr 0: Invalid board type.
What am I missing?
Link to comment
Share on other sites
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