Yvonne:
The VISA address contains only the physical location of the device, that is, its primary and (if necessary) its secondary address. So if the primary address is 5, then it would be:
viOpen("GPIB0::5::INSTR")
To access channels, this is device-specific functionality. Agilent should provide an instrument driver that provides access to such functionality. The initializaton function to that driver will take a VISA resource string as above.
Good luck,
Dan Mondrik
Senior Software Engineer, NI-VISA
National Instruments