The hex return code "BFFF003E" is exactly what I said as ViStatus. The value returned from viWrite is VI_ERROR_IO. I believe that there may be a low-level IO error in the VISA layer. This may happen if the instrument IO protocol and the hosting USB driver are mismatched.
Once again check if:
(a) The instrument is really comliant with USBTMC (by checking Agilent's product specifcations, catalogue etc...)
(b) The USB driver hosting the instrument is NIUSBTMC.SYS (not NIVIUSBK.SYS).
(c) The VISA Resource String has the syntax like -
USB0::
::::::INSTR.
NI-VISA supports both USBTMC and non-USBTMC instruments with different device drivers. If you mistakenly assigned the wrong type of USB driver, the instrumen
t IO does not work.
I believe *ANY* USBTMC instruments can be hosted by NI-VSIA 3.0. Normally VISA Driver Development Wizard is not needed for USBTMC instruments, since the NI USBTMC driver is automatically assigned to USB devices that have interface class code 0xFE and subclass 0x03. If you have another PC, it may be good to check if the instrument works with Agilent VISA (IO Libraries M01.00 or later).
Makoto