Giter VIP home page Giter VIP logo

dadul96 / siglent_sds1202x-e_visa_scilab Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 40 KB

Scilab 6.0.2 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: MIT License

Scilab 100.00%
siglent sds1202x-e oscilloscope visa scilab scilab-scripts scilab-functions scpi scpi-instruments scpi-commands

siglent_sds1202x-e_visa_scilab's Introduction

Siglent_SDS1202X-E_VISA_Scilab

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!

Supported models

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

Known issues

  • 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

Installation

There is no installation required. Just download the Scilab files (*.sci-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 Scilab 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

siglent_sds1202x-e_visa_scilab's People

Contributors

dadul96 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.