MCPcopy Index your code
hub / github.com/LabPy/lantz / get_resource_manager

Function get_resource_manager

lantz/messagebased.py:32–40  ·  view source on GitHub ↗

Return the PyVISA Resource Manager, creating an instance if necessary. :rtype: visa.ResourceManager

()

Source from the content-addressed store, hash-verified

30
31
32def get_resource_manager():
33 """Return the PyVISA Resource Manager, creating an instance if necessary.
34
35 :rtype: visa.ResourceManager
36 """
37 global _resource_manager
38 if _resource_manager is None:
39 _resource_manager = visa.ResourceManager()
40 return _resource_manager
41
42
43class MessageBasedDriver(Driver):

Callers 3

_via_usbMethod · 0.85
__init__Method · 0.85
initializeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected