Poking around in software I can't find a reason why Error 13 occurs. There's got to be a hardware difference between the VXI mainframe and this plain VME backplane, despite the standard saying that VXI is a superset of VME.
I cannot find a schematic for the backplane, of course not. And I couldn't find anything in the standard either.
I can buzz out the upper row without having to take the chassis apart.
First column are the OR-gate's pins, second the functions, third what they connect to. BGnIN* and BGnOUT* n = 1..4 are bus grant lines needed for busmastering. Those gates are not present on my plain VME backplane. But I have my doubts that this could be the reason. I doubt my meters even use busmastering. I scoped one of the lines out and couldn't see any activity.
Guess I have to take the chassis apart and maybe even go in there with a logic analyzer to find out what is causing Error 13.
First column are the OR-gate's pins, second the functions, third what they connect to. BGnIN* and BGnOUT* n = 1..4 are bus grant lines needed for busmastering. Those gates are not present on my plain VME backplane. But I have my doubts that this could be the reason. I doubt my meters even use busmastering. I scoped one of the lines out and couldn't see any activity.
Guess I have to take the chassis apart and maybe even go in there with a logic analyzer to find out what is causing Error 13.
And at this point I decided to give the PSU in the mainframe another chance. Turns out, it is fine as long as I keep that 200dB 240V mains powered fan connected. My poor ears
😁1
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.