Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

synchronizing analog output and counter output

Hi,
            My problem is that i'm trying to output two different analog signals and at the same time i want to output a counter signal to trigger a camera. The two analog signals outputs is in sync, but the counter signal is not in sync with analog. It's off by 1.5 ms. If there is any suggestion on how to fix this problem, i would greatly appreicated.  Below is the attached vi.
0 Kudos
Message 1 of 5
(4,239 Views)

Hello Htp,

What do you mean by synchronize? Do you want to start the analog and counter outputs at the same time? If you do, you should have both outputs start with the same digital trigger. For the analog output, you can set up the triggering in the DAQ Assistant in the Task Triggering tab. For the counter output, look at Gen Dig Pulse Train-Continuous-Dig Start.vi found in the Example Finder (Help Menu>>Find Examples). Browse Hardware Input and Output>>DAQmx>>Generating Digital Pulses. Please let me know if you have any questions. Have a great day!

Sincerely,

Marni S.

0 Kudos
Message 2 of 5
(4,221 Views)

Yes that what i wanted to do, to synchronize the analog output and the counter outputs. However following your suggest i modified my DAQmx assistant to trigger on a digital rising edge coming from the my PFIO ports. But when i ran  the vi, the counters outputted the pulse, but it seem the analog never outputted it was still waiting for the PFIO.   Do you have any suggestion on how to fix this.

Thank you

0 Kudos
Message 3 of 5
(4,209 Views)

Hello Htp,

Is there a delay before the rising edge of the signal you are triggering off of? You need to make sure that LabVIEW gets to the DAQ Assistant and sets it up before the trigger starts. Other than that it should work. If it doesn't, try it without the DAQ Assistant. Use Cont Acq&Graph Voltage-Int Clk-Analog Start.vi and change the trigger to a digital edge trigger. This can be found in the Example Finder by browsing Hardware Input and Output>>DAQmx>>Analog Measurements>>Voltage. Please let me know if you have any questions. Have a great day!

Sincerely,

Marni S.

0 Kudos
Message 4 of 5
(4,197 Views)
thank you for the suggestion. It now work!Smiley Very Happy
0 Kudos
Message 5 of 5
(4,181 Views)