How to connect to oscilloscope using MATLAB with Linux Ubuntu as operating system
Show older comments
I am running Linux ubuntu 22.04 as my operating system with MATLAB 2024a. I am trying to connect to a HDO9104 Lecroy oscilloscope using Instrument Control Toolbox via TCP/IP. However, MATLAB is unable to detect the oscilloscope.
Answers (1)
Abhishek Kumar Singh
on 5 Sep 2024
Before proceeding with MATLAB, ensure your LeCroy instrument is configured for remote control:
- On your LeCroy instrument, select Utilities > Utilities Setup, and choose the Remote tab.
- Ensure that under Control From, the TCP/IP button is selected. Your instrument’s IP address is listed in the TCP/IP panel of the Remote tab.
You can verify connectivity to your instrument by issuing the following command from MATLAB:
!ping <instrument-IP>
where <instrument-IP> is the IP address of your instrument.
Once you've confirmed the network setup, please ensure you have the MATLAB Instrument Driver, which consists of custom drivers specifically designed for MATLAB. If not, you can download it from this FileExchange portal: https://www.mathworks.com/matlabcentral/fileexchange/12862-lecroy-oscilloscopes-matlab-instrument-driver.
There’s another one from Teledyne that you may also want to try: https://www.mathworks.com/matlabcentral/fileexchange/84144-instrument-driver-for-teledyne-lecroy-scopes-in-matlab.
Once you've confirmed that, you can try running a simple example found here: https://www.mathworks.com/matlabcentral/fileexchange/22627-lecroy-oscilloscopes-matlab-example.
To troubleshoot connection errors, follow the steps provided at these links:
- https://www.mathworks.com/help/instrument/resolve-tcpip-client-connection-errors.html
- https://www.mathworks.com/help/instrument/troubleshooting-tcpip-client-interface.html
If the connection is established but you’re unable to read data, please refer to the troubleshooting steps here: https://www.mathworks.com/help/instrument/tcpip-client-warning-unable-to-read-any-data.html.
Hope this helps!
3 Comments
Howe Li
on 16 Sep 2024
Howe Li
on 16 Sep 2024
Abhishek Kumar Singh
on 20 Sep 2024
We have determined that the issue is connection-related—your PC is not detecting the hardware.
Please refer to and follow the troubleshooting and resolution FAQ on the Teledyne website: https://www.teledynelecroy.com/support/knowledgebase.aspx?docid=487&typeid=1&capid=176&mid=897&smid=
Additionally, there are two connection methods available: remote and direct. If the above resolution doesn't work, you might try switching to the other connection method.
Categories
Find more on Oscilloscopes in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!