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!
- SDS1xxxCFL - series
- SDS1xxxA - series
- SDS1xxxCML+/CNL+/DL+/E+/F+ - series
- SDS2xxx/2xxxX - series
- SDS1xxxX/1xxxX+ - series
- SDS1xxxX-E/X-C - series
There is no installation required. Just download the MATLAB-functions (*.m-files from Releases) and move them into your work folder.
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.
Daniel Duller - dadul96
This project is licensed under the MIT License - see the LICENSE file for details