The MATLAB Instrument Driver for LeCroy oscilloscopes has a limitation that it can only be used to transfer data with 8 bit resolution and the resolution cannot be adjusted according to the type of oscilloscope. To be able to communicate with LeCroy HDO 6054A-MS, you can use a different driver that is available online. The driver is called (IVI Driver 3.2.9.0 x64) and is created by Pacific Mindworks. You can create your own MATLAB Instrument Driver (.mdd) by calling 'makemid' on the driver.
To download the driver please see the link below:
Here is an example script that uses this driver. The example script first creates a .mdd file using the downloaded driver 'lcscope' and then calls 'icdevice' on the .mdd to interact with the oscilloscope. This will then call ‘readwaveform’ to read data from the oscilloscope.
makemid('lcscope', 'myscope.mdd', 'ivi-c')
d = icdevice('myscope.mdd', 'GPIB0::1::INSTR');
connect(d);
invoke(d.Configurationconfigurationinformation,'autosetup');
d.RepCapIdentifier = 'C1';
set(d.Channel,'Channel_Enabled',1);
waveformSize = get(d.Acquisition,"Horizontal_Record_Length");
[waveform, numActualPoints] = invoke(d.Waveformacquisition,'readwaveform','C1', waveformSize, 10000, zeros(waveformSize,1));
plot(waveform(1:numActualPoints));
disconnect(d)
delete(d)
clear d
Best Answer