Zhijang
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Gallery
Posts posted by Zhijang
-
-
Any suggestion is welcome. Thanks in advance.
Here is the error message where tried 152 interrupt python example code:
./digital_input_interrupt.py
MCC 152 digital input interrupt example.
Enables interrupts on the inputs and displays their state when
they change.
Functions / Methods demonstrated:
mcc152.dio_reset
mcc152.dio_config_write_port
mcc152.dio_input_read_port
mcc152.dio_int_status_read_port
mcc152.info
interrupt_callback_enable
interrupt_callback_disable
Using address 0.Current input values are 0xFF
Waiting for changes, enter any text to exit.
Traceback (most recent call last):
File "/home/pi/work/./digital_input_interrupt.py", line 122, in <module>
main()
File "/home/pi/work/./digital_input_interrupt.py", line 106, in main
interrupt_callback_enable(callback, int_count)
File "/usr/local/lib/python3.9/dist-packages/daqhats/hats.py", line 320, in interrupt_callback_enable
raise Exception("Could not enable callback function.")
Exception: Could not enable callback function.
MCC152 python interrupt example code failed with exception "Could not enable callback function."
in Measurement Computing (MCC)
Posted
Hi John,
I got the issue fixed by update the daqhats version to the latest one (1.4.0.6) from 1.4.0.3
Cherrs,
Zhijiang