LibOwonPds

A userspace driver for Owon PDS oscilloscopes.

Tested with a PDS5022S, but should work with variants.

Tested on:

  • Windows 7 (x86_64)
  • Ubuntu 14.04 (x86_64)

Download

Binaries

GitHub

Source

GitHub

Building

Requirements

Build & Install

mkdir build
cd build
cmake ..
make
sudo make install

Windows Install

Either follow the instructions above or download the binaries.

Enable access to the scope by running Zadig, select 'LILIPUT S3C2410A SPQ SYSTEM' and click 'Install driver'.

Zadig

Usage

Utility

owonpds [filename]

Print information about the scope data and optionally save it to a CSV or PNG file depending on the scope mode.

Python

An Python test script 'owon_scope.py' is included in the 'src/' directory to display vector data from the scope

C Library

void main(void){
    OWON_SCOPE_T scope;
    owon_open(&scope, 0); // Success if zero
    owon_read(&scope);    // Success if zero
    /* scope structure now holds captured data
     * do something with it and maybe owon_read() again...
     */
    owon_close(&scope);
}

Python Wrapper

import libowonscope

def main:
    scopeObj = libowonpds.OwonPds()
    scopeObj.open() # Success if zero
    scopeObj.read() # Success if zero
    data = scopeObj.get_scope()
    # data holds the captured data
    # owon_read() again or
    scopeObj.close()

Documentation

 
Known Limitations

  • Streaming data is not available, the incoming data is not time-stamped.
  • Polling faster than 7Hz causes the oscilloscope to reboot after a while (PDS5022S - W5022S08530496 v4.1)

Credits

Categories:

Click to view comments

Click to add a comment