python - 模拟输出的数字触发器
问题描述
我想从 NI PCI 6713 上的数字触发器触发模拟输出
http://www.ni.com/pdf/manuals/371011c.pdf
根据数据表,我可以使用 PFI <0..9> 并且这些引脚在 NI MAX 中确实显示为绿色,带有 ao/StartTrigger
我的代码如下:
task = nidaqmx.Task()
task.ao_channels.add_ao_voltage_chan("Dev12/ao0")
task.triggers.start_trigger.cfg_dig_edge_start_trig("Dev12/PFI0")
task.timing.cfg_samp_clk_timing(rate=1)
task.start()
task.write([1,2,3,4,5,6,7,8,9,10,0])
我收到以下错误:
DaqError: Source terminal to be routed could not be found on the device.
Make sure the terminal name is valid for the specified device. Refer to Measurement & Automation Explorer for valid terminal names.
Property: DAQmx_DigEdge_StartTrig_Src
Property: DAQmx_DigEdge_StartTrig_Edge
Source Device: Dev12
Source Terminal: Dev12/PFI0
Channel Name: Dev12/ao0
Task Name: _unnamedTask<1C>
Status Code: -89120
我使用 Python 3.7
解决方案
推荐阅读
- python - BeautifulSoup如何解析没有标签的元素
- ruby-on-rails - Rails App中application.rb文件的解释
- python - 我会在 AWS 哪里收到 http 请求
- php - 为什么这个假值会转换为空字符串而不是 0?
- google-bigquery - 如何使用 bigquery 从谷歌专利中检索相同的结果集
- java - “while”循环未正确迭代
- android - android 应用程序中的 Youtubeplayer 在 20-25 秒后停止播放
- javascript - 提示不返回null?
- reactjs - 如何设置嵌套反应组件的样式
- three.js - 光线投射组中的对象 + 组中的对象