Git Product home page Git Product logo

dadul96 / siglent_sds1202x-e_visa_matlab Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 1.0 59 KB

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

MATLAB 100.00%
siglent sds1202x-e oscilloscope visa matlab matlab-functions scpi scpi-instruments scpi-commands ni-visa

siglent_sds1202x-e_visa_matlab's People

Contributors

dadul96 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

mathstudi

siglent_sds1202x-e_visa_matlab's Issues

Data streaming

Hey !

Quick question, I am looking to record 2 minutes' worth of samples.

Since the oscilloscope cannot record for two minutes, I was wondering if this tool could be used to stream / record data as the oscilloscope is sampling?

Different voltage measurements between Scope and Matlab

I was using your scripts to transfer the data from scope (SDS2102X-Plus) into matlab. I works very well but I can see a slightly difference between the measured voltage amplitude at the scope and with the received data in matlab. The equation (also within the programmers guide of the scope) is as followed:

dataOut(i) = data(i)*(vDiv/25)-offs;

Im wondering about the 25. Why is there no dependency between resolution (8bit or 10bit) and vertical scaling (V/div)?

For example:
Im measuring at the scope an Pk-Pk voltage of a simple sine signal of 506mV. Resolution is 8 bit and the vertical resolution is 70mV/div and no offset.

image

If I load the data into matlab, my pk-pk voltage is at 604mV.

image

Do you have any idea, why there is such a difference? I think the equation would be better with something like:

dataOut(i) = data(i)*(vDiv * 8/2^8)-offs;

...for 8 bit. the reciprocal of 8/2^8 is 32 and not 25. but even then, i have not the same results as on the scope.

image

What are your experiences with that?

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.