Ni-switch Python Api
niswitch的Python项目详细描述
整体状态
master branch status | |
GitHub status |
Info | Python bindings for NI Modular Instrument drivers. See GitHub for the latest source. |
Author | National Instruments |
关于
nimi python存储库生成python绑定(应用程序编程接口),用于与模块化仪器驱动程序交互。目前,支持以下驱动程序:
- ni-dcpower(python模块:nidcpower)
- ni-dmm(python模块:nidmm)
- ni-fgen(python模块:nifgen)
- ni-scope(python模块:niscope)
- ni-switch(python模块:niswitch)
- ni modinst(python模块:nimodinst)
- ni开关执行器(python模块:nise)
它被实现为一组Mako templates和每个驱动程序元文件,这些元文件为每个驱动程序生成一个python模块。使用 ctypespython库。
nimi python支持底层驱动程序支持的所有操作系统。
nimi python支持使用cpython或pypy的python 2.7、3.4及更高版本。
ni-switch python api状态
NI-SWITCH (niswitch) | |
---|---|
Driver Version Tested Against | 18.0.0 |
Driver API Version | 19.1.0d0 |
PyPI Version | |
Supported Python Version | |
Open Issues | |
Open Pull Requests |
安装
作为使用ni switch模块的先决条件,必须在系统上安装ni-switch运行时。访问ni.com/downloads下载设备的驱动程序运行时。
nimi python模块(即用于ni-switch)可以使用pip:
安装$ python -m pip install niswitch~=1.1.2
或easy_安装 setuptools:
$ python -m easy_install niswitch
贡献
欢迎投稿!您可以克隆项目存储库,构建它,并通过following these instructions安装它。
用法
下面是使用niswitch模块打开到交换机的会话并连接通道的基本示例。
importniswitchwithniswitch.Session("Dev1")assession:session.connect(channel1='r0',channel2='c0')
ni-switch的其他示例位于src/niswitch/examples/directory中。
支持/反馈
ni支持nimi python包中包含的包。为了支持,打开 通过位于ni.com的ni支持门户的请求。
错误/功能请求
要报告错误或提交特定于ni modular instruments python bindings(nimi python)的功能请求,请使用 GitHub issues page。
尽可能完整地填写问题模板,我们会尽快回复 尽我们所能。
有关硬件支持或任何其他与GitHub项目无关的问题,请访问[NI社区论坛](https://forums.ni.com/)。 ……_文档部分:
文件
有文档here。
许可证
nimi python是在mit风格的许可证(see LICENSE)下授权的。 其他注册项目可根据不同的许可证获得许可。全部 许可证允许非商业和商业用途。