Skip to content

EarToEarOak/LibOwonPds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LibOwonPds

Copyright 2015 Al Brown

al [at] eartoearoak.com

A userspace driver for Owon PDS oscilloscopes.

Tested with a PDS5022S, but should work with variants.

More details can be found here.

Tested on:

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

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'

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

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.