仪表框架
lantzdev的Python项目详细描述
lantz:python中简单而强大的工具
Lantz是一个自动化和仪器工具包,具有干净、设计良好的 以及一致的界面。它提供了常用功能的核心 用于构建与科学仪器通信的应用程序 快速应用原型、开发和测试。
包名为lantzdev(不是lantz),以避免名称与先前的名称冲突 包裹。
安装
您可以很容易地安装完整版本:
pip install -U “lantzdev[full]”
除PYQT外,将自动为您安装所有要求。
我们建议您使用[anaconda python distribution](https://www.anaconda.com/) 并使用环境
conda create –name lantz python=3.6 pyqt
conda activate lantz
玩得开心
如果没有安装ni-visa库,请安装纯python 通过在终端中运行以下命令进行替换:
pip install pyvisa-py
然后告诉兰茨使用它:
lantz config core.visa_backend @py
然后在一个终端中启动模拟器:
lantz sims fungen tcp
以及另一个测试面板:
lantz qtdemo testpanel
安装选项
Lantz采用模块化的方式组织。你可以安装你需要的。
###最小值
如果你只是想控制仪器,模拟设备和创建你自己的驱动程序。
pip install -U lantzdev
使用的子包:core、drivers、sims
###Arduino
如果除了minimal之外,还需要构建arduino驱动程序。
pip install -U “lantzdev[ino]”
- 使用的子包:core、drivers、sims、ino
- 建议的依赖项:[arduino cli](https://github.com/arduino/arduino-cli)
###qt
如果除了minimal之外,还需要构建arduino驱动程序。
pip install -U “lantzdev[qt]”
- 使用的子包:core、drivers、sims、qt
- 所需依赖项:[pyqt>;5](https://riverbankcomputing.com/software/pyqt/intro)
####满
pip install -U “lantzdev[qt]”
- 使用的子包:core、drivers、sims、ino、qt
- 所需依赖项:[pyqt>;5](https://riverbankcomputing.com/software/pyqt/intro)
- 建议的依赖项:[arduino cli](https://github.com/arduino/arduino-cli)
####从git安装
您可以通过从git安装来尝试最新版本。在您的终端上:
pip install -U https://github.com/lantzproject/lantz-core/zipball/master pip install -U https://github.com/lantzproject/lantz-drivers/zipball/master pip install -U https://github.com/lantzproject/lantz-qt/zipball/master pip install -U https://github.com/lantzproject/lantz-sims/zipball/master pip install -U https://github.com/lantzproject/lantz-ino/zipball/master pip install -U https://github.com/lantzproject/lantz/zipball/master
Lantz驱动程序更改日志
0.5.2(2019-01-21)
- 正确导出符号。
0.5.1(2018-12-31)
- 删除了Cutelog依赖项。
0.5(2018-12-31)
- 将回购拆分为核心、驱动器和qt。
- 添加多个额外的_需要输入:full、qt、ino
- 添加了Lantz根命令行应用程序
0.3(2015-02-05)
- 引入了MessageBasedDriver,这是一个类,可以对它们进行规则化处理。
- 移动的驱动程序
- 已将旧基类(串行、USB、TCP、VISA)移动到旧包。
- 将基于遗留类的仪器驱动程序移动到遗留包。
- 已将仪器类迁移到MessageBasedDriver。
- 改进日志记录以避免重复和无用信息。
- 用于应用程序开发的前端和后端。
- 实现的图表块。
- 已实现扫描块。
- 实现了featscan块。
- 实现了循环块。
- 实现的布局块。
- 联机文档现在显示了驱动程序类。
- 存根类,以便在不需要包的情况下生成文档。
- 将模拟器从脚本移动到控制台脚本。
- 中国更改了斯芬克斯主题以阅读文档。
- 引入了start\u guihelper函数来启动带有ui文件的应用程序 以及一件或多件乐器。
- 引入了启动测试应用程序的帮助函数来启动测试面板。
- 介绍的“启动图形用户界面”应用程序采用后端和前端,并显示应用程序。
- 移动得到兰茨脚本的要点。
- 删除了lantz shell,pyvisa提供了等效的功能。
- 支持同时值和单位。 (第25期)
- 使用来自ipython的qt导入方案。
- 多个初始化的帮助函数:初始化多个并完成多个。
- 图形用户界面支持初始化和定版。
- 新的仪器驱动器。
0.2(2013-01-01)
- 首次公开发行。