LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB Write Error 7

I have a small and simple sub VI for Keithley reset/preset.

 

There is no "error in"  to the GPIB Function called GPIB Write but in "error out" I get an Error 7. From where is this error coming. Please see attachemnt.

 

Gpib Address is 27

MAX Shows proper interactive control / query check with the device.

 

I have read all documents about GPIB Errror 7 on ni.website..but that does not help.

Best Regards,
Poulomi Das.
Institute for Microsystems Engineering.
University of Freiburg.
Freiburg, Germany.
0 Kudos
Message 1 of 14
(6,576 Views)
My guess is because you are screwing around with the termination. Leave it disconnected and try. Perhaps one of the other options. For that matter, no reason to use the low level GPIB. Use VISA.
0 Kudos
Message 2 of 14
(6,571 Views)
And attach a screen shot of MAX showing the device.
0 Kudos
Message 3 of 14
(6,566 Views)

thank you for the reply.

 

please see attachment for MAX screenshot.

Best Regards,
Poulomi Das.
Institute for Microsystems Engineering.
University of Freiburg.
Freiburg, Germany.
0 Kudos
Message 4 of 14
(6,533 Views)

I used VISA Write instead of GPIB Write function. I still get an error -1073807343.

 

Please see screenshot .

Best Regards,
Poulomi Das.
Institute for Microsystems Engineering.
University of Freiburg.
Freiburg, Germany.
0 Kudos
Message 5 of 14
(6,532 Views)

Hi pd,

 

error 7 says "NI-488:  GPIB-Schnittstelle existiert nicht." (interface doesn't exist)...

 

So I guess: you use some GPIB interface from an manufacture like Keithley or Agilent (but not NI). Those interfaces are supported by MAX and LabVIEW - but you should definitely use VISA functions instead of those (old, nearly obsolete) GPIB functions!#

Edited: My guess was right after looking at your MAX screenshot...

 

Edited: Now I saw those other messages...

For your VISA problem: VISA uses other references than those plain GPIB functions, hence you get "resource not found" errors. You really should read the context help for VISAWrite to know what to wire at the reference input!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 14
(6,526 Views)

Hello GerdW,

 

Thank you for your reply.

 

I am trying to connect to VISA Write by refering to context help.

 

I am using a GPIB Interface for my keithley device. with address 27.

 

in VISA Write , there are 2 ports:

Write Buffer

VISA Resource name.

 

to Write buffer I connect the GPIB Address 27

 

What should I connect to the VISA Resource name terminal?

Best Regards,
Poulomi Das.
Institute for Microsystems Engineering.
University of Freiburg.
Freiburg, Germany.
0 Kudos
Message 7 of 14
(6,516 Views)

Hi pd,

 

did you read the context help of VISAWrite? RTFM!

It says something like this (and a lot more):

check.png

- There's a link in the help explaining the resource name...

 

- Why do you wire the GPIB address to the write buffer? Did you wire that address to the write buffer of the GPIBWrite too?

- Create a constant for the resource name, then select the resource...

 

READ THE HELP!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 14
(6,512 Views)

Hi

 

yes I did read through.

 

And sorry that was a typing error..I connected the GPIB Address to resource name.

To write buffer I connected the data but still I am getting the same error like I posted in the VISA Write error screenshot.

 

Context HELP, HELP also aks to connect data to write buffer and the resource here is the GPIB Address as far as I understand.

 

I am very new to labview; please let me know where I am going wrong.

Best Regards,
Poulomi Das.
Institute for Microsystems Engineering.
University of Freiburg.
Freiburg, Germany.
0 Kudos
Message 9 of 14
(6,492 Views)

Hi pd,

 

you cannot wire just the GPIB address to the VISA resource input. Create a resource constant and select the correct resource name!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 14
(6,486 Views)