Hello Everyone,
I'm learning how to use Mydaq and the task model, I have made a program to drive an LED using PWM on the digital output 0. It works, but it has a lot of flickering. I understand that the flickering perceived by the human eye should disapear about the 200 Hz. At the moment I'm using the simulate signal module to generate an square wave, and it does not matter how fast I drive it the flickering it does not go away. The document "myDAQ_Manual.pdf" in the section "General Purpose Counter/Timer" mentions:
Internal base clocks: 100 MHz
Maximum counting and pulse generation update rate: 1 MS/s
This information is about the counters, does apply to the digital outputs as well?, if not what is the maximum frequency that I can drive the digital outputs using a software timed clock?
finnaly: How ugly is my code, is this the correct way of driving the digital outputs?
Thanks in advance,
Jose Vidal