Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Can talk to device (agilent e3631A) over MAX but not python?

Have my supply connected via GPIB-USB-HS. Can see it in MAX, but I'm unable to recognize it in Python. My Python code is below:

 

import Visa

rm = visa.InstrumentManager

rm.listResources()

 

Then I just get a '()' returned with no devices found

0 Kudos
Message 1 of 4
(2,730 Views)

Have you tried "Scan for Instruments"?

 

http://www.ni.com/getting-started/set-up-hardware/instrument-control/ja/pcmcia-gpib

Certified LabVIEW Developer
There are only two ways to tell somebody thanks: Kudos and Marked Solutions

GCentral
0 Kudos
Message 2 of 4
(2,719 Views)

Yes. My MAX recognizes the instrument, but my python terminal does not. I'm fairly new to this. Is there something I'm missing?

0 Kudos
Message 3 of 4
(2,709 Views)

I don't have enough knowledge for instrument control with python but,

on some web site, othes use "PyVISA"

 

Following site is written in Japanese but there is an example python code.

Why don't you try this one?

pyVISA を使ってみた

Certified LabVIEW Developer
There are only two ways to tell somebody thanks: Kudos and Marked Solutions

GCentral
0 Kudos
Message 4 of 4
(2,701 Views)