简体   繁体   中英

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. 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.

Try using two counters like this instead. See how PFI8 is used as the input terminal for both tasks:

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM