Skip to main content

Python wrapper for NI Oscilloscopes

Project description

provides a Python package niscope that wraps the NI-SCOPE driver software for Python using ctypes. The package is tested with NI-SCOPE library version 3.3.2 using PCI-5122 cards Windows XP, and PXI-5114 on Windows 7.

Basic usage

Example:

import matplotlib.pyplot as plt
import niscope

scope = niscope.Scope()
scope.ConfigureHorizontalTiming()
scope.ConfigureVertical()
scope.ConfigureTrigger("Edge",TRIGGER_SOURCE.EXTERNAL,2.5,SLOPE.POSITIVE,0,0)
scope.InitiateAcquisition()
raw_input("Enter")
data = scope.Fetch()
scope.close()
plt.plot(data)
plt.show()

Requirements

The national instruments NI-Scope drivers are required. If you do not have a physical NI scope, it is possible to test pyniscope by installing a simulated instrument in the NI Measurement & Automation Explorer. [Search ni.com for NI-SCOPE](http://search.ni.com/nisearch/app/main/p/bot/no/ap/tech/lang/en/pg/1/sn/ssnav:dwl/q/ni-scope/). Pyniscope was origionaly tested on linux with NI-SCOPE 3.1, NI-KAL 2.1, and NI-VISA 5.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyniscope, version 0.4.0
Filename, size File type Python version Upload date Hashes
Filename, size pyniscope-0.4.0-py3-none-any.whl (32.4 kB) File type Wheel Python version 3.6 Upload date Hashes View hashes
Filename, size pyniscope-0.4.0.tar.gz (31.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page