Hi MXI Master,
If there's an instrument timeout, I haven't been able to find it yet. Seems like there should be, so maybe I just haven't looked in the right place yet. As for the timeout value on the computer, I'm not sure what you mean by this - could you elaborate, and maybe tell me where to find it?
As far as SCPI mode, if it's possible to put the E4401B in something _other_ than SCPI mode, I haven't figured out how. I can't find any support in the programming manual for anything other than SCPI.
That kind of seques into my next couple points. The NI Spy output indicates that one of the commands that is being sent is "*SRE 32".
The "User's & Programmer's Reference" for the E4401B says (on page 206) "Send the *SRE <number> command (where <number> is the sum of the decimal values of the bits you want to enable plus the decimal value of bit 6). [Bit 6 is the Request Service (RQS) Summary Bit. BP] For example, assume that you want to enable bit 7 so that whenever the operation status summary bit is set to 1, it will trigger a service request. Send the *SRE 192 (128 + 64) command."
This statement would seem to imply that the "*SRE 32" command that is being sent by the agesani "Initialize With Options" command is an illegal command, or at best an ineffective command. In light of that, it is interesting to me that the NI Spy output indicates that the next line , viQuery(GPIB::18::INSTR (0x246E9C8), "%s?","%ld"), is generating an 0xBFFF0015 error. In addition, I can find neither the "%s?" nor the "%ld" commands listed in the Programmer's Reference. I wonder if these could be for a firmware revision later than mine (A.01.03), or for instrument options I don't have (A4H, A4J). Alternatively, I wonder if these are simply mistakes.
The next line in the NI Spy output, Formatted viWrite(CPIB0::18::INSTR (0x0246E9C89),"INST:NSEL?",11,11), also puzzles me. The Programmer's Reference indicates that this is a supported command, to see what instrument application is currently selected. (e.g. spectrum analyzer, GSM, Bluetooth, EDGE, noise figure, etc.) However, when I try to issue this command to my instrument, by using the Instrument I/O Assistant Express VI, I get an "Undefined header" error on the instrument's front panel. The instrument's error history shows the same "Undefined header" error. Since my instrument only has the basic spectrum analyzer option installed, I wonder if this command is not valid? (Personally, I wouldn't write instrument firmware code this way, but who knows?) Alternatively, I wonder if this command requires a firmware revision more recent than mine. (The Programmer's Reference is silent about this possibility.)
The next line in the NI Spy output, Formatted viRead(GPIB::18::INSTR (0x0246E9C8),"",4000,0), has another 0XBFFF0015 error associated with it.
Does this information shed any more light on the situation?