ni示波器的python包装器
pyniscope的Python项目详细描述
提供一个python包ni scope,它使用cTypes为python包装ni-scope驱动程序软件。 该软件包使用NI-Scope Library 3.3.2版(使用PCI-5122卡Windows XP)和PXI-5114在Windows 7上进行测试。
基本用法
示例:
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()
要求
需要国家仪器NI范围驱动程序。如果您没有物理NI示波器,则可以通过在NI测量和自动化资源管理器中安装模拟仪器来测试Pyniscope。 [在ni.com上搜索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最初是在linux上使用ni-scope 3.1、ni-kal 2.1和ni-visa 5.0进行测试的。