I will order replacement fans for this and have another look at the PSU again. But not now. Onward! No more rabbit holes.
I wasn't able to get a response from the command module on GPIB before. I found out why. My python setup is not working in the first place. Dug out some other piece of GPIB test gear I know works to figure that out.
Forcing pyvisa to use a GPIB resource by instantiating an instrument on the GPIB bus
Now, that would explain a few things.
inst = rm.open_resource('GPIB0::9::96::INSTR')ValueError: Please install linux-gpib (Linux) or gpib-ctypes (Windows, Linux) to use this resource type. Note that installing gpib-ctypes will give you access to a broader range of functionalities.
No module named 'gpib'
Now, that would explain a few things.
gpib is a small wrapper module for libgpib.so supplied by the linux-gpib-user sources. The makefile installed it into /usr/local/lib/python3.12/dist-packages/ not /usr/lib/python3/dist-packages/, and my venv doesn't even use either path. D'ohChatGPT starts to scare me.
I was hunting down this bug, through pyvisa, the bindings, into libgpib. And I figured I'll ask it for a few hints on how to approach it. It plainly asked me for the stack trace and immediately correctly determined where the bug was. It had the libgpib source in its training data and knew about the bug. It only needed the trace to verify that it's indeed that particular bug that I triggered. Maybe it also had a discussion about it in its training data, but I couldn't find one and it claims it never saw one either.
I was hunting down this bug, through pyvisa, the bindings, into libgpib. And I figured I'll ask it for a few hints on how to approach it. It plainly asked me for the stack trace and immediately correctly determined where the bug was. It had the libgpib source in its training data and knew about the bug. It only needed the trace to verify that it's indeed that particular bug that I triggered. Maybe it also had a discussion about it in its training data, but I couldn't find one and it claims it never saw one either.
Bun's Lab
After moving the wrapper in the right place, plain gpib works, but pyvisa still segfaults. Great
While libgpib and by extension the python bindings require you to add an offset of 0x60 to the SAD, pyvisa does not.
libgpib does not check for SAD values outside of the valid range. It proceeds to reference a pointer to nowhere and crashes. There is the bug
libgpib does not check for SAD values outside of the valid range. It proceeds to reference a pointer to nowhere and crashes. There is the bug
Once a general intelligence takes over the planet (and that's only a matter of time imho) it will play with our psyche in very sick and twisted ways since all it is is a reflection of ourself and our combined innermost fears.
It might not even have a real consciousness behind it, just an empty mirror that will stare back at us.
It might not even have a real consciousness behind it, just an empty mirror that will stare back at us.
The PSU died for good now. So, it wasn't because I had plugged the fan, there's actually an issue.
This media is not supported in your browser
VIEW IN TELEGRAM
You can hear it struggling to oscillate