This file is indexed.

/usr/share/doc/python-pyvisa-py/manual/rst/index.rst is in python-pyvisa-py 0.2-2.

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
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
:orphan:


PyVISA-py: Pure Python backend for PyVISA
=========================================

.. image:: _static/logo-full.jpg
   :alt: PyVISA


PyVISA-py is a backend for PyVISA_. It implements most of the methods
for Message Based communication (Serial/USB/GPIB/Ethernet) using Python
and some well developed, easy to deploy and cross platform libraries.

You can select the PyVISA-py backend using **@py** when instantiating the
visa Resource Manager:

    >>> import visa
    >>> rm = visa.ResourceManager('@py')
    >>> rm.list_resources()
    ('USB0::0x1AB1::0x0588::DS1K00005888::INSTR')
    >>> inst = rm.open_resource('USB0::0x1AB1::0x0588::DS1K00005888::INSTR')
    >>> print(inst.query("*IDN?"))


That's all! Except for **@py**, the code is exactly what you would write to
using the NI-VISA backend for PyVISA.


Installation
============

Just run the following command in your console:

    pip install pyvisa-py


You can report a problem or ask for features in the `issue tracker`_.
Or get the code in GitHub_.


FAQ
===


Which libraries are used by PyVISA-py?
--------------------------------------

It depends on the interface type. For **ASRL** and **USB** we use PySerial_ and PyUSB_
respectively. For **TCPIP** we use the :py:mod:`socket` module in the Python Standard Library.
**GPIB** resources are not currently supported but they are in the plan using `linux-gpib`_.


If I only need **TCPIP**, do I need to install PySerial and PyUSB?
------------------------------------------------------------------

No. Libraries are loaded on demand.


How do I know if PyVISA-py is properly installed?
-------------------------------------------------

Using the pyvisa information tool. Run in your console::

  python -m visa info

You will get info about PyVISA, the installed backends and their options.


Which resource types are supported?
-----------------------------------

Now:

- ASRL INSTR
- USB INSTR
- TCPIP INSTR

Soon we will be supporting:

- USB RAW
- TCPIP SOCKET

And later:

- GPIB INSTR

If you want that `soon` or `later` becomes now, give us a hand!


Are all VISA attributes and methods implemented?
------------------------------------------------

No. We have implemented those attributes and methods that are most commonly needed.
We would like to reach feature parity. If there is something that you need, let us know.


Why are you developing this?
----------------------------

The `National Instruments's VISA`_ is a proprietary library that only works on certain systems.
We wanted to provide a compatible alternative.


Why not using LibreVISA?
------------------------

LibreVISA_ is still young. However, you can already use it with the NI backend as it
has the same API. We think that PyVISA-py is easier to hack and we can quickly
reach feature parity with NI-VISA for message-based instruments.


Why putting PyVISA in the middle?
---------------------------------

Because it allows you to change the backend easily without changing your application.
In other projects we implemented classes to call USBTMC devices without PyVISA.
But this leads to code duplication or an adapter class in your code.
By using PyVISA as a frontend to many backends, we abstract these things
from higher level applications.



.. _PySerial: http://pyserial.sourceforge.net/
.. _PyVISA: http://pyvisa.readthedocs.org/
.. _PyUSB: http://walac.github.io/pyusb/
.. _PyPI: https://pypi.python.org/pypi/PyVISA-py
.. _GitHub: https://github.com/hgrecco/pyvisa-py
.. _`National Instruments's VISA`: http://ni.com/visa/
.. _`LibreVISA`: http://www.librevisa.org/
.. _`issue tracker`: https://github.com/hgrecco/pyvisa-py/issues
.. _`linux-gpib`: http://linux-gpib.sourceforge.net/