Hello everyone,
My goal is to be able to change the duty cycle of a PWM signal using the output from a PID controller.
I am working with this example provided by NI:
Change Duty Cycle on a Continuous Pulse Train of NI-DAQmx Task
This example works as was intended, I am able to change the duty cycle from the front panel. The problems begin when I substitute the Duty Cycle Control for the output of the PID controller.
How can I adapt this code so that the Duty Cycle is changed according to the PID output instead of the Duty Cycle Control as it is now? My guess is that the problem lies with the Event Cases. I have tried changing the Duty Cycle Control to an indicator and wiring it to the PID output and then that to the input at Create Channel vi but no success.
Thanks,
Junekers