Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Re: PyVISA (http://www.velocityreviews.com/forums/t746178-re-pyvisa.html)

eryksun () 04-01-2011 08:05 PM

Re: PyVISA
 
On Friday, April 1, 2011 3:40:23 PM UTC-4, Manatee wrote:
>
> Well, ok, I'll try some of that. But I am running window 7, not Linux.
> The "sudo" command sounds like Linux.


Again, there's a win32 exe installer available here:

http://sourceforge.net/projects/pyvi...2.exe/download

If your account is a standard user and the installer doesn't load a UAC prompt, you'll probably have to right-click it and choose to "Run as administrator".

Manatee 04-01-2011 08:22 PM

Re: PyVISA
 
On Apr 1, 4:05*pm, "eryksun ()" <eryk...@gmail.com> wrote:
> On Friday, April 1, 2011 3:40:23 PM UTC-4, Manatee wrote:
>
> > Well, ok, I'll try some of that. But I am running window 7, not Linux.
> > The "sudo" command sounds like Linux.

>
> Again, there's a win32 exe installer available here:
>
> http://sourceforge.net/projects/pyvi.../PyVISA-1.3.wi...
>
> If your account is a standard user and the installer doesn't load a UAC prompt, you'll probably have to right-click it and choose to "Run as administrator".


Aaaaahhhhhh... now we are getting somewhere. I had the wrong version.
Ok, let me try accessing a simple instrument.

Manatee 04-02-2011 02:24 AM

Re: PyVISA
 
On Apr 1, 4:05*pm, "eryksun ()" <eryk...@gmail.com> wrote:
> On Friday, April 1, 2011 3:40:23 PM UTC-4, Manatee wrote:
>
> > Well, ok, I'll try some of that. But I am running window 7, not Linux.
> > The "sudo" command sounds like Linux.

>
> Again, there's a win32 exe installer available here:
>
> http://sourceforge.net/projects/pyvi.../PyVISA-1.3.wi...
>
> If your account is a standard user and the installer doesn't load a UAC prompt, you'll probably have to right-click it and choose to "Run as administrator".


Ok, I have the correct version. I can run "from visa import *" and get
no error. How ever when I run this command I get and error:

My_Instrument = instrument("GPIB::5")

Traceback (most recent call last):
File "C:/Users/Rivetmr/MyPythonScripts/My_GPIB.py", line 2, in
<module>
my_instrument = instrument("GPIB::5")
File "C:\Python27_32bit\lib\site-packages\pyvisa\visa.py", line 288,
in instrument
vpp43.parse_resource(resource_manager.session, resource_name)
File "C:\Python27_32bit\lib\site-packages\pyvisa\vpp43.py", line
777, in parse_resource
byref(interface_board_number))
File "C:\Python27_32bit\lib\site-packages\pyvisa\vpp43.py", line
398, in check_status
raise visa_exceptions.VisaIOError, status
VisaIOError: VI_ERROR_INTF_NUM_NCONFIG: The interface type is valid
but the specified interface number is not configured.

My instrument is on GPIB 5 and I can do a *IDN? with another program
and get a response. So I must still have something not configured
correct. Getting closer though :)





All times are GMT. The time now is 03:21 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


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