AllenNeuralDynamics / AllenNeuralDynamics/python-newscale

Timeout exception

未关闭
#10 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
1
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

**Describe the bug**
We use this repo to control the lickspout stages in the AIND training room. We occasionally get this error. It seems like we might be able to solve this by extending the acceptable time window.

**To Reproduce**
I cannot reproduce this error, but its happening about twice a week in the AIND behavior room.

**Screenshots**
```
Traceback (most recent call last):
File "C:\Users\svc_aind_behavior\Documents\GitHub\dynamic-foraging-task\src\foraging_gui\stage.py", line 37, in run
fc.execute()
File "C:\Users\svc_aind_behavior\Documents\GitHub\dynamic-foraging-task\src\foraging_gui\io_commands.py", line 106, in execute
pos = self.device.get_position('x', 'y', 'z')
File "C:\Users\svc_aind_behavior\AppData\Local\miniconda3\envs\Foraging\lib\site-packages\newscale\multistage.py", line 34, in inner
return func(self, *args, **kwargs)
File "C:\Users\svc_aind_behavior\AppData\Local\miniconda3\envs\Foraging\lib\site-packages\newscale\multistage.py", line 231, in get_position
return {x: self.stages[x].get_position() for x in axes}
File "C:\Users\svc_aind_behavior\AppData\Local\miniconda3\envs\Foraging\lib\site-packages\newscale\multistage.py", line 231, in
return {x: self.stages[x].get_position() for x in axes}
File "C:\Users\svc_aind_behavior\AppData\Local\miniconda3\envs\Foraging\lib\site-packages\newscale\stage.py", line 336, in get_position
_, _, pos, _ = self._send(self._get_cmd_str(Cmd.CLOSED_LOOP_STATE))
File "C:\Users\svc_aind_behavior\AppData\Local\miniconda3\envs\Foraging\lib\site-packages\newscale\stage.py", line 93, in _send
return self._parse_reply(self.interface.read(self.address))
File "C:\Users\svc_aind_behavior\AppData\Local\miniconda3\envs\Foraging\lib\site-packages\newscale\interfaces.py", line 205, in read
data = self.serial.readLine()
File "C:\Users\svc_aind_behavior\Documents\GitHub\dynamic-foraging-task\src\foraging_gui\MyFunctions.py", line 1617, in readLine
c = self.io.read(1).decode()
File "C:\Users\svc_aind_behavior\AppData\Local\miniconda3\envs\Foraging\lib\site-packages\newscale\usbxpress.py", line 407, in read
self._dll.SI_Read(self._handle,
File "C:\Users\svc_aind_behavior\AppData\Local\miniconda3\envs\Foraging\lib\site-packages\newscale\usbxpress.py", line 59, in usbxpress_errcheck
raise USBXpressTimeoutException("USBXpress operation timed out")
newscale.usbxpress.USBXpressTimeoutException
```

**Desktop (please complete the following information):**
- OS: Windows
- axes-on-target branch

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。