Coder Social home page Coder Social logo

Comments (4)

feihoo87 avatar feihoo87 commented on August 11, 2024

直接用 pyvisa 时出错吗?

from qulab.

Lagikna avatar Lagikna commented on August 11, 2024
OSError                                   Traceback (most recent call last)
<ipython-input-29-55d91e4424a2> in <module>()
      1 import visa
----> 2 rm = visa.ResourceManager()
      3 rm.list_resources()

b:\winpython-64bit-3.6.3.0qt5\python-3.6.3.amd64\lib\site-packages\pyvisa\highlevel.py in __new__(cls, visa_library)
   1497     def __new__(cls, visa_library=''):
   1498         if not isinstance(visa_library, VisaLibraryBase):
-> 1499             visa_library = open_visa_library(visa_library)
   1500 
   1501         if visa_library.resource_manager is not None:

b:\winpython-64bit-3.6.3.0qt5\python-3.6.3.amd64\lib\site-packages\pyvisa\highlevel.py in open_visa_library(specification)
   1469 
   1470     try:
-> 1471         return cls(argument)
   1472     except Exception as e:
   1473         logger.debug('Could not open VISA wrapper %s: %s\n%s', cls, str(argument), e)

b:\winpython-64bit-3.6.3.0qt5\python-3.6.3.amd64\lib\site-packages\pyvisa\highlevel.py in __new__(cls, library_path)
     95                     errs.append(str(e))
     96             else:
---> 97                 raise OSError('Could not open VISA library:\n' + '\n'.join(errs))
     98 
     99         if (cls, library_path) in cls._registry:

OSError: Could not open VISA library:

from qulab.

Lagikna avatar Lagikna commented on August 11, 2024

打开Visa错误

from qulab.

feihoo87 avatar feihoo87 commented on August 11, 2024

我这边的环境变量,你参考一下

NIEXTCCOMPILERSUPP=C:\Program Files (x86)\National Instruments\Shared\ExternalCompilerSupport\C\
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin\;C:\Program Files\IVI Foundation\VISA\Win64\Bin\;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;
VXIPNPPATH=C:\Program Files (x86)\IVI Foundation\VISA\
VXIPNPPATH64=C:\Program Files\IVI Foundation\VISA\

from qulab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.