08-25-2017 04:24 AM
Hi,
I am using NI PCI-6229 DAQ card. I need to generate two 2kHz quadrature signals with 90 degree phase shift using PFI channels. I couldn't find any example where the phase shift is added between signals.
Any help would be appreciated.
Br,
Jick
08-25-2017 09:06 AM
There are different ways you can approach it. The best choice will depend on whether there are further requirements or constraints.
1. DO. Either finite or continuous. You'll need to physically wire from the DO output pins to the desired PFI pins b/c hardware-timed DO can't be routed to PFI. If continuous, you can define a small buffer and set the task to regenerate.
2. Counter output. Define the two pulse trains with the same high and low time but different initial delay values to set the phase shift. You'll need to sync the two counters to accomplish the desired phase, probably with a shared trigger. You can then programmatically generate that trigger signal to control the timing.
-Kevin P
08-28-2017 06:50 AM
Use two channels of one port and output in a loop
1100
0110
with 8kHz AO samplerate 🙂