Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

What should I write in for VISA resource name when I use GPIB-USB-HS?

I try to modify labview code for HP34970A EZ Temperature.vi 

 

What should I write in for VISA resource name when I use GPIB-USB? Normally I use command "GPIB0::9::INSTR" for GPIB-PCI is working fine but when I install GPIB-USB-HS and use command "GPIB1::9::INSTR " in same PC but it show error at labview(When I change back to GPIB-PCI is still working fine)

 

 Any advise?

 

PS.Error is -1073807343

 

Regards

Ong

0 Kudos
Message 1 of 6
(4,990 Views)

Don't write anything in. Just click on the little arrow on the right side of the VISA Resource Name control and select it from the list that is shown.

 

If your instrument is not shown, then you've got a problem. After connecting the instrument to the USB controller, be sure to do a scan for instruments.

0 Kudos
Message 2 of 6
(4,987 Views)

Hi    

It show 2 cards GPIB0 for PCI and GPIB1 for USB but still show error when I chooses GPIB1,,

 

on the other hand I use measurenent and automation explorer to talk with instument both pci and usb GPIB are get respons from istrument, but show error when use labview..

 

any advise

 

thanks

Message Edited by Ongchanok on 08-05-2009 05:57 PM
0 Kudos
Message 3 of 6
(4,971 Views)

What shows two cards? MAX? The resource control? Where are you choosing the instrument and how? Are you still typing the resource name manually?

 

Go into MAX and expand devices and interfaces. Click on both cards and select Scan for Instruments on each. Take a screen shot that shows the results of both scans. Post the screen shot as a png file.

0 Kudos
Message 4 of 6
(4,968 Views)

I choos instrument from  click from visa resourse small arrow. and attached of screen

 

Thanks

Download All
0 Kudos
Message 5 of 6
(4,965 Views)

I'm still a little confused. The no error image - does that mean that the instrument is connected to the GPIB-USB and you use GPIB0::9:INSTR with no error?

 

The image with the error - is GPIB1::9:INSTR available in the resource name pulldown?

 

I have not had multiple GPIB controllers in while but I don't remember having any problems like this. Have you tried removing the pci controller or reinstalling NI-488.2 and NI-VISA? What versions of both are you using?

 

I just thought of something that you can try. If you've been connecting the instrument from one controller to the other, perhaps the visaconf.ini file is corrupt. Delete it and then go into MAX and do a refresh/scan for instruments. This will recreate the visaconf.ini file. Try the LabVIEW program or VISA interactive.

Message Edited by Dennis Knutson on 08-05-2009 08:39 PM
Message Edited by Dennis Knutson on 08-05-2009 08:42 PM
Message Edited by Dennis Knutson on 08-05-2009 08:46 PM
0 Kudos
Message 6 of 6
(4,946 Views)