Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5668

Keitheley USB GPIB visa write returned vi_error_rsrc_nfound

$
0
0

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

 


Viewing all articles
Browse latest Browse all 5668

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>