PyVISA |
您所在的位置:网站首页 › pyvisa安装包 › PyVISA |
PyVISA-py: Pure Python backend for 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 pyvisa >>> rm = pyvisa.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. Currently Pyvisa-py support the following resources: TCPIP INSTR TCPIP SOCKET GPIB INSTR ASRL INSTR USB INSTR USB RAW Note: ASRL INSTR supports also URL Handlers like loop:// –> ASLRloop://::INSTR socket:// –> ASRLsocket://::INSTR These entries will not be listed during the device discovery rm.list_resources(). For further details see https://pyserial.readthedocs.io/en/latest/url_handlers.html You can report a problem or ask for features in the issue tracker. Or get the code in GitHub. Installation Ethernet resources: TCPIP INSTR/SOCKET Serial resources: ASRL INSTR GPIB resources: GPIB INSTR USB resources: USB INSTR/RAW How do I know if PyVISA-py is properly installed? Using the development version FAQ Are all VISA attributes and methods implemented? Why are you developing this? Are GBIP secondary addresses supported? Can PyVISA-py be used from a VM? Can PyVISA-py be used from a Docker container? Why not using LibreVISA? Why putting PyVISA in the middle? |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |