LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with Voltmeter VI using LabView and Keithley 6517b

Solved!
Go to solution

Hi, I'm trying to make a VI that reads voltage from a 6517B Keithley Electrometer. I've got this VI and everything seems okay except that it doesn't run. The error out status is on error every time I attempt to run it. I'm not sure what the issue is if someone could help me figure it out.

2024-03-05.pngScreenshot (10).png

0 Kudos
Message 1 of 12
(1,000 Views)

GPIB Instrument Control Tutorial

Does the communication work with VISA Interactive Panel?

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
0 Kudos
Message 2 of 12
(961 Views)

I think it wouldn’t let me bring it up.  I’ll have to check again when I have access to the machine. 

0 Kudos
Message 3 of 12
(940 Views)

There were a few errors in your code:

  1. Alway try to select the VISA instrument to avoid a typo like GPIBO instead of GPIB0.
  2. When writing (Command or Query) to an instrument, it generally needs to be completed with an end of transmission for the instrument to act upon the request.  This is usually a newline character, but can also be a semi-colon ";" in most cases.
  3. Build an array using your FOR or WHILE loop or physically build it within those structures using the build array and not the insert into array as it would actually build time backwards with the latest entry appearing first then counting down in time instead of displaying forward in time.
Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
Message 4 of 12
(924 Views)

I won't have access to the machine until maybe next week but I'll try out everything you guys have posted and get back to you. I'm new to LabVIEW so this has been really helpful. Thank you!

0 Kudos
Message 5 of 12
(913 Views)

It used to let me open the VISA test panel but now it gives me this: Screenshot (12).png

0 Kudos
Message 6 of 12
(876 Views)

My suggestion would be to close LabVIEW and try that again.  

 

The reason is that if the VISA communication with the instrument was not properly closed, then an issue like that may occur in NI-MAX.  Also, close NI-MAX prior to running your LabVIEW program or it may experience a similar issue.

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
0 Kudos
Message 7 of 12
(867 Views)

Got it. Now I can't see the device in NI Max at all. Will uninstall and re-install the driver and see if that fixes it.

Update: Fixed it.

0 Kudos
Message 8 of 12
(843 Views)

I closed LabVIEW and tried it again. The error persists.

0 Kudos
Message 9 of 12
(834 Views)

When I clicked on VISA interactive control, It gave me an error code: VISA: (HEX 0Xs BFFFF001) insufficient location information or the device is not present in the system and after that I was not able to see the device again

0 Kudos
Message 10 of 12
(823 Views)