12-02-2008 03:47 AM
Hi there,
I'm using LV 8.5.1 and NI USB-6210. In a small app I want to generate two different single pulses but with synchronized starting point. When I configure one task with two channels the second configured channel will always start one ms later. But, if i configure both channels in terms of frequency, they start synchronously.
Is my idea wrong in general? The DAQmx part is attached.
Thanks in advance
Solved! Go to Solution.
12-03-2008 10:48 AM
Hi there, too,
to output finite pulse trains, you need two counters for each task. Therefore, your application will output the first pulse using both counters, and then output the second pulse again using both counters.
As the USB-6210 does not feature correlated DIO outputs, you will have to either generate two infinite pulse trains (which can be started simultaneously throug an Arm Trigger) that you explicitly stop before the second pulse begins (using the DAQmx abort task from a parallel loop), or upgrade your hardware to at least an USB-622x series card and output a digital pattern... Alternatively, you could use the PCI-6602 counter card and use one counter to gate two others doing an infinite pulse train using a pause trigger...
Synchronizing Two Counter Tasks in NI-DAQmx
http://digital.ni.com/public.nsf/allkb/BB7AE2D12BB04CBE862574FA005D3826?OpenDocument
Using One Counter to Generate a Retriggerable Finite Digital Pulse Train with a PCI-6602 and DAQmx
http://digital.ni.com/public.nsf/allkb/4A9AF19480E50C6D862571B70058142A?OpenDocument
Triggering Multiple Counters On the Same Board with a Single Pulse
http://digital.ni.com/public.nsf/websearch/CE99A0B2A9048A2A86256C630062F550?OpenDocument
Best regards,
Sebastian
12-04-2008 03:10 AM
Hi SFK,
thank you for your explanation. Unfortunately I'm not able to upgrade my hardware, yet. But, your explanation and links are a great help for me.
[Loud thinking mode on] Why do I never find those links in your knowledge base?[Loud thinking mode off].
Best regards,
Rainer