Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Keitheley USB GPIB visa write returned vi_error_rsrc_nfound

I am new to Labview and currently running evaluation 2014 Ver 14.0f1 (64-bit) on laptop running windows 7 pro 64 bit.

I have installed the Keithley native NI driver but not the NI 488.2. and am having trouble finding example that does not required NI 488.2

 

I am able to controlled all three of my instruments ( Agilent 34980A, Data Precision 8200, HP 3458A) via the VISA Interactive Control.

The Devices show up as GPIB0::9::INSTR, GPIB0::20::INSTR, GPIB0::22::INSTR respectively and default IO setting was used except for HP 3458A where termination character needs to be checked . I was able to send ID? To get the device name and send voltage command to the DP, close / open swtich for the HP 3458A and readback voltage on the Agilent all via the VISAIC. 

 

whenever I tried to use labview to run VISA OPEN or VISA WRITE I get VI_ERROR_RSRC_NFOUND.

 

here's the trace from VISAIC where command worked just fine

Trace from VISAIC

  1. viWrite (GPIB0::9::INSTR (0x022981B8), "*IDN?.", 6, 6)

Process ID: 0x000002A0         Thread ID: 0x00001E8C

Start Time: 08:48:09.133       Call Duration 00:00:00.002

Status: 0 (VI_SUCCESS)

  1. viRead (GPIB0::9::INSTR (0x022981B8), "Agilent Technologies,...", 1024, 59)

Process ID: 0x000002A0         Thread ID: 0x00001E8C

Start Time: 08:48:09.179       Call Duration 00:00:00.002

Status: 0 (VI_SUCCESS)

  1. viWrite (GPIB0::9::INSTR (0x022981B8), "ROUT:CLOS (@1201,1601...", 27, 27)

Process ID: 0x000002A0         Thread ID: 0x00001E8C

Start Time: 08:48:57.254       Call Duration 00:00:00.002

Status: 0 (VI_SUCCESS)

 

Attempt 1 using quick drop to find VISA open, clear, write( ID?), read

GPIB0::22::INSTR is set for the “VISA resource name” input control

Get error -1073807343 source “VISA Write in Untitled 2”

Trace from VISAIC

> 266. VISA Open ("GPIB0::22::INSTR", False, 0, 0, "GPIB0::22::INSTR")

> Process ID: 0x000023B4         Thread ID: 0x00001574

> Start Time: 10:41:26.914       Call Duration 00:00:00.002

> Status: 0xBFFF0011 (VI_ERROR_RSRC_NFOUND)

 

Attempt 2 bypass the visa open and use the visa write (ID?)

Get error code -1073807343 and source “VISA Write in Untitled 2”

> 268. VISA Write ("GPIB0::22::INSTR", "ID?.", 0)

> Process ID: 0x000023B4         Thread ID: 0x00001574

> Start Time: 11:00:39.285       Call Duration 00:00:00.003

> Status: 0xBFFF0011 (VI_ERROR_RSRC_NFOUND)

 

from the trace I can see viREAD and viWRITE will work but I can't find these vi anywhere. Does that mean VISAIC is not written in LABVIEW and these functions are only available in C++ or other programming language?

I was also able to use the function call found in GPIB.h to communicate with the instrument using ibdev, ibwrt, ibrd in c++ program so I am assuming the driver for the Keithley GPIB kusb-4448b is working.

 

 

Any help is appreciated

Mark

 

0 Kudos
Message 1 of 14
(7,552 Views)
0 Kudos
Message 2 of 14
(7,542 Views)
The viRead and viWrite functions are called by the VISA Read and VISA Write functions in LabVIEW.

I don't recall the exact procedure to enable the Keithley to work with LabVIEW. You may need to enable Tulip support. Probably a question for Keithley. What version of NI-VISA are you using? How does the controller appear in MAX?
0 Kudos
Message 3 of 14
(7,536 Views)

yes lots of example but I can't find anything for KUSB-488B GPIB USB adapter.

0 Kudos
Message 4 of 14
(7,508 Views)
Why would you think that there should be specific examples when you use VISA? That does not make any sense. One of the reasons for VISA is portability and if if their driver does not support the standards, it is the fault of Keithley. Have you contacted Keithley yet? Why are you even using a Keithley controller?
0 Kudos
Message 5 of 14
(7,506 Views)

I have left similar message in Keithley forum so far 20 + views no reply so far.

I have replace the keithely driver with 3.12.1 found in their website instead of what I was using in the CD that came with the adapter. but still the same behavior.

 

I just downloaded VISA 14.0.1 and still the same.

I launched the NI-VISA wizard and on the USB - Device Selection it recognize the adapter as Keithley model KUSB-488B. but when I choose Install the generated files on this computer I got an error dialog.

first time

got an resource error dialog 

 

second attempt go this error dialog

"An Error has occured that has prevented the driver from being installed on your computer. One reason for this error may be because you lack the proper privileges to install this driver. You may need to log in as administrator to complete this operation"

 

third attmpt no error

 

launch NI-MAX and now it has the USB show up on the Device and Interface list.

 

the device show up as USB0::0x05E6::0x488B::NI-VISA-4003::RAW in NI-MAX

 

launch VISA Interactive Control now the three device GPIB0::9::INSTR, GPIB0::20::INSTR, and GPIB0::22::INSTR are replace by USB RAW Resource and with only one entry so I can no longer send command to each individual device thru input/Output. the same address show up in NI-MAX is also in there USB0::0x05E6::0x488B::NI-VISA-4003::RAW.

 

attempting the same labview visa write and visa read using GPIB0::9::INSTR as input because I don't know where USB0::0x05E6::0x488B::NI-VISA-4003::RAW is getting routed still get the same error BFFF0011 insufficient location information

 

 

0 Kudos
Message 6 of 14
(7,502 Views)
It seems silly to try and fix the problem with the Keithley by installing software for NI controllers (NI-VISA) and it is certainly wrong to try the VISA wizard. The only thing that will do is totally break the actual drivers that are required. That HAS to be undone. You just can't make up things to try.
0 Kudos
Message 7 of 14
(7,500 Views)

Can you explain why VISAIC works and labview does not? I think VISAIC is written in C and does not use vi and something is borken when running in Widnows pro 64 bits which is what I am using

0 Kudos
Message 8 of 14
(7,497 Views)

Got VISA Find Resource working which confirm Labview can't see the GPIB adapter and all the instrument connect to it that VISAIC can see. it return count of 3 and the list are PXI0::MEMACC, ASRL1::INSTR, and ASRL10::INSTR. the three GPIB0 are not visible unlike VISAIC. 

0 Kudos
Message 9 of 14
(7,480 Views)

@doublewood wrote:

yes lots of example but I can't find anything for KUSB-488B GPIB USB adapter.


Of course, you won't find any software examples.

 

KUSB-488B is a piece of hardware. You should simply install whatever driver it requires.

 

Anyway, instead of taking actions that don't make any sense, you could have simply Googled KUSB-488B labview and found

https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/KUSB-488B-not-operating-with-LabVIEW/td-p/26...

 

I suggest that you read Rikud's post CAREFULLY.

 

 

 

0 Kudos
Message 10 of 14
(7,477 Views)