Rewrite DAQmxMidLib. And addCtr function for PWM.

Rewrite DAQmxMidLib. And add CTR function for PWM.