02-05-2008 03:13 PM
02-06-2008 07:38 AM
02-06-2008 12:14 PM
02-06-2008 06:02 PM - edited 02-06-2008 06:02 PM
Hi Michael,
To synchronize your two pulse trains, set up a hardware start trigger for both pulse tasks on the same PFI line. I’d check out the shipping example that come with DAQmx (Help » Find Examples…) located under Hardware Input and Output » DAQmx.
As for the delay, you can set the delay in the Create Virtual Channel VI.
Please post back if you have any questions. Have a great day!
02-07-2008 02:02 PM
Hi,
While staring the counters with a trigger to maintain synchronization is not a problem, changing them on the fly and keeping the phase\timing delay may pose a problem. Would you be changing the frequency or just the duty cycle? Basically all changes to the pulse specs that are done on the fly are software timed and not deterministic. So if you try to change both counters at the "same time" in SW, when they get updated in HW may be off and cause some skew. I'm not sure what your application is, but this may pose a problem for you. There should be a way around this - running your continuous pulse train generation, and creating a retriggerable single pulse on the second counter off of the leading edge of your first should give you what you need - you just may have to work with some settings. Do you need a pulse at that time, or just a rising edge? If you keep the frequency and vary the duty cycle, it shouldn't be in issue.
Hope this helps,
Andrew S
02-07-2008 10:39 PM
02-08-2008 08:16 AM