I have a problem with device id. When I use NI Communicator to send commands for what I want to do, including queries, everything works fine. But when I send the same commands from my VB code, I have problems. Commands work fine, and the instrument responds properly. But queries return null strings in VB, while returning valid data from NI Communicator. The only difference I have found, using NI Spy, is that the ibwrt and ibrd functions in NI Communicator have UD0 for the first parameter, while they have UD1 when I call the same functions from VB. I am using the ildev function to retrieve the device id, and am using that id as the first parameter. The GPIB address is right. The only time I have problems is with queries. What am I missing?