Jump to content

BrianV

Members
  • Posts

    2
  • Joined

  • Last visited

BrianV's Achievements

Newbie

Newbie (1/4)

0

Reputation

  1. To whom it may concern I am an engineering student working on a temperature test bench. If i run the code i have attached ReadValuesBV1 by itself the code runs fine, (ran it and reading values for about an hour.) but as soon as i run the code with all the other code that my teammates have written i run into some issues. I have attached pictures of the errors I am receiving. The program will run fine for about 15 minutes and then i encounter error1 (image_2061) the code is still reading values but then i get "warning - address(1,2,3) using factory eeprom default values" after about another 5 minutes i get the second error(image00000) "warning - address(0) using factory eeprom default values" and address 0 board not responding and then it stops reading values completely. do i have to calibrate the board when somewhere at the start of the code, which i have attached, in order to prevent these issues. If so would i use the function below to do that and what would be the factory calibration values or slope values needed. if you know of any other method to prevent this i would really appreciate it. Thank you. The program that i encounter the crash on is when running mainguiJH.py which opens up a gui and has you select preset values to test and the program that calls functions from the file actually reading the values (ReadValuesBV1.py) is called MainAI. How do i fix this issue. Thank you any guidance would help. mcc134.calibration_date() Read the calibration date. mcc134.calibration_coefficient_read() Read the calibration coefficients for a channel. mcc134.calibration_coefficient_write() Write the calibration coefficients for a channel. ReadValuesBV1.py mainAIdigilenthelp.py mainGUIJHdigilenthelp.py
  2. I am Currently using two MCC134's stacked on top of a Raspberry pi. I have the first MCC134 closest to the pi set to address 0, and the second to address 1. I am able to read values from channel 0 1 2 and 3 from the first MCC134, but not the second one. can someone please help me figure out how to read values from the second MCC134. tc_type = TcTypes.TYPE_E # change this to the desired thermocouple type delay_between_reads = 1 # Seconds channels = (0, 1, 2, 3,) try: # Get an instance of the selected hat device object. address = 0 hat = mcc134(0) i have attached a copy of the code that i am currently using. MCC134CodeHelp.txt
×
×
  • Create New...