/usr/lib/python3/dist-packages/pyvisa/resources/pxi.py is in python3-pyvisa 1.8-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | # -*- coding: utf-8 -*-
"""
pyvisa.resources.pxi
~~~~~~~~~~~~~~~~~~~~
High level wrapper for pxi resources.
This file is part of PyVISA.
:copyright: 2014 by PyVISA Authors, see AUTHORS for more details.
:license: MIT, see LICENSE for more details.
"""
from __future__ import division, unicode_literals, print_function, absolute_import
from .. import constants
from .resource import Resource
from .registerbased import RegisterBasedResource
@Resource.register(constants.InterfaceType.pxi, 'INSTR')
class PXIInstrument(RegisterBasedResource):
"""Communicates with to devices of type PXI::<device>[::INSTR]
More complex resource names can be specified with the following grammar:
PXI[bus]::device[::function][::INSTR]
or:
PXI[interface]::bus-device[.function][::INSTR]
or:
PXI[interface]::CHASSISchassis number::SLOTslot number[::FUNCfunction][::INSTR]
Do not instantiate directly, use :meth:`pyvisa.highlevel.ResourceManager.open_resource`.
"""
@Resource.register(constants.InterfaceType.pxi, 'MEMACC')
class PXIMemory(RegisterBasedResource):
"""Communicates with to devices of type PXI[interface]::MEMACC
Do not instantiate directly, use :meth:`pyvisa.highlevel.ResourceManager.open_resource`.
"""
|