###User Defined Function###
_viClose

###Description###
Closes a VISA connection to an Instrument/Device

###Syntax###
#include <Visa.au3>
_viClose ( $h_session )


###Parameters###
@@ParamTable@@
$h_session
	A VISA session handle as returned by <a href="_viOpen.htm">_viOpen()</a>
@@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


###Related###
_viExecCommand, _viFindGpib, _viGpibBusReset, _viGTL, _viOpen, _viSetAttribute, _viSetTimeout


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