I am sorry this example did not work for you. Did you follow the following considerations:
Board GpibBoard = new Board(a); /*where 'a' is the GPIB Device. If you look in MAX, and see that your GPIB-USB device is listed as GPIB0, then 'a' must be '0' in order for anything to work. If your device is listed as GPIB1, 'a' must be '1' in order for anything else to work, etc...*/
Address addr = new Address(b); /*where 'b' is any value between 0 and 127. If you have multiple devices with the same address, it may only find one instrument, and "Scan for instruments" in MAX will fail. If the all devices are configured to have different addresses, then this application will find listeners at the addresses specified if there is a device configured with that address.*/
val = GpibBoard.FindListener(addr);
I was able to run this with multiple different GPIB interfaces, with multiple configurations of connected devices, and never got an error.
A few things to try:
Have you verified that you can communicate with your devices in MAX? If everything is installed correctly, you should be able to find your device in MAX, Scan for instruments, and find all the instruments attached to your GPIB-USB. If your instrument is successfully found, then you should be able to right click on the instrument, and choose communicate with instrument, and do so. If all this is successfully working, we then need to double check your installation of software such as NI 488.2, or other application software.