Skip to content

MATLAB 2019a functions for easy, data acquisition from the Siglent SDS1202X-E oscilloscope via USB or Ethernet. It also works with other models from the SDS1XXXX-series and SDS2XXX-series (see description).

License

Notifications You must be signed in to change notification settings

dadul96/Siglent_SDS1202X-E_VISA_MATLAB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Siglent_SDS1202X-E_VISA_MATLAB

MATLAB 2019a functions for easy, data acquisition from the Siglent SDS1202X-E oscilloscope via USB or Ethernet. The input-buffer size automatically scales depending on the oscilloscope's sampling settings!

Supported models

  • SDS1xxxCFL - series
  • SDS1xxxA - series
  • SDS1xxxCML+/CNL+/DL+/E+/F+ - series
  • SDS2xxx/2xxxX - series
  • SDS1xxxX/1xxxX+ - series
  • SDS1xxxX-E/X-C - series

Installation

There is no installation required. Just download the MATLAB-functions (*.m-files from Releases) and move them into your work folder.

Requirements

How to use

Following functions can be called:

  • [vDiv, tDiv, offs, sCount, sRate] = determineAcquisitionSettings(connStr, channel)
    • vDiv - Volts/Devition
    • tDiv - Time/Devition
    • offs - Vertical offset
    • sCount - Number of samples
    • sRate - Sampling rate
    • connStr - Enter VISA USB resourcename (e.g. 'USB0::0xF4EC::0xEE38::0123456789::INSTR') or enter the IP address (e.g. '10.0.0.12'). If you don't enter anything or just '' the IP address stored in the DEFAULT_IP-variable will be used.
    • channel - Enter the oscilloscope channel (e.g. 1). If you don't enter anything or just '' the channel stored in the DEFAULT_CHANNEL-variable will be used.
  • [timeOut, dataOut, sRate] = acquireOscilloscopeData(connStr, channel) (uses determineAcquisitionSettings)
    • timeOut - Array containing the time axis
    • dataOut - Array containing the meassured data
    • sRate - Sampling rate
    • connStr - Same as in the functions above.
    • channel - Same as in the functions above.
  • acquireAndDisplay(connStr, channel) (uses acquireOscilloscopeData)
    • Plots the acquired data into a new figure. Besides that, it returns the most important signal properties to the command window (see example below).
    • connStr - Same as in the functions above.
    • channel - Same as in the functions above.

Example

Screenshot of the signal displayed on the oscilloscope:

Screenshot of the MATLAB command window:

Screenshot of the plotted data:

Author

Daniel Duller - dadul96

License

This project is licensed under the MIT License - see the LICENSE file for details

About

MATLAB 2019a functions for easy, data acquisition from the Siglent SDS1202X-E oscilloscope via USB or Ethernet. It also works with other models from the SDS1XXXX-series and SDS2XXX-series (see description).

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages