05-18-2015 09:38 AM - edited 05-18-2015 09:39 AM
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
Process ID: 0x000002A0 Thread ID: 0x00001E8C
Start Time: 08:48:09.133 Call Duration 00:00:00.002
Status: 0 (VI_SUCCESS)
Process ID: 0x000002A0 Thread ID: 0x00001E8C
Start Time: 08:48:09.179 Call Duration 00:00:00.002
Status: 0 (VI_SUCCESS)
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
05-18-2015 11:18 AM - edited 05-18-2015 11:19 AM
Keithley has all sorts of example http://www.keithley.com/products/data/datalogger/?path=2701/Downloads
05-18-2015 11:33 AM
05-19-2015 08:48 AM
yes lots of example but I can't find anything for KUSB-488B GPIB USB adapter.
05-19-2015 09:03 AM
05-19-2015 09:40 AM
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
05-19-2015 10:01 AM
05-19-2015 10:14 AM
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
05-19-2015 03:05 PM - edited 05-19-2015 03:07 PM
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.
05-19-2015 03:08 PM - edited 05-19-2015 03:08 PM
@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
I suggest that you read Rikud's post CAREFULLY.