Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB and VISA Problem

Hi,

 

I am writing program to communicate with Keithley 4200.  I have downloaded the instrument driver.

When I used the Check 4200 ID.vi, the GPIB write had an error with error code was 7.

However, when I changed the GPIB write to VISA write, the error did not happen.

 

Why this happen?

 

Attached are the graph of block diagram, one was using GPIB write, another was using VISA write.

 

Thanks

 

Download All
0 Kudos
Message 1 of 21
(4,873 Views)

Error 7 is a "Nonexistent GPIB interface". What are you setting the VISA resource name to?

0 Kudos
Message 2 of 21
(4,839 Views)

The VISA resource name is GPIB0::17::INSTR.  

The error was shown when using GPIB write.  It is fine when VISA write was used.

0 Kudos
Message 3 of 21
(4,809 Views)

What GPIB card are you using? Is it from NI?

0 Kudos
Message 4 of 21
(4,807 Views)

I am using GPIB-USB-HS from NI.

0 Kudos
Message 5 of 21
(4,794 Views)

And what was the GPIB string you used?

 

greetings from the Netherlands
0 Kudos
Message 6 of 21
(4,774 Views)

The string is "ID" and the address is 17.

0 Kudos
Message 7 of 21
(4,734 Views)

use simply 17 in the string, and it should work.

Why did you put ID in the string?

greetings from the Netherlands
0 Kudos
Message 8 of 21
(4,695 Views)

Sorry.  I misunderstood your questions.  I have already using 17 in the string.  ID is the data I want to write to the instrument.

0 Kudos
Message 9 of 21
(4,685 Views)

The only thing I can guess now is that the bus already was occupied by another program or max or hyperterminal or maybe gpib itself,

 

Do you close the session?

greetings from the Netherlands
0 Kudos
Message 10 of 21
(4,671 Views)