From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
10-26-2023 09:45 AM
I am trying to communicate with an HP 34461A multimeter (with USB). I am using the example VIs in the driver download from NI. In the initialize VI, all commands (including VISA reads) generate no errors, until it gets to the Error Query VI. The write VISA VI does not generate an error (command :SYST:ERR?), but the read VISA VI times out. The SCPI command is correct according to the manual. What could cause this?
Solved! Go to Solution.
10-27-2023 01:36 AM
Hi Jim,
@Jim_Marihew wrote:
the read VISA VI times out.
What could cause this?
Your device does not respond!
(Does it react on any command? Some devices indicate with an LED/in their display their remote operation status...)
10-27-2023 06:29 AM
Hi Gerd,
As I mentioned, the meter responds to all of the commands up to the request for system errors. It responds to the *IDN? with appropriate data, accepts the *RST command, and accepts the *ESE 60;*SRE 48;*CLS; commands with no errors. The next VI in the initialize VI is the Error Query, and that's where it locks up.
10-27-2023 06:38 AM
10-27-2023 06:48 AM
That's what I don't understand. It would seem that there should be a response that equates to "I got no problems". Or just a null, but not ignored response.
10-27-2023 07:05 AM
Hi Jim,
@Jim_Marihew wrote:
That's what I don't understand. It would seem that there should be a response that equates to "I got no problems". Or just a null, but not ignored response.
You don't need to guess and hope for something that "should be"! All you need to know is in the manual!
The SYST:ERR? command does not mention any "default" answer. It only mentions: "if an error was generated by a com-
mand sent over GPIB, send SYSTem:ERRor? from GPIB to read the error queue". It does not mention to read from that queue when there was no error before...
10-27-2023 07:11 AM - edited 10-27-2023 07:13 AM
I don't understand. Yes, I have read the manual. Why does it not respond with a "No Errors" response. The Read VISA is waiting for a response, and when it gets none (many seconds later) TIMES OUT.
10-28-2023 03:42 AM
Hi Jim,
@Jim_Marihew wrote:
I don't understand. Yes, I have read the manual. Why does it not respond with a "No Errors" response. The Read VISA is waiting for a response, and when it gets none (many seconds later) TIMES OUT.
You have to ask Keysight about their devices and their firmware...
And you can handle timeout errors very easily in your code...
10-28-2023 03:55 AM
It seems weird. In the past all instruments did return at least a “0”, some can return “0, No Error” if extended error reporting is enabled.
Could it be that this device has actually three levels of error reporting such as None, Normal and Extended? And your device got in the past configured by someone to None by accident?
10-28-2023 05:16 AM - edited 10-28-2023 05:42 AM
Alright, the command is formatted correctly ":SYST:ERR?" should result in ;
So let's look at 2 things:
EDIT: Let's add a third item. If the device is armed and awaiting trigger, or otherwise dedicated to doing its primary purpose of taking measurements, it will NOT respond to anything except required common commands (ones that start with "*") until the measurements are done. A "Specific Device Reset" *RST, or Device Clear *CLR would be needed to cancel the pending order for measurements.