ni-fgen python api

nifgen的Python项目详细描述


整体状态

master branch statusBuild Status - master branchDocumentation Status - master branchMIT LicenseTest Coverage - master branch
GitHub statusOpen Issues + Pull RequestsOpen Pull Requests
InfoPython bindings for NI Modular Instrument drivers. See GitHub for the latest source.
AuthorNational Instruments
NI Digital Multimeter with Python logo

关于

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-fgen python api状态

NI-FGEN (nifgen)
Driver Version Tested Against18.1.0
Driver API Version19.1.0d0
PyPI VersionLatest NI-FGEN Version
Supported Python VersionNI-FGEN supported Python versions
Open IssuesOpen Issues + Pull Requests for NI-FGEN
Open Pull RequestsPull Requests for NI-FGEN

安装

作为使用ni fgen模块的先决条件,必须在系统上安装ni-fgen运行时。访问ni.com/downloads下载设备的驱动程序运行时。

nimi python模块(即用于ni-fgen)可以使用pip

安装
$ python -m pip install nifgen~=1.1.2

easy_安装 setuptools

$ python -m easy_install nifgen

贡献

欢迎投稿!您可以克隆项目存储库,构建它,并通过following these instructions安装它。

用法

下面是使用nifgen模块打开函数生成器会话并生成5秒正弦波的基本示例。

importnifgenimporttimewithnifgen.Session("Dev1")assession:session.output_mode=nifgen.OutputMode.FUNCsession.configure_standard_waveform(waveform=nifgen.Waveform.SINE,amplitude=1.0,frequency=10000000,dc_offset=0.0,start_phase=0.0)withsession.initiate():time.sleep(5)

ni-fgen的其他示例位于src/nifgen/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)下授权的。 其他注册项目可根据不同的许可证获得许可。全部 许可证允许非商业和商业用途。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
字典java cassandra对象映射注释   java定制Solr TokenFilter lemmatizer   字符串从Java文件中读取windows文件名   java如何在Windows上设置StanfordCorenlp服务器以返回文本   java axis2“意外的子元素值”   java使用POI HSSF获取错误   多线程Java等待计时器线程完成   java ForkJoinPool BuffereImage处理风格   从java代码运行Python脚本   java将字节[]转换为短[],使每个短元素包含13位数据   java如何为swing jframe应用程序将代码划分为类   java使用okhttp更改baseurl   java AlertDialog。建设者setView导致堆栈溢出错误   java如何在特定的radius 安卓 studio中接收地址列表?