06-22-2016 03:51 PM
Hi,
I want to know if it's possible to generate signals for a quadrature encoder...
I want to generate Signal A and then Signal B with a 90° of delay from the other and be able to define the number of pulses I want to generate.
I've been trying to generate the signals with DAQmxCreateCOPulseChanFreq, but I don't know to start Singal B with the 90° delay.
Does any one have any experience on this?
Thank you for your help,
Solved! Go to Solution.
06-23-2016 05:44 PM
Hello gramirezv good afternoon,
Here is a KB that may help you to generate two pulse trains with the same frequency but with a phase shift:
How Can I Generate Two Pulse Trains Phase Shifted from Each Other on My E Series Card?
http://digital.ni.com/public.nsf/allkb/26CCE4F74DACFD1886256DCF006B011A?OpenDocument
Have a great evening,
Best regards,
CaEnOs
06-30-2016 08:54 AM
Hi CaEnOs,
That document really got me in the right direction, I was able to figure a solution based on that and some legacy code we had in our system where we generated similar signals.
Regards,