Scilab 6.0.2 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
- Since Scilab 6.0.2 and Visa Toolbox 0.9.1 don't support a single stream of binary data, a temporary workaround has to be used.
This workaround somehow limits the sample count to:
- USB connection: 7Mpts
- Ethernet connection: 28kpts
There is no installation required. Just download the Scilab files (*.sci-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