Charles, I didn't dig through your code much, but what is your iberr constant after you do the IBRSP() and you get the error? That could give us a clue as to why it is failing. What version of the driver are you using in both cases (Win98 and 2K)?
Scott B. Applications Engineer National Instruments