Dear all,
I'm trying to communicate with my E4401B through the serial port. In the agilent Connection Expert (I have attached the snapshot below) the port connection is shown. But I'm not able to send any commands through the interactive IO (except for *IDN?). I always get a timeout error, why is it occurring?. Help please.
I get the following message in Interactive IO:
* Connected to: ASRL1::INSTR
-> *IDN?
<- Hewlett-Packard, E4401B, MY41440384, A.10.00
-> *CLS
! VI_ERROR_TMO: A timeout occurred
Visa ErrorCode: 0xBFFF0015 (-1073807339)
Regards,
Lokesh.
I'm trying to communicate with my E4401B through the serial port. In the agilent Connection Expert (I have attached the snapshot below) the port connection is shown. But I'm not able to send any commands through the interactive IO (except for *IDN?). I always get a timeout error, why is it occurring?. Help please.
I get the following message in Interactive IO:
* Connected to: ASRL1::INSTR
-> *IDN?
<- Hewlett-Packard, E4401B, MY41440384, A.10.00
-> *CLS
! VI_ERROR_TMO: A timeout occurred
Visa ErrorCode: 0xBFFF0015 (-1073807339)
Regards,
Lokesh.
Sending and reading the *IDN? and having the instrument identify itself with the manufacturer, model number, serial number and firmware revision means that you’ve established a connection with the instrument. In the world of serial communication via the RS-232 port, this can be challenging at times, almost always due to an incorrectly used or wired RS-232 cable.
After you typed the *IDN? command in the Agilent I/O connection expert, you selected “Send & Read” since it is a query. When you typed *CLS to clear the status byte, did you select “Send & Read”? If so, you will get a timeout error because this is not a query, rather a command that is being sent to the analyzer. You’ll want to simply “Send Command” when using the *CLS command. If you did select “Send Command” and received a timeout, try typing :FREQ:CENT 50 MHZ in the command line of the Agilent I/O libraries and then select “Send Command” and see if the analyzer tunes the center frequency to 50 MHz as it should.
I hope this was helpful -