MATLAB Answers

0

HAMEG HMO 3524 connection via VISA problem

Asked by Sergiusz Warga on 13 Feb 2018
Latest activity Answered by Antonio Carvalho on 17 Sep 2018
I am trying to connect to a HAMEG HMO 3524 oscilloscope with a HO730 interface (USB and RS-232). I also have a PC with Windows 7 64-bit OS, MATLAB 8.3 (R2014a) with Instrument Toolbox 3.5 and NI-VISA 14.0 drivers. I'm using this station with other devices such as SIGLENT SDG5122 which all work well.
Here is my sample code in MATLAB:
obj = instrfind('Name', 'VISA-USB-0-0x0403-0xED72-0001-0');
if ~isempty(obj)
delete(obj)
display('Object Deleted')
end
obj = visa('NI', 'USB::0x0403::0xED72::0001::0::INSTR');
display('Osciloscope Visa Object Created')
fopen(obj);
query(obj,'*IDN?')
Fragment with "0x0403::0xED72" I took from Device Manager->HAMEG Measurement Devices->Details->Hardware Ids where was this string: USB\VID_0403&PID_ED72&REV_0400
My code returns this:
Osciloscope Visa Object Created
err =
MException with properties:
identifier: 'instrument:fopen:opfa...'
message: 'Unsuccessful open: Co...'
cause: {0x1 cell}
stack: [2x1 struct]
Error using icinterface/query (line 120)
OBJ must be connected to the hardware with
FOPEN.
Error in init (line 19)
query(obj,'*IDN?')
After consulting with HAMEG support I've installed HMExplorer 1.7 which allows me to send and receive data to and from the oscilloscope (using the VCP I believe). The problem however is still the same.
Do you know what could cause such a behavior?

  0 Comments

Sign in to comment.

2 Answers

Answer by Usman Arshad on 5 Jun 2018

Hi, do you achieved your target?

  1 Comment

Not at all, I've just changed the oscilloscope. I was talking with a Doc from another lab, and he told me that he had the same problem. He remembered that he had to write his own C++ driver having A LOT of problems with this particular device. Problem looks to be connected with the BaudRate. Also, if I remember correctly for this particular model of HAMEG there is no one very important firmware update. I could check it later, right now I'm drinking beer :P

Sign in to comment.


Answer by Antonio Carvalho on 17 Sep 2018

Sergiusz Warga, any news about? My HMP wasn`t found by TM tool/Matlab. But, working fine with SCPI Terminal

  0 Comments

Sign in to comment.