Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: PyVISA

Reply
Thread Tools

Re: PyVISA

 
 
eryksun ()
Guest
Posts: n/a
 
      04-01-2011
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".
 
Reply With Quote
 
 
 
 
Manatee
Guest
Posts: n/a
 
      04-01-2011
On Apr 1, 4:05*pm, "eryksun ()" <(E-Mail Removed)> 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.
 
Reply With Quote
 
 
 
 
Manatee
Guest
Posts: n/a
 
      04-02-2011
On Apr 1, 4:05*pm, "eryksun ()" <(E-Mail Removed)> 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



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[newbie] problem with module PyVisa Jean Dubois Python 5 11-20-2012 01:28 PM
PyVISA Manatee Python 3 04-23-2011 12:26 AM
ANN: PyVISA 1.1 -- GPIB, USB, RS232 instrument control Torsten Bronger Python 0 11-22-2006 06:45 AM
ANN: PyVISA 1.0 -- GPIB, USB, RS232 instrument control Torsten Bronger Python 0 01-24-2006 01:48 PM
ANN: PyVISA 0.9 (first public release) Torsten Bronger Python 0 06-30-2005 09:24 AM



Advertisments