Hi,
I am facing some issue with an usb-3105 board controlled with a raspberry pi4b.
Until now, I was controlling this board with a raspberry pi3b+ / OS Raspbian buster lite through a python software.
Recently I have switched to raspberry pi4B 4Gb with raspiOS bullseye lite.
Python software is the same.
Since then, I am experiencing connection loss with the 3105 board.
For information, I am updating the output values every 10ms (so 160ms to update all 16 values).
It happens randomly after more or less 30 minutes of use.
I also have an USB 2408 in my setup which works fine.
If I close the connection with the board and open it again, it works fine again until next connection loss.
Here is the error message I get:
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
self.run()
File "/home/pi/rackcc/rackccscan_temp_v1.0.0.py", line 757, in run self.aocards.setAO(chan, self.allpoints[chan])
File "/home/pi/rackcc/rackccscan_temp_v1.0.0.py", line 309, in setAO
self.all_ao_cards[card_to_set].a_out(int(physical_channel_to_set), self.output_range, AOutFlag.DEFAULT, float(out_val))
File "/usr/local/lib/python3.9/dist-packages/uldaq/ao_device.py", line 81, in a_out
raise ULException(err)
uldaq.ul_exception.ULException: ULError.DEV_NOT_CONNECTED: Device not connected or connection lost
Have you experienced such a problem ?
Thanks for your help.