Quantcast
Channel: Digital I/O topics
Viewing all articles
Browse latest Browse all 2180

Split Digital I/O 9401 for Bidirectional I/O with two Counters

$
0
0

Hello:

 

I have a NI 9401 DI/O module in a CDAQ-9174 chassis, with LabVIEW 2012.  I want to split the line direction on the DI/O for both input and output, running two counters.  I am attempting to drive a servo-style PWM signal with one counter, and use the second counter as an input for acquiring data from a digital encoder.  I've been searching the forums all weekend for a solution, and have found that many people experiencing issues have implemented a DAQmx Control Task to reserving half the unit for input or output, utilizing a control sequence to control program flow.  I've tried every possible combination of Control Task/Start Task/Flat sequence orientation, but still haven't been able to get the program to run.

 

Upon running the program, I get an [Error -200479 occurred at DAQmx Start Task.vi: Specified operation cannot be performed while the task is running.]  This error is then followed by a [Error -201133 occurred at DAQmx Start Task.vi:]

 

I feel like it must be a fairly simple fix, just something outside of my knowledge (I'm relatively new to this).  Does anybody have any suggestions for getting these two features to run together?  The other modules and chassis slots are taken for this application, so I'm dependant on getting these two tasks to run at the same time. If you need any additional information about the program, let me know.

 

Thanks!

 

Capture.PNG


Viewing all articles
Browse latest Browse all 2180

Trending Articles



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