Sudden problem communicating with an instrument

32 visualizaciones (últimos 30 días)
Bob
Bob el 30 de Sept. de 2025 a las 13:10
Respondida: Satyam el 24 de Oct. de 2025 a las 6:40
I have two racks of test instruments that I control using MATLAB (R2018a) Note that a different PC controls the instruments at each rack.
All of a sudden, and for no obvious reason, I've started having communication problems with one of the instruments (a Keysight B2962A Power Source) on one of the racks. (Call it Test Rack A.)
I create a VISA object to the instrument using the command:
arb_handle = visa('agilent',sprintf('TCPIP0::%s::instr0::INSTR', WW.XX.YY.ZZ)
where WW.XX.YY.ZZ is the IP address of the B2962A.
I then open a channel to the B2962A with the command:
fopen(arb_handle)
This has worked in the past. However, I'm now getting an MException error:
identifier: 'instrument:fopen:opfailed'
message: 'Unsuccessful open: Could not open VISA object. Use INSTRHWINFO for a list of available configurations
cause: 0x1 cell
stack: 4x1 struct
As I wrote, this method of creating arb_handle and using fopen(arb_handle) has worked in the past. I can ping the B2962A using WW.XX.YY.ZZ, so it's definitely on-line.
We have not knowingly changed anything but it's possible IT did something. Possibly something associated with a Windows Update, possible a firmware update to the B2962A, possibly something else.
I can use a similar technique to create a VISA object and open a communication channel for the other instruments at Test Rack A.
In addition, I can use MATLAB on the PC at Test Rack A to communicate with the B2962A at Test Rack B. It's only the B2962A at Test Rack A where the communication attempt fails. Similarly, an attempt to use MATLAB on the PC at Test Rack B to communicate with the B2962A on Test Rack A fails. In other words, I can use MATLAB on either Test Rack A or Test Rack B to comunicate with the B2962A on Test Rack B, but I cannot use MATLAB on either Test Rack to communicate with the B2962A on Test Rack A.
I did discover that if I change "instr0" to "hislip0" (High Speed LAN Instrument Protocol) when I create the VISA object, I can then use MATLAB to communicate with the B2962A at Test Rack A.
I'm looking for suggestions to help me figure out what changed, and why something that worked in the past no longer works.
  1 comentario
Bob
Bob el 16 de Oct. de 2025 a las 13:41
I didn't get any responses, let alone answers, to my question but I'm following up for the possible benefit of anyone who stumbles across this question as the result of a Google search or MATLAB Community search or a similar search.
We never did determine the root cause of the problem but swapping the existing B2962A for a different B2962A (actually, a B2962B) solved the immediate communication problem.
Right now, our hunch is that the problem B2962A got a bad firmware update. It definitely had a different, slightly older, firmware version than the B2962A in the other test rack, the B2962A that we could communicate with using the "inst0" protocol. We didn't have a chance to try updating the firmware in the problem B2962A, though.

Iniciar sesión para comentar.

Respuestas (1)

Satyam
Satyam el 24 de Oct. de 2025 a las 6:40
Hi Bob,
From what you described, it sounds like the issue was likely due to a firmware problem on the B2962A that stopped the VXI-11 ("instr0") protocol from working, while HiSLIP ("hislip0") still functioned. This can happen if a firmware update fails or if there’s a bug in a particular version. For others facing a similar issue:
  • Try switching protocols: If "instr0" doesn’t work, try "hislip0" (HiSLIP) in your VISA resource string.
  • Check firmware: Make sure your instrument is running the latest firmware. Updating firmware can often resolve communication problems.
  • Network settings: Sometimes firewall or network changes can block certain protocols (VXI-11 uses port 111, HiSLIP uses 4880), so it’s worth checking those too.
  • Instrument settings: Double-check that the required protocols are enabled on the instrument

Categorías

Más información sobre Instrument Control Toolbox Supported Hardware en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by