Closed MatthieuDartiailh closed 9 years ago
Probably you have an old version of pyvisa. Please update to the latest in github. We were stabilizing the hooking API.
Python 2.7.8 (v2.7.8:ee879c0ffa11, Jun 29 2014, 21:07:35)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import visa
>>> rm = visa.ResourceManager('@sim')
My detaills are:
Machine Details:
Platform ID: Darwin-10.8.0-x86_64-i386-64bit
Processor: i386
Python:
Implementation: CPython
Executable: /Users/grecco/envs/pyvisadev27/bin/python
Version: 2.7.8
Compiler: GCC 4.2.1 (Apple Inc. build 5666) (dot 3)
Bits: 64bit
Build: Jun 29 2014 21:07:35 (#v2.7.8:ee879c0ffa11)
Unicode: UCS2
PyVISA Version: 1.6.2.dev0
Backends:
ni:
Version: 1.6.2.dev0 (bundled with PyVISA)
#1: /Library/Frameworks/visa.framework/visa:
found by: auto
bitness: 32
Could not get more info: Interpreter and library have different bitness.
sim:
Does not provide debug info
I though 1.6.1 was enough. It works indeed with latest master.
If you are interested in pyvisa-sim, we could discuss a few of the features that are needed and how to implement them.
I actually am. I need to test some of my code using instruments. I don't forget Pint but right now I have other priorities.
Doing this fails :
I don't get why this happens.