python-vxi11: vxi11.vxi11.Vxi11Exception: 9: Out of resources [open]

436 views
Skip to first unread message

Alexei Colin

unread,
Jul 27, 2015, 12:57:54 AM7/27/15
to python-ivi
Hi,

What does this exception indicate in more detail?

vxi11.vxi11.Vxi11Exception: 9: Out of resources [open]

It occurs for me after several runs of a script that uses python-ivi with a custom driver for Tektronix MDO4104 (work-in-progress). The only way to get out of this state that I could find is a power-cycle of the scope. Does this indicate lack of cleanup that causes left-over state on the scope end? Thanks in advance for any pointers.

Alex Forencich

unread,
Jul 27, 2015, 3:28:58 AM7/27/15
to pytho...@googlegroups.com
That is an error code as returned by the device.  See the VXI-11 spec, table B.2 on page 21.  Error code 9, "out of resources."  There are no other details.  It's possible that something is not getting cleaned up correctly.  Most likely this is really a bug in the scope firmware where it is not cleaning up resources when the TCP connection is closed without explicitly closing the VXI-11 link.  This would not surprise me as the Tektronix firmware leaves a lot to be desired.  Can you try adding some code to explicitly call the close() method of the vxi-11 object at the end of your test script and let me know what happens?

Alex Forencich
--
You received this message because you are subscribed to the Google Groups "python-ivi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-ivi+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages