Quantcast
Channel: Multifunction DAQ topics
Viewing all articles
Browse latest Browse all 6880

Synchronize analog input and digital output without counters

$
0
0

I am developing an application that requires 4 analog inputs (0-10VDC), an encoder, and a stepper motor.  The DAQ needs to be USB based.  In working with NI Application Engineering, they specified the USB-6341.  Unfortunately, they were 6-8 weeks lead time.  In the meantime, I am using a USB-6229 OEM to generate proof of concept.  The problem I have is that there are only two counters available on the USB-6229 OEM, and I need both for the encoder.  

 

I'd like to sequentially acquire AI, send a pulse train to the stepper (being controlled by a motor driver simply looking for STEP pulses), all while monitoring the encoder counters.  I have been reading about synchronization of AI and DO, however, as noted, with only two counters, I'm not sure how to pull this off.  My sense is that I can use the AI sample clock, but I don't know how to divide this down to a pulse train for the motor (which would need to be on a DO line since the counters are busy with encoder counting).

 

I do have an application written, but it contains proprietary algorithms for the processing of the AI signals and I can't post that here.  I could write a MWE, but hoping someone can orient me to the tools I need to put this together before I do that.  

 

Thanks very much in advance...


Viewing all articles
Browse latest Browse all 6880

Trending Articles



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