Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting to a Tektronix PS2510 with GPIB, error 1073807264

Hi all, I have an Agilent82357 GPIB/USB interface that I use to connect to my machines. Right now I am trying to use it with a Tektronix PS2510G Programmable Power Supply.

 

I have it connected and it (both the Agilent GPIB/USB and the Tektronix) is recognized in NI MAX. I can open the VISA test panel for the device and query *IDN?, to which it returns an ID string. I can also send it commands in its syntax (like "volt 5") and it correctly sets the voltage to what I ask. So I KNOW it's connecting to the machine correctly.

 

On the machine, two words are lit up, RMT and TLK. The GPIB address, as seen in the side panel of NI MAX, is GPIB0::11::INSTR.

 

Okay, now I want to control it from a Labview program. So I make a really simple one like this:

 

Simple_write_PS2510G.png

 

And in the front panel I set the resource name to GPIB0::11::INSTR. The command works perfectly in NI MAX.

 

When I run it, I get this fun error:

 

error 1073807264 labview.PNG

 

Okay, I see the "reason" but that doesn't really tell me much, to be honest.

 

 Googling for a solution gives me the following top results, which don't help:

 

This thread http://forums.ni.com/t5/LabVIEW/Error-1073807265/td-p/758030 results in the guy installing LV on another machine. Someone in the thread suggests this http://digital.ni.com/public.nsf/allkb/49817A4A58B78843862574730051962F?OpenDocument solution, which clearly isn't applicable to me because I'm using the right GPIB address.

 

This thread http://forums.ni.com/t5/LabVIEW/Error-1073807264/td-p/1974109 doesn't help either. The guy isn't sure of his solution and it doesn't apply to me anyway.

 

This thread http://forums.ni.com/t5/LabVIEW/Losing-connection-to-Agilent-6672A-with-GPIB-while-running-a-VI/td-p... also shows the issue as never solved.

 

I really can't find what to do. It's so strange to me that I can communicate with the machine in NI MAX, but not in LabVIEW. Can anyone give me any tips? thank you!

0 Kudos
Message 1 of 4
(4,757 Views)

Hi optoelectro,

 

I'd start by confirming that you have the correct Tektronix PS2510G driver installed (if you are using LabVIEW 2013, you should install the 2012 driver). You can find the driver at ni.com/downloads by searching Tektronix PS2510G, or at the following link: Tektronix PS2510G

 

I would guess that this was a driver issue, but since your error code seems to be related to passing GPIB controlsfeel free to take a look at this KB. It might point you in the right direction: Passing GPIB Control - System Controller vs. Controller In Charge

 


 

Derek B. (esoDerek)
Product Marketing Engineer
National Instruments
0 Kudos
Message 2 of 4
(4,714 Views)

Hi Derek, thanks a lot for the response. To update, it is now working -- but I'm not sure why. I have installed all the updates available in Help->Check for updates, but this required rebooting my PC, and I think the rebooting is actually what fixed it.

 

I actually couldn't find the drivers you found when I used Help->Find instrument drivers! I did find ones for the 2520G, which is the upgraded version of this device, but I haven't used them. Please correct me if I'm wrong here, but I don't need drivers for the instrument if I can successfully communicate with it by sending raw VISA commands, right? (As I was doing in the VISA Test panel.)

 

I think your KB link may be what's going on here. I think by rebooting, it put my GPIB/USB controller back in charge.

0 Kudos
Message 3 of 4
(4,687 Views)
Of course you don't need a driver but I don't understand why you wouldn't at least download it from the provided link and give it a try.
0 Kudos
Message 4 of 4
(4,682 Views)