简体   繁体   English

是否可以从LabVIEW中的同一DAQ通道获取NI正交编码器的角位置和边沿计数?

[英]Is it possible to get both angular position and edge counting for an NI quadrature encoder from the same DAQ channel in LabVIEW?

I tried to run the code below, but it doesn't let me select the same DAQ channel for both readings, despite the fact they should be taken from the same DAQ channel/encoder. 我尝试运行以下代码,但是尽管我应该从相同的DAQ通道/编码器中读取数据,但它不允许我为两个读数选择相同的DAQ通道。 Any suggestions would be welcome. 欢迎大家提出意见。

在此处输入图片说明

You can use the same input terminal to perform both measurements, but you cannot use the same counter to do so. 可以使用相同的输入端子来执行两个测量,但是不能使用相同的计数器来执行。 I cannot see the values for your Counter(s) IO Controls, but I suspect they are requesting the driver use the same counter to do two different things. 我看不到您的Counter(s) IO Controls的值,但我怀疑它们正在请求驱动程序使用相同的计数器执行两项不同的操作。

Try using two counters like this instead. 尝试改为使用两个这样的计数器。 See how PFI8 is used as the input terminal for both tasks: 查看如何将PFI8用作两个任务的输入端子:

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从父右边获取位置,以%为单位 - Get position from parent right edge in % 在 Python 中同时从列表中获取一个随机值及其位置 - Get a random value from a list and its position at the same time in Python 是否可以在同一HTML页面中多次使用相对位置信息? - Is it possible to use position relative more than once in the same html page? 从陀螺仪和加速度计获得位置 - Get a Position from Gyroscope and Accelerometer 有没有办法以某种方式同时拥有绝对 position (底部)和多个相同的 div 并排? - Is there a way to somehow have both absolute position (bottom) and multiple of the same div side by side? 从SimpleCursorAdapter获取位置 - Get Position from SimpleCursorAdapter 在Objective-C中可以获取正则表达式匹配在字符串中的位置 - In objective-c is it possible to get the position of a regex match within the string 是否可以获得平滑的过渡,以便按位置对图像进行动画处理? - Is is possible to get a smooth transition animating an image by position? Tinymce - 是否有可能获得与所见即所得编辑器对应的textarea的插入位置? - Tinymce - Is it possible to get caret position of textarea corresponding to WYSIWYG Editor? 将子视图放置在圆形视图的边缘 - Position a subview on the edge of a circular shaped view
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM