Mapping Encoder channels to Physical DAQ ports- RTW & NI

6 次查看(过去 30 天)
I am trying to use a National Instruments PCIe-6323 DAQ and a NI BNC-2111 connector block with Real Time Windows Target and a quadrature encoder.
The BNC-2111 has physical ports PFI 7 and 12 but the PCIe-6323 encoder Counter 0 reads from PFI 8 and PFI 10. With Labview it is possible to redirect the channels so that say I can connect an cable to the PFI 7 port and it will act as my PFI 8 input for the encoder. I am trying to figure out how to do this within Matlab/Simulink/RTW.
I have read that this is possible but I can not seem to find any documentation.

回答(1 个)

Jan Houska
Jan Houska 2014-5-7
Remapping of the encoder input channels is not supported with the Real-Time Windows Target driver. The driver always uses the default pin to signal mapping, as listed here:
CTR0 A (CTR0 SRC) : PFI8
CTR0 B (CTR0 AUX) : PFI10
CTR0 Z (CTR0 GATE) : PFI9
CTR1 A (CTR1 SRC) : PFI3
CTR1 B (CTR1 AUX) : PFI11
CTR1 Z (CTR1 GATE) : PFI4

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by