04-20-2012 10:24 AM
04-24-2012 05:40 AM
Hey mtronics
The DAQmx vi's are what are configuring and controlling your hardware.
The first vi, CO pulse freq, is saying that you want to output a signal prom the counter output on your device at a set frequency and duty cycle.
The timing vi is then configuring the clock that your task is using. As you have already configured a frequency, this is set to implicit.
Now that the taskis configured the task is started.
Within the while loop the write to channel is checking if the duty cycle has changed. If it has it will update the duty cycle to the desired value.
The task then waits for an error or the user clicks the stop button to exit to while loop and then clear the task. This is to release the resources for any other code to use.
Hopefully that clears up things for you.