08-31-2007 04:58 PM
09-04-2007 04:38 PM
Hi crdust,
The best way to accomplish this task is to take the absolute time, as the digital start trigger will start the sample clock. The difference in time between the trigger and the sample clock starting is default to two clock periods (which can be much less than the ms range if you are running fast enough), but can also be changed using two property nodes: DAQmxSetTrigAttribute (Start >> More >> Delay) and (Start >> More >> Delay Units). The minimum delay for m-series is 100x10^-9 Seconds.
Regards,09-04-2007 05:20 PM
Thanks David. Is there an example for this.
-Charles
09-05-2007 02:14 PM - edited 09-05-2007 02:14 PM
An example of data acquisition using a digital trigger can be found in the shipping examples ( Help >> Find Examples… >> Hardware Input and Output >> DAQmx >> Analog Measurements >> Voltage ) ContAcq-ExtClk-DigStart. You can change this to use the internal clock if that works better for you.
To get the starting point, we can call the CVI function ‘GetSystemTime’ (Utility Library >> Date / Time) just AFTER calling the DAQmx read, which will return the system time in the format seen below.
We want to call this after the DAQmx read because you are using a trigger, and this will cause the DAQmx read to wait until the trigger has been tripped. An example is if the program starts running, but the trigger does not trip for 2 minutes. If we had put the 'GetSystemTime' before the DAQmx read, it would be 2 minutes early. By putting it after the GetSystemTime, we will read the current time and can subtract the amount of time it took to collect the samples (# samples x sample rate) to get our original time stamp.
The ‘Waveform timing limitations’ in the NI-DAQmx C Reference Help (Start >> Programs >> National Instruments >> NI-DAQ) has more information about how DAQmx calculate the t0, and why we need to do the calculation this way.

Message Edited by David L. on 09-05-2007 02:15 PM
Message Edited by David L. on 09-05-2007 02:20 PM
07-23-2008 12:48 AM - edited 07-23-2008 12:49 AM
07-24-2008 12:55 PM
Hi BrissyDrew,
You can still synchronize your channels to a single clock and have one of your cards be triggered, just realize there is only one analog comparison event circuit on the board if doing analog triggering.
As far as getting time information, have tried leveraging the onboard counters? You can count an onboard, high speed, timebase and therefore get a high resolution clock to reference when your trigger comes in.
I would also recommend creating a new thread as this thread hasn't had any action in 10 months. This would make your question more visible to the community which would probably bring in more responses.
07-28-2008 12:19 AM - edited 07-28-2008 12:20 AM
Thanks PBear for your reply to my post. Looks like using counters is the way to go so thank you for leading me in that direction.
I've created another thread with more information regarding my requirements here.
Kind regards, BrissyDrew