02-27-2018 07:32 AM
Hello,
I have a potentiometer with who I want to change the duty cycle of a pulse signal to control the speed of a stepper motor. I am using National Instrument NI USB 6212 as data aquisition module. I created an Analog Input Voltage DAQmx channel to get the potentiometer voltage and an CO Pulse Freq DAQmx channel to generate the pulse signal. How can I use the potentiometer as a Trigger so every time I rotate the potentiometer the CO Pulse will trigger and change the duty cycle.
I created the scheme for both of events but I can't figure it out how to connect them between themselves.
Thank you
02-28-2018 03:36 PM
I recommend exploring producer / consumer architecture. This is useful to share data between two loops running at potentially different rates.
Producer/Consumer Architecture