TDS640__SetupChannel (ul_pbar_instruments)

 *  Synopsis:
 *    #include <ul_pbar_instruments:tds640.h>
 *
 *    int TDS640__SetupChannel( const CTDS640ptr tds640Ptr,
 *				const ECHANnumber channel,
 *				const EBANdwidth BANdwidth,
 *				const ECOUPling COUPling,
 *				const EIMPedance IMPedance,
 *				const float SCAle,
 *				const float OFFSet,
 *				const char *channelName )
 *
 *  Function intent:
 *    TDS640__SetupChannel() sets the channel input, gain and offset parameters
 *    for the requested channel.
 *  Function parameters:
 *    CTDS640ptr	tds640Ptr	Valid TDS 640 module pointer
 *    ECHANnumber	channel		TDS 640 channel to be read:
 *					  kChan1 <= channel <= kChan4
 *    EBANdwidth	BANdwidth	Channel bandwidth:
 *					  kTWEnty - 20 MHz channel bandwidth
 *					  kHUNDred - 100 MHz channel bandwidth
 *					  kFULl - full channel bandwidth 
 *    ECOUPling		COUPling	Channel input coupling mode:
 *					  kAC - AC coupling
 *					  kDC - DC coupling
 *					  kGND - ground reference
 *    EIMPedance	IMPedance	Channel input impedance:
 *					  kFIFty - 50 Ohm input impedance
 *					  kMEG - 1 Meg Ohm input impedance
 *    float		SCAle		Channel gain:
 *					  0.001 <= SCAle <= 10.0
 *    float		OFFSet		Channel offset:
 *					      SCAle	  OFFSet Range allowed
 *					  1 - 99.9 mV/div	+/- 1 V
 *					  100 - 999 mV/div	+/- 10 V
 *					  1 - 10 V/div		+/- 100 V
 *    char		*channelName	Channel Y-axis lable
 *  Function return value:
 *    CBS_OK		Setup was successful
 *    CLIB_INVID	Invalid channel request
 *    CLIB_INVARG	Invalid parameter value
 *    CLIB_GENERR	Unable to write TDS 640 command(s) 
 *    CLIB_INVALID_DATA	TDS 640 status error after GPIB command