06-11-2015 05:20 PM
I am trying to generate Analog waveform that synchronize the rising edge of a digital signal(TTL). The ttl will be used as trigger for camera. The board I have is USB-6343X. In my draft, I used a clock as ttl so I can tune frequency easily. Could any one tell me what's the best way to accomplish such task? My draft seems working, but I hope there's more neat way. Thanks in advance for any help!
Kind regards,
Eric
Solved! Go to Solution.
06-12-2015 04:58 PM
Hi Econg,
What version of LabVIEW and DAQmx are you using?
It looks like you based your code off of two examples, what samples did you use for the code?
06-14-2015 09:14 PM
06-15-2015 05:08 PM
Hi Econg,
What examples did you base your code off of?
06-15-2015 07:14 PM
06-16-2015 10:58 AM
Hi Econg,
You should be able to trigger your TTL output with the analog output by using the ao/StartTrigger as your trigger source on the counter task. You wouldn't have to have the extra Get Full Terminal Name.vi in your analog output task.
Here is an example using your modified code. You will have to change the cDAQ1/ao/StartTigger to *your device*/ao/StartTrigger, but it should then trigger the counter output at the exact time when the analog output starts.
06-16-2015 12:21 PM
Thanks a lot. So how much delay is it between rising edge of ao/StartTrigger and ao/SampleClock?
06-17-2015 02:07 PM - edited 06-17-2015 02:07 PM
Hi Econg,
It should be nanoseconds, if any, as it is a hardware trigger going with a hardware clock.
06-30-2015 03:55 PM
Thanks a lot!