###User Defined Function###
_viGTL

###Description###
Go To Local mode: Instruments that accept this command will exit the "Remote Control mode" and go to "Local mode". If the instrument is already in "Local mode" this is simply ignored. Normally, if an instrument does not support this command it will simply stay in the "Remote Control mode"

###Syntax###
#include <Visa.au3>
_viGTL ( $hSession )


###Parameters###
@@ParamTable@@
$hSession
	A VISA descriptor (STRING) OR a VISA session handle (INTEGER).
	See the Remarks of the <a href="_viExecCommand.htm">_viExecCommand()</a> for more info.
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	0.
Failure:	-1 if the VISA DLL could not be open
	or a NON ZERO value representing the VISA error code (see the VISA programmer's guide).
@@End@@
This function always sets the @error flag to non-zero in case of error.


###Remarks###
As for all the VISA functions the VISA libraries must be installed (you can check whether visa32.dll is in {WINDOWS}\system32) and a GPIB card (such as a National Instruments NI PCI-GPIB card or an Agilent 82350B PCI High-Performance GPIB card) must be installed

* For a detailed description of the most common VISA DESCRIPTORS look at the Remarks of the help on the <a href="_viExecCommand.htm">_viExecCommand()</a> function


###Related###
_viExecCommand, _viGpibBusReset, _viFindGpib, _viOpen, _viClose


###Example###
@@IncludeExample@@
