简体中文界面。帖子、指南及政策正文保留原文;未对原文作自动翻译。

The log gets busy and the status window goes quiet

Ian_Bailey · 2025年4月7日 22:07 UTC

已关闭
IA
Ian_Bailey
I've added detailed logging to a UR5e diagnostic display. Now it sometimes freezes while the log folder is busy. The actual cell controls are separate and keep working. I'd like to find where the delay is before I hand this back to maintenance. Read call, file write, screen update. At present they're all in one loop.

13 条回复

BR
BrunoChen1148
回复 Ian_Bailey

Time those three operations separately. At the moment the loop can tell you it had a bad day, but not which job held it up.

12
IA
Ian_Bailey

I've put elapsed timings around each stage. Kept them in memory for the short test. The long gaps line up with writing, while the read call stays fairly steady.

18
BR
BrunoChen1148
回复 Ian_Bailey

Then you've got a useful suspect. Is the destination local, or are you making the display wait for a network share to feel cooperative?

21
HA
HazelBrown0919
回复 Ian_Bailey

Test the display against a slow writer too. Otherwise a nice quick local disk can make an unhealthy design look cured.

6
BR
BrunoChen1148

Fair point. Moving the folder might help today while leaving the same blocking write in the loop for the next machine.

6
IA
Ian_Bailey

It's a shared folder. I've made an offline test writer that delays, and the display freezes there too. So I can reproduce this without the controller connected.

12
BR
BrunoChen1148
回复 Ian_Bailey

Useful. Now whoever fixes it has something repeatable, instead of being told to wait beside the robot until the window sulks.

16
JA
JasperArcher0377
回复 Ian_Bailey

What will the window show if logging falls behind? Moving writes off the display thread helps, but somebody still needs to know whether the diagnostic history is complete. Not an alarm for every slow write, just a clear state.

5
JO
JoBarnes0592

Would a queued-count display help, or is that just another number nobody will understand?

22
BR
BrunoChen1148

I'd rather see 'logging delayed' and any lost-record count, with detail available to maintenance. Queue length alone needs context before it means anything to the operator.

13
IA
Ian_Bailey

Agreed. I've added logging delayed to the draft display, separately from the age of the last controller read. They're different failures even if both used to look like a stuck number.

7
IA
Ian_Bailey

The queued writer passes the slow-disk test now. We capped the queue and made lost diagnostic records visible. Still testing recovery when the share comes back before putting this on the workshop laptop.

12
BR
BrunoChen1148
回复 Ian_Bailey

How did the reconnect test go? That's usually when our harmless little diagnostics utility discovers a second career in eating memory.

11

讨论已关闭

此讨论已连续六个月没有活动,现已关闭新回复。 最后活动: .