02-27-2012 01:45 PM
We are reading samples from the NI 6132 board through the DAQmx interface in continues mode, i.e.
inputTask.Timing.ConfigureSampleClock(string.Empty, 1000000, SampleClockActiveEdge.Falling, SampleQuantityMode.ContinuousSamples, 1000);
We successfully read analog waveform records in call back function, and we look at samples - they are correct.
We need to know the moment when start trigger has happened for each acquisition.
The data is read to the variable
AnalogWaveform<double> awf = ...;
and we do the following
if(awf.IsPrecisionTimingInitialized)
{
InitialXTimeSeconds = awf.PrecisionTiming.StartTime.WholeSeconds;
InitialXTimeFraction = awf.PrecisionTiming.StartTime.FractionalSeconds;
}
The problem: InitialXTimeSeconds and InitialXTimeFraction are the same for all records and equal to the start of the task, i.e. time of the acquisition of the first record. What is wrong?
Solved! Go to Solution.
02-28-2012 06:32 PM
Hey I noticed you posted to this question in another forum here. Continue working on this in that forum.