02-26-2008 01:23 AM
02-26-2008 01:33 AM
02-26-2008 02:15 AM
02-27-2008 02:45 AM
02-27-2008 06:38 AM
Hi Jenny,
Since you are using an E series card, I am not sure if you would be able to do the two operations (acquiring data and output the pulse) simultaneously! Can you not start the acquisition BEFORE you send the pulse output and programatically determine the delay and ignore the samples acquired before the pulse output?
Vikas
02-27-2008 10:18 AM
An E series card lets you define clock sources so you can run both off the same clock and they will occure exactly simultaneously. For example you could probably tie the AI conversion to the pulse clock or vice versa. I've done that over 10 years ago where I needed to synchronize AI and AO to occur at the same time.
Are you using express VIs for the hardware interaction or lowlevel VIs? Can you show us some code on how you actually do things ( DAQ, measure timings, etc.).
02-28-2008 04:43 AM
Hi altenbach,
I have my lates version here, now I started using the small DAQ-blocks instead of the DAQ assistant. My timing right now is way off.
But I will attach the "main" progam and the two under programs Ttl_cntr0.vi, which just generates a digital 1 sec. TTL pulse and StepFlash, which generates another analog pulse, which length and amplitdue one can defline.
Do I need to make the card timing in the StepFlash vi too? And I do not understand how this hardware timing works, which clock should I use? Sample clock or some of the other ones, is this the same thing as the onboard clock, that is then found in e.g. the DAQ triggering block??? Or should I choose another one from the Clock choises?
-Jenny
02-28-2008 06:55 PM
Also check the time loop palette, there are tools to e.g. syncronize the start of time loops.