The driver will configure for either serial or GPIB based on the Instrument Resource Name that is passed to the Inititialize function. If the resource name is ASRL1::INSTR, ASRL2::INSTR, Com1, Com2, etc., the driver will configure the serial port. Anything else such as GPIB0::5::INSTR, it won't. If you want and the address or com port will be a constant, then put a VISA resource name constant inside a case statement.
The function for configuring the output impedance is called ag33xxx - Config Outp Term.