Quantcast
Channel: Counter/Timer topics
Viewing all articles
Browse latest Browse all 1271

how to use counter input to read encoder and counter output to drive the motor at the same time.

$
0
0

Hi there,

 

Currently, I'm utilizing two NI 9401 modules alongside one NI 9403 module with a cRIO 9045.

While I can independently read either the encoder or drive motor with separate code, combining these codes doesn't yield responses from both signals.

 

My objective is to read motor angle using counter input and drive the motor using counter output (frequency output) at the same time. To achieve this, I've configured the output signal and input signal on separate modules (each 9401), with a digital signal for changing the motor's direction set on the 9403 module.

 

If anybody has any ideas as to what could be wrong with my code, I would greatly appreciate it.


Viewing all articles
Browse latest Browse all 1271

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>