使用ivi-c或ivi-com、visa和串行协议用远程仪器控制数据采集。
pyinstruments的Python项目详细描述
少编程,多做科学……更好
它是什么
pyinstruments是一个python包,用于控制/从度量和 自动化设备。远程仪器的控制可以通过 以下协议:
- ivi drivers (using the lower level package pyivi)
- visa
- serial
使用ivi驱动程序大大简化了您的生活,因为:
1/. The lower level layer is fully transparent for the user (pyivi provides a common interface for each instrument type).
2/. zero extra work is needed to interface an instrument for which an IVI driver is provided.
pyinstruments由两个independent包组成(可以在两台远程计算机上运行!).
- pyhardwaredb for the hardware communication (This package itself is a thin wrapper around pyhardware). Because it heavily relies on ivi-drivers and com-interoperability, this package is intended to run on a windows machine.
- curvefinder to display in quasi real-time the curves acquired (This module could be run on any platform).
绘图和数据采集过程之间的严格分离确保了脚本化的数据采集不会受到用户交互或绘图死区时间的影响。
主要功能
曲线存储在(django abstracted)数据库中,其中包含所有必要的元数据。 (带宽、平均值、日期、注释、名称…)以及用户定义的标记列表,以快速识别曲线。 curvefinder模块允许监视新的传入曲线以及查询 按日期、标记列出的旧曲线数据库… 硬件模块有一个图形用户界面,可以快速从仪器获取曲线,并配置仪器的接口方式。
依赖关系
- pyinstruments的直接依赖关系是:
- django>;1.5
- Pyqt4
- guidata
- Guiqwt
- pyhardware<;–pyivi<;–(cTypes+comTypes)
安装
windows安装程序负责pythonxy版本2.7.3.1中所有非标准的依赖项。
安装pyinstruments的另一个选项是使用命令shell中的pip(pythonxy中也有):
pip install pyinstruments
pyinstruments及其三个“外来”依赖项也可以使用pip:
pip uninstall pyinstruments pip uninstall pyhardware pip uninstall pyivi
试试看!
安装是一次单击(从v 0.1.15开始),创建桌面图标 启动两个图形用户界面。
该项目托管在github上,仍处于启动阶段,贡献和反馈 热烈欢迎!