Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Go To Local GTL RenMode

I am programming using VB.NET 2005.

I am trying to set my instrument (HP8753C VNA) to local.

The manual says there is a GTL command but obviously I can't just send it with a MessageBasedSession.

This is the info in the help for the NationalInstruments.VisaNS that I found for REN and GTL, but I can't work out how to apply it.


RenMode Enumeration  [Visual Basic]

Specifies the state of the GPIB Remote Enable (REN) line.

<Serializable>
Public Enum RenMode As Short

Members

Member Name Description
Deassert Deassert REN line.
Assert Assert REN line.
DeassertAfterGtl Send the Go To Local (GTL) command and deassert REN line.
AssertAndAddress Assert REN line and address device.
AssertLlo Send LLO to any devices that are addressed to listen.
AssertAddressLlo Address this device and send it a Local Lockout (LLO) command, putting it in Remote With Local lockout State (RWLS).
AddressAndGtl Send the Go To Local command (GTL) to this device.

Requirements

Namespace: NationalInstruments.VisaNS

Assembly: NationalInstruments.VisaNS (in NationalInstruments.VisaNS.dll)


0 Kudos
Message 1 of 2
(4,661 Views)
Despite the help Smiley Wink I managed to work it out

        Dim GPIB As NationalInstruments.VisaNS.GpibSession
        GPIB = CType(ResourceManager.GetLocalManager().Open("GPIB0::16::INSTR"), NationalInstruments.VisaNS.GpibSession)
        GPIB.ControlRen(RenMode.AddressAndGtl)
        GPIB.Dispose()
        GPIB = Nothing

The VISA help for .NET needs extra links to other relevant parts of the help.
0 Kudos
Message 2 of 2
(4,637 Views)