From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to stop GPIB Instrument lock?

Solved!
Go to solution

Hi,

I am writting a program in Labview 8.5 that communicates through VISA (GPIB) with an Agilent 8960 E1963A. My issue is that as soon as the program makes its first command to the device, and indefinitely after, all the real instrument controls on the actual Agilent device cease to function. The only way to currently restore manual control is to completly disconnect the GPIB cable, or close every single NI application open (stopping the labview program is useless - labview in its entirety, even the welcome window, must be closed before control is restored). I have tried both clearing the buffers with the VISA CLEAR VI and closing the session after every VISA WRITE with a VISA CLOSE VI...alas to no avail. I'm still in the process of debugging, and it is extremely frustrating to open the program, run it, send one command, shut down and disconnect everything to make sure it worked, and then re open everything to try again with a second command...does anyone know how to fix this?

 

Thanks!!! 

 

0 Kudos
Message 1 of 8
(4,806 Views)

Hey Dennon

 

It sound like you need to put the Agilent test set on a diet.  Just press the button labled "LO-CAL" on the front of the unit and the "real" controls will start functioning again.Smiley Wink

 

Most test equipments work about the same way.  When you initiallize remote control the front panel controls lock out to prevent accidental re-configuring of the unit from the front panel.  the local button will override the remote operation and restore manual control.


"Should be" isn't "Is" -Jay
Message 2 of 8
(4,797 Views)
Solution
Accepted by topic author DennonO

You can also use a function on the VISA Advanced palette named VISA GPIB Control REN

 

 

mode specifies the state of the REN line and optionally the device remote/local state. This input accepts the following values.

0Deassert REN—Deassert REN line.
1Assert REN—Assert REN line.
2Go To Local; Deassert REN—Send the Go To Local (GTL) command and deassert REN line.
3Assert REN; Address Device—Assert REN line and address device.
4Local Lockout (Addressed Devices)—Send LLO to any devices that are addressed to listen.
5Local Lockout (This Device)—Address this device and send it LLO, putting it in RWLS.
6Go To Local—Send the Go To Local command (GTL) to this device.

Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.

"You are what you don't automate"
Inplaceness is synonymous with insidiousness

Message 3 of 8
(4,785 Views)

Thanks! Both work, but the VISA GPIB control REN was exactly what I was looking for!

 

Great to see such quick, accurate support. 

Message 4 of 8
(4,749 Views)

Hi  Phillip,

I have some problems with this VISA GPIB control REN function,

the picture below is how I connected to my instrument, However, it failed.

May you give me some advice on how to solve this REN problem?

Many thanks.

 

擷取.JPG

0 Kudos
Message 5 of 8
(1,753 Views)

@Isalanlin wrote:

Hi  Phillip,

I have some problems with this VISA GPIB control REN function,

the picture below is how I connected to my instrument, However, it failed.

May you give me some advice on how to solve this REN problem?

Many thanks.

 

擷取.JPG


Well, usually posting to a decade old thread without giving specific information about how [your code] failed isn't going to help us help you.

 

What did you want your code to do?

 


"Should be" isn't "Is" -Jay
0 Kudos
Message 6 of 8
(1,727 Views)

Maybe Open the VISA session first, then assert Remote?  We would need the error info at the very least to help further.  After that the instrument make/model would help.

0 Kudos
Message 7 of 8
(1,694 Views)

@cstorey wrote:

Maybe Open the VISA session first, then assert Remote?  We would need the error info at the very least to help further.  After that the instrument make/model would help.


Nothing will override "the diet button,"  you know, the button on the equipment that is labled LoCal.


"Should be" isn't "Is" -Jay
Message 8 of 8
(1,682 Views)