HAMEG HMO 3524 connection via VISA problem
Show older comments
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?
Answers (1)
Usman Arshad
on 5 Jun 2018
0 votes
Hi, do you achieved your target?
1 Comment
Sergiusz Warga
on 5 Jun 2018
Categories
Find more on Oscilloscopes in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!